From: joonbum.ko Date: Tue, 25 Apr 2017 10:51:44 +0000 (+0900) Subject: tpl_wayland_egl_thread: Added API to get rotation value. X-Git-Tag: accepted/tizen/unified/20170711.180707~52 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3c933c637ac934835f3180451299909f5357bed;p=platform%2Fcore%2Fuifw%2Flibtpl-egl.git tpl_wayland_egl_thread: Added API to get rotation value. Change-Id: I444f2ef708026f42fe25f7ae1dec5994d9ad4f5f Signed-off-by: joonbum.ko --- diff --git a/src/tpl_wayland_egl_thread.c b/src/tpl_wayland_egl_thread.c index 0a095ca..1b99663 100644 --- a/src/tpl_wayland_egl_thread.c +++ b/src/tpl_wayland_egl_thread.c @@ -630,6 +630,18 @@ twe_surface_del(twe_surface_h twe_surface) return TPL_ERROR_NONE; } +int +twe_surface_get_rotation(twe_surface_h twe_surface) +{ + twe_wl_surf_source *source = (twe_wl_surf_source *)twe_surface; + if (!source) { + TPL_ERR("Invalid parameter. twe_surface(%p)", twe_surface); + return -1; + } + + return source->rotation; +} + #ifdef WORKER_TEST_ONLY static void reg_global(void *data, struct wl_registry *wl_registry, diff --git a/src/tpl_wayland_egl_thread.h b/src/tpl_wayland_egl_thread.h index 26f9bea..5cca186 100644 --- a/src/tpl_wayland_egl_thread.h +++ b/src/tpl_wayland_egl_thread.h @@ -33,3 +33,6 @@ twe_surface_del(twe_surface_h twe_surface); tbm_surface_queue_h twe_surface_get_tbm_queue(twe_surface_h twe_surface); +int +twe_surface_get_rotation(twe_surface_h twe_surface); +