aboutsummaryrefslogtreecommitdiffstats
path: root/interfaces
diff options
context:
space:
mode:
authorBocklage, Jens <Jens_Bocklage@mentor.com>2016-11-16 03:56:12 +0100
committerBocklage, Jens <Jens_Bocklage@mentor.com>2016-11-16 03:56:12 +0100
commitddc321fd87ca162d7d0de595976ebc01f8b664e0 (patch)
tree6842eec1866a85c4ea7cb38a089a282175381cd6 /interfaces
parent65f6210462dbc20f5690d27e834db1bd9f324d9c (diff)
Change HomeScreen API function renderSurfaceToAreaAllowed to renderAppToAreaAllowed.
Background is that an application wants to know if it is allowed to be rendered before it creates its own surface. If it is not allowed, it does not need to allocate resources. Signed-off-by: Bocklage, Jens <Jens_Bocklage@mentor.com>
Diffstat (limited to 'interfaces')
-rw-r--r--interfaces/homescreen.xml19
1 files changed, 10 insertions, 9 deletions
diff --git a/interfaces/homescreen.xml b/interfaces/homescreen.xml
index fe0ea30..e9cad83 100644
--- a/interfaces/homescreen.xml
+++ b/interfaces/homescreen.xml
@@ -63,23 +63,24 @@
<annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList&lt;int&gt;"/>
</method>
<!--
- renderSurfaceToAreaAllowed:
- @surfaceId: The surface that is requested.
- @layoutArea: The layout area where the surface shall be rendered.
- @allowed: Returns true, if the surface is allowed to be rendered in the area
+ renderAppToAreaAllowed:
+ @appCategory: The application category that is requested. Use enum AppCategory for this!
+ @layoutArea: The layout area where the application shall be rendered. Find the layoutArea ids in the layout definition!
+ @allowed: Returns true, if the application is allowed to be rendered in the area
- This function can be used to request, if it is allowed to render a surface in a layout area in preparation
- of the real renderSurfaceToArea command. This call will not change anything, it is only a request.
+ This function can be used to request, if it is allowed to render an application of a specific category
+ in a layout area. The idea is to decide from an application point of view to allocate recources or not.
+ Example: an application will decide to render video based on this call. This call will not change anything, it is only a request.
-->
- <method name="renderSurfaceToAreaAllowed">
- <arg name="surfaceId" type="i" direction="in"/>
+ <method name="renderAppToAreaAllowed">
+ <arg name="appCategory" type="i" direction="in"/>
<arg name="layoutArea" type="i" direction="in"/>
<arg name="allowed" type="b" direction="out"/>
</method>
<!--
renderSurfaceToArea:
@surfaceId: The surface that is requested.
- @layoutArea: The layout area where the surface shall be rendered.
+ @layoutArea: The layout area where the surface shall be rendered. Find the layoutArea ids in the layout definition!
This is a special case. In the normal use case, one layout area is always filled completely
with the first surface, that the process creates (more precise: the surface with the lowest id).