wayland-egl-tizen: add a new API to increase serial and obtain it sandbox/jbko/serial
authorJoonbum Ko <joonbum.ko@samsung.com>
Thu, 23 May 2024 04:57:21 +0000 (13:57 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Thu, 23 May 2024 06:27:35 +0000 (15:27 +0900)
commit8e4abf42ed9ef5eab62cc8ba2cdf1f4e9e992a5d
tree717c5da7221a5e72a71447bd2b5157676ad4b529
parent0036a3028a30bf184a4a982e9013b52d2db93f32
wayland-egl-tizen: add a new API to increase serial and obtain it

 Increment the window serial and then returns it.

  The updated serial is copied to the buffer at the next eglSwapBuffers
 and delivered to the server when wl_surface_commit.

 * Important *
 - This API should be called only from the thread that calls eglSwapBuffers
 because it is not thread safe.
 - It is recommended not to use it with wl_egl_window_tizen_set_window_serial
 because set_window_seriaal can overwrite serial with a completely different value.
 - If caller want to obtain the current serial without increasing it,
 need to call get_window_serial

Change-Id: I780cccc175d2ef7d080805bc301ec92da1445e7c
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/tpl_wl_egl_thread.c
src/wayland-egl-tizen/wayland-egl-tizen-priv.h
src/wayland-egl-tizen/wayland-egl-tizen.c
src/wayland-egl-tizen/wayland-egl-tizen.h