tpl_wl_vk_thread: Implemented reference count for swapchain. 84/169084/1
authorjoonbum.ko <joonbum.ko@samsung.com>
Fri, 5 Jan 2018 08:31:40 +0000 (17:31 +0900)
committerjoonbum.ko <joonbum.ko@samsung.com>
Fri, 2 Feb 2018 06:22:30 +0000 (15:22 +0900)
commitf0d6739dfa773f29af64ef9f76ee8b1734cc38af
tree3ed6f93ab97516e9cea323b0d56bc635163ef6eb
parenta5f11f5d46f72b4bd246aa53397edc46fdecd7c9
tpl_wl_vk_thread: Implemented reference count for swapchain.

 - The order of creation and destruction of swapchain
  is not clear when reset is needed by HWC or resize.
 - When regeneration is needed, the vulkan application can either
  destroy the old swapchain first, or create a new swapchain before that.
 - In Tizen, however, the tbm_surface_queue of swapchain does not
  actually need to be regenerated.
 - Therefore, the 'reference count' of swapchain is needed to prevent
  unintended regeneration of tbm_surface_queue.

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