From a3466ec97f5240eea7b0551ea4582bfb6ea841f7 Mon Sep 17 00:00:00 2001 From: Joonbum Ko Date: Fri, 2 Jun 2023 13:15:03 +0900 Subject: [PATCH] wl_egl/vk: use new tdm API to handle pending events. refer to https://review.tizen.org/gerrit/#/c/platform/core/uifw/libtdm/+/293679/ client: Add new API to handle pending events fb76bf4 Change-Id: I036bc7b9f704b9f1bd250a6c651d5c90a9d94a65 Signed-off-by: Joonbum Ko --- src/tpl_wl_egl_thread.c | 5 +++++ src/tpl_wl_vk_thread.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/tpl_wl_egl_thread.c b/src/tpl_wl_egl_thread.c index 16df22e..7a57437 100755 --- a/src/tpl_wl_egl_thread.c +++ b/src/tpl_wl_egl_thread.c @@ -1987,6 +1987,11 @@ _thread_create_tdm_client_vblank(tdm_client *tdm_client) return NULL; } + tdm_err = tdm_client_handle_pending_events(tdm_client); + if (tdm_err != TDM_ERROR_NONE) { + TPL_ERR("Failed to handle pending events. tdm_err(%d)", tdm_err); + } + tdm_client_vblank_set_enable_fake(tdm_vblank, 1); tdm_client_vblank_set_sync(tdm_vblank, 0); diff --git a/src/tpl_wl_vk_thread.c b/src/tpl_wl_vk_thread.c index 341360f..317d005 100644 --- a/src/tpl_wl_vk_thread.c +++ b/src/tpl_wl_vk_thread.c @@ -1125,6 +1125,11 @@ _thread_create_tdm_client_vblank(tdm_client *tdm_client) return NULL; } + tdm_err = tdm_client_handle_pending_events(tdm_client); + if (tdm_err != TDM_ERROR_NONE) { + TPL_ERR("Failed to handle pending events. tdm_err(%d)", tdm_err); + } + tdm_client_vblank_set_enable_fake(vblank, 1); tdm_client_vblank_set_sync(vblank, 0); -- 2.7.4