wl_egl/vk: use new tdm API to handle pending events. 52/303452/1
authorJoonbum Ko <joonbum.ko@samsung.com>
Fri, 2 Jun 2023 04:15:03 +0000 (13:15 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Thu, 28 Dec 2023 03:39:21 +0000 (12:39 +0900)
 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 <joonbum.ko@samsung.com>
src/tpl_wl_egl_thread.c
src/tpl_wl_vk_thread.c

index 59b2de5..670bedd 100755 (executable)
@@ -1878,6 +1878,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);
 
index c1e2017..41831a0 100644 (file)
@@ -1048,6 +1048,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);