wl_egl: Implement status_sync to improve buffers finalize logic. 73/319373/2
authorTaeHyeon Jeong <thyeon.jeong@samsung.com>
Tue, 22 Oct 2024 06:39:04 +0000 (15:39 +0900)
committerTaeHyeon Jeong <thyeon.jeong@samsung.com>
Tue, 5 Nov 2024 08:05:22 +0000 (17:05 +0900)
commit40dfebc4ebb5f50e79803a593154ae91e35ef1de
tree2864e5b325c24307fb889123789a6353bd1ed442
parent144d8cf6c1de851d033bbb267657b9478a0169d5
wl_egl: Implement status_sync to improve buffers finalize logic.

AS-IS
- When wl_egl_display->thread is idle, call the __idle_cb_buffers_finalize() to check the buffer status and change the buffer status to RELEASED.
- If the buffer status cannot be changed to RELEASED, continue to call the function until possible.
PROBLEMS
- Call the function even if the buffer status has not changed. So the function is unnecessarily called a lot.
TO-BE
- Call the function only when the buffer status changes.

Change-Id: I76d401a1413d144dcde2e4743162d9a09bc86983
src/tpl_wl_egl_thread.c