tpl: Added a frontend API to cancel dequeued buffer. 01/134601/6
authorjoonbum.ko <joonbum.ko@samsung.com>
Mon, 19 Jun 2017 07:41:23 +0000 (16:41 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 22 Jun 2017 09:02:02 +0000 (09:02 +0000)
commit360bc3809f02a03a90cde8213770dda0c7fe9cfe
tree638ea771f63e831b277affe88b8c1683cd6c353d
parent88cf3252933493ccf019e5e15de79f679b2a516a
tpl: Added a frontend API to cancel dequeued buffer.

 - Previously, when dequeued buffer was canceled, ref counts were run to be destroyed
  without tbm_surface_queue_release. However, for the normal operation of wayland_egl_thread,
  DDK need to cancel the dequeued buffer before using it.
 - In wayland_egl_thread structure, tbm_surface_queue_release should be called so that tbm_surface
  can be completely destroyed.
 - The newly added below API calls tbm_surface_queue_release directly to destroy unused tbm_surface.

    tpl_surface_cancel_dequeued_buffer(tpl_surface_t *surface, tbm_surface_h tbm_surface)

 - The type of tpl_surface must be window surface,
  and tbm_surface must be a buffer in the state before rendering begins.

Change-Id: Ibf4950dc2846f1f6a01998ea39bae99bc8300b4f
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
src/tpl.h
src/tpl_internal.h
src/tpl_surface.c
src/tpl_wayland_egl.c
src/tpl_wl_egl_thread.c