tpl_wayland_egl_thread: Added twe_surface_set_damage_region. 84/134984/3
authorjoonbum.ko <joonbum.ko@samsung.com>
Thu, 27 Apr 2017 07:25:14 +0000 (16:25 +0900)
committerjoonbum.ko <joonbum.ko@samsung.com>
Wed, 21 Jun 2017 07:04:26 +0000 (16:04 +0900)
commitf4e6e86e1e927c3c69a25f31a48b1c1f1dc33513
treeff231f4089a04b74b2fbc3d4303f851d1fecd7e3
parent20dfec69f7aed68022d43a0e4d496d92c591bcb3
tpl_wayland_egl_thread: Added twe_surface_set_damage_region.

 - NEW API : twe_surface_set_damage_region(tbm_surface_h, int num_rects, const int* rects)
 - I expect it to be called before tbm_surface_queue_enqueue() inside tpl_surface_enqueue_buffer().

 - The input parameter tbm_surface_h must be a dequeued buffer from tbm_surface_queue.

 - Operation :
   * Get twe_wl_buffer_info from tbm_surface user_data.
   * If buf_info->rects already exists, free this old one and re allocate new rects.

Change-Id: Ib9e552dab4450caad3aa9c1e941f9190abe79252
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
src/tpl_wayland_egl_thread.c
src/tpl_wayland_egl_thread.h