diff options
author | Bocklage, Jens <Jens_Bocklage@mentor.com> | 2016-11-16 03:56:12 +0100 |
---|---|---|
committer | Bocklage, Jens <Jens_Bocklage@mentor.com> | 2016-11-16 03:56:12 +0100 |
commit | ddc321fd87ca162d7d0de595976ebc01f8b664e0 (patch) | |
tree | 6842eec1866a85c4ea7cb38a089a282175381cd6 /libhomescreen/src | |
parent | 65f6210462dbc20f5690d27e834db1bd9f324d9c (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 'libhomescreen/src')
-rw-r--r-- | libhomescreen/src/libhomescreen.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libhomescreen/src/libhomescreen.cpp b/libhomescreen/src/libhomescreen.cpp index 03c4baf..5cdabc9 100644 --- a/libhomescreen/src/libhomescreen.cpp +++ b/libhomescreen/src/libhomescreen.cpp @@ -122,14 +122,14 @@ void LibHomeScreen::renderSurfaceToArea(int surfaceId, int layoutArea) } } -bool LibHomeScreen::renderSurfaceToAreaAllowed(int surfaceId, int layoutArea) +bool LibHomeScreen::renderAppToAreaAllowed(int appCategory, int layoutArea) { gboolean result = true; GError *err = NULL; - lib_home_screen_homescreen_call_render_surface_to_area_allowed_sync( + lib_home_screen_homescreen_call_render_app_to_area_allowed_sync( mp_libHomeScreenHomescreen_Proxy, - surfaceId, + appCategory, layoutArea, &result, NULL, @@ -137,7 +137,7 @@ bool LibHomeScreen::renderSurfaceToAreaAllowed(int surfaceId, int layoutArea) if (NULL != err) { - fprintf(stderr, "Unable to call renderSurfaceToArea: %s\n", err->message); + fprintf(stderr, "Unable to call renderAppToAreaAllowed: %s\n", err->message); } return result; |