From abd447dcb09321729002206377f54722b61c13f3 Mon Sep 17 00:00:00 2001 From: "joonbum.ko" Date: Thu, 18 May 2017 16:38:25 +0900 Subject: [PATCH] tpl_wayland_egl_thread: Added an API to check if client is activated. Change-Id: I6a667e30c937bec138de0c04eb6f0fc392f8a5ef Signed-off-by: joonbum.ko --- src/tpl_wayland_egl_thread.c | 10 ++++++++++ src/tpl_wayland_egl_thread.h | 3 +++ 2 files changed, 13 insertions(+) diff --git a/src/tpl_wayland_egl_thread.c b/src/tpl_wayland_egl_thread.c index 259b708..8a36016 100644 --- a/src/tpl_wayland_egl_thread.c +++ b/src/tpl_wayland_egl_thread.c @@ -1332,6 +1332,16 @@ twe_surface_set_damage_region(tbm_surface_h tbm_surface, return TPL_ERROR_NONE; } +tpl_bool_t +twe_surface_check_activated(twe_surface_h twe_surface) +{ + twe_wl_surf_source *surf_source = (twe_wl_surf_source *)twe_surface; + twe_wl_disp_source *disp_source = surf_source->disp_source; + + return wayland_tbm_client_queue_check_activate(disp_source->wl_tbm_client, + surf_source->tbm_queue); +} + void twe_surface_commit_without_enqueue(twe_surface_h twe_surface, tbm_surface_h tbm_surface) diff --git a/src/tpl_wayland_egl_thread.h b/src/tpl_wayland_egl_thread.h index 5b484c4..15edbaf 100644 --- a/src/tpl_wayland_egl_thread.h +++ b/src/tpl_wayland_egl_thread.h @@ -40,6 +40,9 @@ twe_surface_get_rotation(twe_surface_h twe_surface); void twe_surface_set_rotation_capablity(twe_surface_h twe_surface, tpl_bool_t set); +tpl_bool_t +twe_surface_check_activated(twe_surface_h twe_surface); + void twe_surface_commit_without_enqueue(twe_surface_h twe_surface, tbm_surface_h tbm_surface); -- 2.7.4