tpl_wayland_egl_thread: Cleaned up the codes for creating/deleting/dipatching tdm_source. 73/135173/5
authorjoonbum.ko <joonbum.ko@samsung.com>
Mon, 12 Jun 2017 08:35:18 +0000 (17:35 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 22 Jun 2017 08:56:11 +0000 (08:56 +0000)
commitafdfb5ee98fda86914294256c2e0648cdec88ccd
treeabd4e4737e6cfa5d60fa89c8328f8e7427ad6e9e
parentc3062c0e0f8d5cf1828c8defbb864bd382ae76ec
tpl_wayland_egl_thread: Cleaned up the codes for creating/deleting/dipatching tdm_source.

 - It has been modified to control tdm resources only within threads
  to prevent wl_display errors due to thread differences.

 tdm_source (gsource)
 - tdm_source will be created when before loop running start.

 tdm_client_vblank object
 - vblank object of twe_surf_source will be created newly when surface commit.

 If both tdm_source and vblank object failed to create,
 surface commit will fall back to TPL_WAIT_VBLANK disabled mode.

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