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>