platform/core/uifw/libtpl-egl.git
6 years agotpl_wayland_egl_thread: Added free function to unref tbm_surface in the buffer list. 71/161971/2
joonbum.ko [Thu, 19 Oct 2017 07:51:31 +0000 (16:51 +0900)]
tpl_wayland_egl_thread: Added free function to unref tbm_surface in the buffer list.

 - The data, tbm_surface, will be freed with function below.
   void * __cb_buffer_remove_from_list(void *data)

Change-Id: If70b0a9fc10545a41fdfff9dd8f07954ba62ee14
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Added an internal function to wait dequeueable until given... 70/161970/2
joonbum.ko [Thu, 19 Oct 2017 06:54:45 +0000 (15:54 +0900)]
tpl_wayland_egl_thread: Added an internal function to wait dequeueable until given timeout.

 - Added TPL_ERROR_TIMED_OUT to tpl_result_t.
 - Added free_queue_mutex and free_queue_cond to surf_source.

Change-Id: I8205d888570c58a22987b2d8ab9a36c1fdd10c6b
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Implemented present modes to support vulkan wsi. 69/161969/2
joonbum.ko [Fri, 13 Oct 2017 08:45:06 +0000 (17:45 +0900)]
tpl_wayland_egl_thread: Implemented present modes to support vulkan wsi.

 - Added _twe_surface_wait_vblank internal function to be called properly according to present mode.
 - Added _twe_thread_wl_vk_surface_commit internal function for wl_surface of vulkan.
 - Added a list of vblank_waiting_buffers to support FIFO and FIFO_RELAXED modes.

Change-Id: I9198b5ed3e2e9723b5e2ef61aa9be7498763d727
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Added an internal API to set sync fence fd to buffer. 68/161968/2
joonbum.ko [Wed, 11 Oct 2017 08:53:58 +0000 (17:53 +0900)]
tpl_wayland_egl_thread: Added an internal API to set sync fence fd to buffer.

 - The newly created sub-thread waits for draw_done via sync fence fd
  and sends the acquirable event to eventfd of surf_source
  when the drawing is completed.
 - The newly created  sub-thread will be destroyed after sending the acquirable event.

Change-Id: I9740b46ab8cdfab3e3ed289c6c073de836eeb5d6
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Implemented the content related to wayland vk buffer. 67/161967/2
joonbum.ko [Wed, 11 Oct 2017 07:33:03 +0000 (16:33 +0900)]
tpl_wayland_egl_thread: Implemented the content related to wayland vk buffer.

Change-Id: I530e02d978dd703fef700274ca6290d15ed50151
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Added new internal APIs related with swapchain for vulkan. 66/161966/2
joonbum.ko [Fri, 29 Sep 2017 04:31:17 +0000 (13:31 +0900)]
tpl_wayland_egl_thread: Added new internal APIs related with swapchain for vulkan.

Change-Id: Ieceb7c1d6f08a684ba30de204818764e0c621754
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Changed twe_surface_add() to give tpl_handle_t instead of... 65/161965/2
joonbum.ko [Thu, 28 Sep 2017 03:13:01 +0000 (12:13 +0900)]
tpl_wayland_egl_thread: Changed twe_surface_add() to give tpl_handle_t instead of wl_egl_window.

 - If twe_display is a vulkan display, the twe_surface creation process is modified to be different.
 - In case of vulkan, tbm_surface_queue should be created at swapchain create and be passed to twe_surface.

Change-Id: I0b40d74c54da0c3faed54700f68fdbbd2046b665
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Added internal APIs to get surface capabilities. 64/161964/2
joonbum.ko [Tue, 26 Sep 2017 09:53:23 +0000 (18:53 +0900)]
tpl_wayland_egl_thread: Added internal APIs to get surface capabilities.

Change-Id: Ibefc57b2cffe0be2de82d88ba9bce0a42ae1b9bb
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Implemented a vulkan-related initialization in twe_display_add(). 63/161963/2
joonbum.ko [Tue, 26 Sep 2017 08:19:06 +0000 (17:19 +0900)]
tpl_wayland_egl_thread: Implemented a vulkan-related initialization in twe_display_add().

 - twe_wl_disp_source distinguishes vulkan from backend_type passed by twe_display_add().
 - In the case of vulkan backend, shm flusher is not used.
 - This structure can be changed.

Change-Id: Ibff0fe03a14832079ddd60b24b0df8b9c32ecbe5
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Added surface capabilities to twe_display for vk backend. 62/161962/1
joonbum.ko [Tue, 26 Sep 2017 07:00:31 +0000 (16:00 +0900)]
tpl_wayland_egl_thread: Added surface capabilities to twe_display for vk backend.

Change-Id: I68cc93c4c0c473d091b8d9f4023d7edfcd2b312f
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Added backend type parameter of twe_display_add(). 61/161961/1
joonbum.ko [Tue, 26 Sep 2017 06:46:55 +0000 (15:46 +0900)]
tpl_wayland_egl_thread: Added backend type parameter of twe_display_add().

 - To distinguish the backend of the display.

Change-Id: I4a281d1e39b764918406a85bfff6cf976e60588c
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agoPackage version up to 1.4.12 accepted/tizen/4.0/unified/20171129.090427 accepted/tizen/unified/20171128.050026 submit/tizen/20171127.021751 submit/tizen_4.0/20171127.021743
joonbum.ko [Mon, 27 Nov 2017 02:09:56 +0000 (11:09 +0900)]
Package version up to 1.4.12

Change-Id: I304c5bfb27bb3797ff6e25c1a2ffbe6294af0019
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Modify creating event queue for multi-threaded usage 94/161094/2
Hoyub Lee [Tue, 21 Nov 2017 11:24:14 +0000 (20:24 +0900)]
tpl_wayland_egl_thread: Modify creating event queue for multi-threaded usage

In multi-threaded wayland, below is guided on creating own event queue:
  Create wl_interface object with a specified event queue, instead of
  creating an object and then changing it’s queue.

This patch applies this guideline on where creating own event queue.

Change-Id: I7c08ad93f1f0719ad9093ab252659efe1bd87f07
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agotpl_wayland_egl: Modify creating event queue for multi-threaded usage 93/161093/2
Hoyub Lee [Tue, 21 Nov 2017 11:00:12 +0000 (20:00 +0900)]
tpl_wayland_egl: Modify creating event queue for multi-threaded usage

In multi-threaded wayland, below is guided on creating own event queue:
  Create a wl_interface object with a specified event queue, instead of
  creating an object and then changing it’s queue.

This patch applies this guideline on where creating own event queue.

Change-Id: Ieee31c9544af12c1c31aa807423b9a3eb972f5bf
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agoRemove BSD-3-Clause license of gtest 09/158309/1
Hoyub Lee [Tue, 31 Oct 2017 05:03:00 +0000 (14:03 +0900)]
Remove BSD-3-Clause license of gtest

Change-Id: I9f11c87258be4750c827fb5ee5450a2540c1fca4
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agotc: Remove local gtest library as it is not used anymore 08/158308/1
Hoyub Lee [Tue, 31 Oct 2017 04:57:52 +0000 (13:57 +0900)]
tc: Remove local gtest library as it is not used anymore

As gtest is now provided from tizen repository, local gtest is
not used. Therefore, remove local gtest library.

Change-Id: Ice326b0db5cc89c194663aa16e9374178b95d0ed
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agobuild: Remove dependency of version environment variables on 'make' 17/158017/2
Hoyub Lee [Fri, 27 Oct 2017 07:33:32 +0000 (16:33 +0900)]
build: Remove dependency of version environment variables on 'make'

Remove dependency of environment variable to provide same configuration
even on rebuild case.

Change-Id: I5b786b567632bc15a7fcbe26a21adfce8d4b1c05
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agoPackage version up to 1.4.11 accepted/tizen/4.0/unified/20171017.211349 accepted/tizen/unified/20171016.143841 submit/tizen/20171013.084939 submit/tizen_4.0/20171013.084934 tizen_4.0.m2_release
joonbum.ko [Fri, 13 Oct 2017 08:47:49 +0000 (17:47 +0900)]
Package version up to 1.4.11

Change-Id: I0d15a282eb91b1f29d1e7b831e071b69d9c33443
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_tbm: Add missing break in switch 00/154300/4
Hoyub Lee [Tue, 10 Oct 2017 02:44:04 +0000 (11:44 +0900)]
tpl_tbm: Add missing break in switch

Change-Id: I3e76e96634cc7f3e9d4ed3973d945f8d08e84358
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agotpl_wayland_vk_wsi: Add missing break in switch 10/154410/3
Hoyub Lee [Tue, 10 Oct 2017 02:50:42 +0000 (11:50 +0900)]
tpl_wayland_vk_wsi: Add missing break in switch

Change-Id: I0aece437c5df9ff81aa68a7e17ff8f1f3f328b9f
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agotpl_wayland_vk_wsi: Fix tizen coding rule violations 09/154409/4
Hoyub Lee [Tue, 10 Oct 2017 07:15:11 +0000 (16:15 +0900)]
tpl_wayland_vk_wsi: Fix tizen coding rule violations

Change-Id: I01c30ebc4b9cd11a4fcbaac737e74b6880d76942
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agoPackage version up to 1.4.10 accepted/tizen/4.0/unified/20170929.075521 accepted/tizen/unified/20170928.072116 submit/tizen/20170927.064133 submit/tizen_4.0/20170927.064121 tizen_4.0.IoT.p1_release
joonbum.ko [Wed, 27 Sep 2017 03:55:08 +0000 (12:55 +0900)]
Package version up to 1.4.10

Change-Id: Ief444ca8917dda880460cae7914789f5b52bd118
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Initialized the variables of wl_egl_window that will not... 87/152787/1
joonbum.ko [Wed, 27 Sep 2017 06:08:40 +0000 (15:08 +0900)]
tpl_wayland_egl_thread: Initialized the variables of wl_egl_window that will not be used.

Change-Id: Ic8f5286b1881de7c7653de716889923c9d801e8c
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agowayland-egl: Initialized an uninitialized function pointer. 86/152786/1
joonbum.ko [Wed, 27 Sep 2017 06:06:32 +0000 (15:06 +0900)]
wayland-egl: Initialized an uninitialized function pointer.

Change-Id: Id1fd615b36a3f14eade1867c3ba4601ef67d73c5
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotc: Add tpl-test build option on spec file 31/152731/1
Hoyub Lee [Mon, 25 Sep 2017 08:26:39 +0000 (17:26 +0900)]
tc: Add tpl-test build option on spec file

tpl-test can be built with either ways:
 - Build with [--with-utest=yes]
 - Change the value of 'ENABLE_TPL_TEST' to '1' of spec file

Change-Id: I8b2a3e14ef25bbf21697a3c8da5cfd50eb9c175b
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agotc: Apply autotools on tpl-test build system 30/152730/1
Hoyub Lee [Mon, 25 Sep 2017 08:25:00 +0000 (17:25 +0900)]
tc: Apply autotools on tpl-test build system

This patch replace manually written Makefile to autotools on tpl-test.

Change-Id: I0a4040c3e5d259fe530c6b688de66283df93faa6
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agowayland-egl: Initialize uninitialized variable in wl_egl_window_create 43/152543/2
Hoyub Lee [Tue, 26 Sep 2017 10:02:07 +0000 (19:02 +0900)]
wayland-egl: Initialize uninitialized variable in wl_egl_window_create

Change-Id: I5e123fd8f0b9d2b0f77bae77db03a67906ce389c
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agotpl_worker_thread: Add checking return value of tdm event 19/152519/2
Hoyub Lee [Tue, 26 Sep 2017 08:46:24 +0000 (17:46 +0900)]
tpl_worker_thread: Add checking return value of tdm event

Change-Id: I8cfb9f9b872694bfc5f84f4997937469f6bd5f33
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agotpl_worker_thread: Fix tizen coding rule violation 93/152693/1
Hoyub Lee [Wed, 27 Sep 2017 01:59:18 +0000 (10:59 +0900)]
tpl_worker_thread: Fix tizen coding rule violation

Change-Id: I4b1ec310b03045dff6e434a83e6b90ea9f62b0de
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agotpl_wl_egl_thread: Add missing mutex unlock in error handling 07/152507/1
Hoyub Lee [Tue, 26 Sep 2017 08:25:01 +0000 (17:25 +0900)]
tpl_wl_egl_thread: Add missing mutex unlock in error handling

Change-Id: I45ab54c170de85a8a1b7feb59b9303a40483cfec
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agotpl_wayland_egl_thread: Add missing mutex unlock in error handling 06/152506/1
Hoyub Lee [Tue, 26 Sep 2017 08:09:15 +0000 (17:09 +0900)]
tpl_wayland_egl_thread: Add missing mutex unlock in error handling

Change-Id: I15a558d8f88c30990231c759b9ca3b171ff7eb35
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agoPackage version up to 1.4.9 98/151898/5 accepted/tizen/4.0/unified/20170925.150846 accepted/tizen/unified/20170927.063205 submit/tizen/20170925.050346 submit/tizen/20170926.051702 submit/tizen_4.0/20170925.050334
joonbum.ko [Fri, 22 Sep 2017 08:22:13 +0000 (17:22 +0900)]
Package version up to 1.4.9

 - libwayland-egl: package version up to 1.2.3

Change-Id: Idd5f9da7e3caf7219afa5bdb63ee6dcb940aa450
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Changed the calling order of g_source_remove_fd(). 97/151897/5
joonbum.ko [Fri, 22 Sep 2017 08:21:18 +0000 (17:21 +0900)]
tpl_wayland_egl_thread: Changed the calling order of g_source_remove_fd().

Change-Id: Idd1250427579bb6cf9b1b5ff92515c708952ec3c
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: modified the wl_surf_source to be destroyed in the thread. 96/151896/5
joonbum.ko [Fri, 22 Sep 2017 05:58:39 +0000 (14:58 +0900)]
tpl_wayland_egl_thread: modified the wl_surf_source to be destroyed in the thread.

 - It is destroyed in thread through del_source like tdm_source and wl_disp_source.

Change-Id: Ic65e5521d4fafb9734de87f114ae292195b008a1
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: modified the tdm_source to be destroyed in the thread. 95/151895/5
joonbum.ko [Thu, 21 Sep 2017 03:15:54 +0000 (12:15 +0900)]
tpl_wayland_egl_thread: modified the tdm_source to be destroyed in the thread.

 - The tdm_source is created in the thread.
 - The tdm_del_source is created in the main thread after the tdm_source is created.
 - When twe_thread_destroy() is called, the tdm_source is destroyed in the thread
  by triggering an event on tdm_del_source.

Change-Id: Icc88a9b92e446071d3776191fc120153a4c62502
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: protected the process of twe_display_del with mutex. 94/151894/4
joonbum.ko [Fri, 22 Sep 2017 06:54:30 +0000 (15:54 +0900)]
tpl_wayland_egl_thread: protected the process of twe_display_del with mutex.

 - The function twe_display_del is called by the main thread,
  but the actual destroy process is handled by the thread through twe_del_source.
   Therefore, while the del_source is being processed by the thread,
  the main thread must wait in cond_wait.

Change-Id: I7cffdc1d6fd477213d8258cf87871aa3de0c75f2
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Protect twe_thread_create() with mutex 16/150616/7
Hoyub Lee [Fri, 15 Sep 2017 08:46:48 +0000 (17:46 +0900)]
tpl_wayland_egl_thread: Protect twe_thread_create() with mutex

Currently, main thread does not wait for newly creating threads which
has its own initialization process. As initalization happens on newly
created thread, without protecting, undesirable behaviour can occur.

Therefore, change main thread to wait newly creating thread with mutex.

Change-Id: Id32092d77c35bd7b8d705057a1b07798820e8e20
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agotpl_wayland_egl_thread: Modified the function ordering. 93/151893/4
joonbum.ko [Wed, 20 Sep 2017 05:29:29 +0000 (14:29 +0900)]
tpl_wayland_egl_thread: Modified the function ordering.

Change-Id: I95102a262924c06fa4243e81192cca5b2c0f25dd
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Modified naming and usage of twe_del_source. 92/151892/3
joonbum.ko [Wed, 20 Sep 2017 04:25:25 +0000 (13:25 +0900)]
tpl_wayland_egl_thread: Modified naming and usage of twe_del_source.

- To extend the usability of the 'twe_wl_disp_del_source'
 that was created to delete the disp_source, I changed naming
 to 'twe_del_source' and changed the associated functions to be common.

Change-Id: I6b7eddbfaf1434ec189e75211932258419945200
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Implemented destroy callback of wl_egl_window. 91/151891/2
joonbum.ko [Wed, 20 Sep 2017 00:25:11 +0000 (09:25 +0900)]
tpl_wayland_egl_thread: Implemented destroy callback of wl_egl_window.

 - If wl_egl_window is destroyed before the surface is destroyed,
  wl_egl_window and wl_surface are not accessed by any routine.

Change-Id: I15dd945fbe50007eda7bd6783f687f705fb97852
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agowayland-egl: Added wl_egl_window destroy callback. 90/151890/2
joonbum.ko [Mon, 18 Sep 2017 06:19:11 +0000 (15:19 +0900)]
wayland-egl: Added wl_egl_window destroy callback.

 libwayland-egl: package version up to 1.2.3

Change-Id: Ifd7713dee2ed521b22b4a2601e623b717882f57f
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agoPackage version up to 1.4.8 56/149856/3 accepted/tizen/4.0/unified/20170920.081113 accepted/tizen/unified/20170920.065505 submit/tizen/20170915.114715 submit/tizen_4.0/20170915.114738
joonbum.ko [Wed, 13 Sep 2017 09:04:08 +0000 (18:04 +0900)]
Package version up to 1.4.8

Change-Id: I38d174f445385738037984afd6762dde05d4ecb9
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wl_egl_thread: Modified to ensure thread safety between enqueue and destroy. 39/149839/4
joonbum.ko [Wed, 13 Sep 2017 07:59:59 +0000 (16:59 +0900)]
tpl_wl_egl_thread: Modified to ensure thread safety between enqueue and destroy.

Change-Id: I36af6adb3956112093ddcd2304f31b5ab26705f3
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Modified twe_surface_destroy to unref the tbm_surface in... 38/149838/4
joonbum.ko [Wed, 13 Sep 2017 05:29:25 +0000 (14:29 +0900)]
tpl_wayland_egl_thread: Modified twe_surface_destroy to unref the tbm_surface in in_user_buffers.

 - When eglSurfaceDestroy is called on the main thread,
 the function twe_surface_del() waits for the worker thread
 to finish rendering the buffer no longer

Change-Id: Ieb3921eedd990b8621122cb1db9d42cb5933c2c1
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agobuild: Add missing flag on ENABLE_TTRACE 92/148492/1
Hoyub Lee [Fri, 8 Sep 2017 04:06:23 +0000 (13:06 +0900)]
build: Add missing flag on ENABLE_TTRACE

Change-Id: If08ede24479cfed51d22144a3dccc8c01c70df0f
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agoPackage version up to 1.4.7 25/147425/3 accepted/tizen/4.0/unified/20170907.193730 accepted/tizen/unified/20170907.060405 submit/tizen/20170906.070327 submit/tizen_4.0/20170906.070538
joonbum.ko [Mon, 4 Sep 2017 08:57:01 +0000 (17:57 +0900)]
Package version up to 1.4.7

Change-Id: I5e80a40c17f6b3b0cde035242c0837e8eb9c6621
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Fixed ref count bug in gsources. 24/147424/3
joonbum.ko [Mon, 4 Sep 2017 07:47:48 +0000 (16:47 +0900)]
tpl_wayland_egl_thread: Fixed ref count bug in gsources.

 - g_source_new() must match g_source_unref(),
  g_source_attach() must match g_source_destroy().

Change-Id: I5bfe99de2bed6abfbff9f0a61ff20eeb33533048
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Modified the destroy process of disp_source. 23/147423/3
joonbum.ko [Mon, 4 Sep 2017 07:44:17 +0000 (16:44 +0900)]
tpl_wayland_egl_thread: Modified the destroy process of disp_source.

 - Changed the last unref of gsource to be executed in the main thread.

Change-Id: Ifbcfe438f2aed8f82662eb675576d5dc3792e674
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Added object lock/unlock at the time of in_use_buffer list... 22/147422/3
joonbum.ko [Fri, 1 Sep 2017 02:06:18 +0000 (11:06 +0900)]
tpl_wayland_egl_thread: Added object lock/unlock at the time of in_use_buffer list finalizing.

Change-Id: I9e6d3ae6fea8df6caa4fc2ffba7d7ce348408d2c
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Added exception checking. 21/147421/3
joonbum.ko [Fri, 1 Sep 2017 01:13:10 +0000 (10:13 +0900)]
tpl_wayland_egl_thread: Added exception checking.

 - Added an exception checking to prevent to access destroyed gsource.

Change-Id: I7ba78f28c03d836f27132d9f1e16095d4313ca41
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Format of tpl_surface is used instead of ARGB8888 20/147420/3
joonbum.ko [Thu, 31 Aug 2017 01:15:18 +0000 (10:15 +0900)]
tpl_wayland_egl_thread: Format of tpl_surface is used instead of ARGB8888

 Reference commit log below
    # 48e698ce0dbff338b6cb3db8733838e6e0ff44be
    tpl_wayland_egl: Format of tpl_surface is now used instead of ARGB8888

    Because there was no real use case using format other than ARGB8888,
    the format value in __tpl_wayland_egl_surface_init() was fixed as ARGB8888.

    However, there were cases using other formats on CTS.
    Therefore, the format of tpl_surface is going to be used.

    #Change-Id: I427d1a989267b9ec0fbe03f5bb67b02ba985a039
    #Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>

Change-Id: Id2249dd8efb12afff44248ae98f8a0db28aed1af
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wl_egl_thread: Added some exception checking. 32/147432/2
joonbum.ko [Mon, 4 Sep 2017 09:17:04 +0000 (18:17 +0900)]
tpl_wl_egl_thread: Added some exception checking.

Change-Id: I8c4ef999cbd0c8a537cfa2a6cf2f07d877a004ab
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agoApply autotools on build system 60/143760/19
Hoyub Lee [Fri, 11 Aug 2017 07:10:02 +0000 (16:10 +0900)]
Apply autotools on build system

Applying autotools on build system provides following benefits:

  - Many open source projects are using autotools, so with autotools
    applied, open source developers can easily understand our project's
    build system.

  - Autotools provides many powerful features like powerful
    cross-compilation, diverse and useful command options for build,
    configure many parts automatically, and so on.

  - Human errors on writing Makefile can be reduced.

Change-Id: I62a6129fa4a9a0fb6ab48509ef163ea7fc0369b9
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
Signed-off-by: SooChan Lim <sc1.lim@samsung.com>
6 years agoPackage version up to 1.4.6 84/145284/3 accepted/tizen/4.0/unified/20170829.015837 accepted/tizen/unified/20170822.113124 submit/tizen/20170822.045927 submit/tizen_4.0/20170828.100004
joonbum.ko [Tue, 22 Aug 2017 02:57:57 +0000 (11:57 +0900)]
Package version up to 1.4.6

Change-Id: I707c4be1cdcc680063f4fe73a109c92868d1d6f1
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Modified the procedure of finalizing disp_source. 83/145283/4
joonbum.ko [Tue, 22 Aug 2017 02:50:07 +0000 (11:50 +0900)]
tpl_wayland_egl_thread: Modified the procedure of finalizing disp_source.

 - Added twe_wl_disp_del_source, an event gsource to delete twe_wl_disp_source.
 - When delete twe_wl_disp_source, calling _twe_thread_wl_disp_del_trigger()
  wakes up twe_wl_disp_del_source and removes twe_wl_disp_source in the thread.

Change-Id: I6a9ab462e8ab464663ee60db1548d822c50d7f00
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agoChange build option spacing for consistency 92/144892/3
Hoyub Lee [Fri, 18 Aug 2017 08:04:53 +0000 (17:04 +0900)]
Change build option spacing for consistency

Change-Id: I538e69f3c79a03e679d0102e445c141cee177d13
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years agoPackage version up to 1.4.5 79/144779/1 accepted/tizen/unified/20170818.155008 submit/tizen/20170818.022541
joonbum.ko [Fri, 18 Aug 2017 01:50:46 +0000 (10:50 +0900)]
Package version up to 1.4.5

Change-Id: I90e1e34df853156515ad07e8298acbd2d1e71d8e
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Fixed an error related to prepared flag. 78/144778/1
joonbum.ko [Fri, 18 Aug 2017 01:46:56 +0000 (10:46 +0900)]
tpl_wayland_egl_thread: Fixed an error related to prepared flag.

 - The code that set prepared to TRUE was wrong.
 - Fixed an issue where wl_display_cancel_read() could be called multiple times,
  even if wl_display_prepare_read_queue was only called once due to the prepared flag.

Change-Id: Ibdbe92ed3bbe00ffac6570fac5f76cf8f243d706
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agoPackage version up to 1.4.4 63/143963/3 accepted/tizen/unified/20170816.160101 submit/tizen/20170814.073543
joonbum.ko [Mon, 14 Aug 2017 06:16:59 +0000 (15:16 +0900)]
Package version up to 1.4.4

Change-Id: I093a6e829cc4c1afdaf75c7123aaceb9ec41216c
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Added a prepared flag to match prepare and read/cancel pairs. 62/143962/2
joonbum.ko [Mon, 14 Aug 2017 06:12:23 +0000 (15:12 +0900)]
tpl_wayland_egl_thread: Added a prepared flag to match prepare and read/cancel pairs.

 - Some problem occurs when gsource calls several prepare functions in one loop sequence.
 - prepared flag can prevent that problem.

Change-Id: Idf715b43af37fab527b996c8c52d62f1b28367ee
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agoPackage version up to 1.4.3 17/143517/1 accepted/tizen/unified/20170811.133048 submit/tizen/20170810.082948
joonbum.ko [Thu, 10 Aug 2017 07:47:14 +0000 (16:47 +0900)]
Package version up to 1.4.3

Change-Id: I4d2f50d9fc1241744f2c8575218b423b069e160d
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl_thread: Added window rotate callback for prerotation. 16/143516/1
joonbum.ko [Thu, 10 Aug 2017 07:31:24 +0000 (16:31 +0900)]
tpl_wayland_egl_thread: Added window rotate callback for prerotation.

 - Before this patch, there was no way to update the tpl_surface->rotation value.
 - So added an internal function to register rotation callback to know rotation value.

 - Added New internal API :
  tpl_result_t twe_surface_set_rotate_callback(twe_surface_h, void *data, tpl_surface_cb_func_t)

 - By registering a callback with above internal API at the time of wayland_egl_surface init,
  tpl_surface can know whether window is rotating or not and can update the value of rotation.

Change-Id: I32de635145d434e822423202e5311c5024cca16c
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agoPackage version up to 1.4.2 84/143084/5
joonbum.ko [Tue, 8 Aug 2017 10:30:13 +0000 (19:30 +0900)]
Package version up to 1.4.2

Change-Id: I1d448a8a1512d68f665aeca2937d3e278bdd547d
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl: remove the unused variable 40/143140/3
SooChan Lim [Wed, 9 Aug 2017 00:45:04 +0000 (09:45 +0900)]
tpl_wayland_egl: remove the unused variable

Change-Id: Id25e309dbcd59f67fa9edaa0b048577bf7a263ee

6 years agotpl_wayland_egl: Fixed wrong procedure of cancel_dequeued_buffer 77/143077/2
joonbum.ko [Wed, 2 Aug 2017 06:22:55 +0000 (15:22 +0900)]
tpl_wayland_egl: Fixed wrong procedure of cancel_dequeued_buffer

Change-Id: Iac13118c24e87546ffaef6116bf826285a0766e0
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agoPackage version up to 1.4.1 06/141606/1 accepted/tizen/4.0/unified/20170816.010353 accepted/tizen/4.0/unified/20170816.014146 accepted/tizen/unified/20170803.161319 submit/tizen/20170801.231455 submit/tizen/20170803.043246 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0_unified/20170814.115522
joonbum.ko [Tue, 1 Aug 2017 06:04:47 +0000 (15:04 +0900)]
Package version up to 1.4.1

 libwayland-egl : package version up to 1.2.2

Change-Id: Ic80a31bb98a5521578a57048818208ef335017dc
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agolibtpl-egl.spec: libwayland-egl.so was included again. 05/141605/1
joonbum.ko [Tue, 1 Aug 2017 05:55:35 +0000 (14:55 +0900)]
libtpl-egl.spec: libwayland-egl.so was included again.

 - Since libwayland-egl.so is often directly dlopen,
  it is included again temporarily.

Change-Id: Ica57a476e4d7d3a470c591a7424928b69f129e42
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agotpl_wayland_egl: Format of tpl_surface is now used instead of ARGB8888 74/140574/3
Hoyub Lee [Tue, 25 Jul 2017 10:58:15 +0000 (19:58 +0900)]
tpl_wayland_egl: Format of tpl_surface is now used instead of ARGB8888

Because there was no real use case using format other than ARGB8888,
the format value in __tpl_wayland_egl_surface_init() was fixed as ARGB8888.

However, there were cases using other formats on CTS.
Therefore, the format of tpl_surface is going to be used.

Change-Id: I427d1a989267b9ec0fbe03f5bb67b02ba985a039
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
7 years agoPackage version up to 1.4.0 80/139580/1 accepted/tizen/unified/20170720.164855 submit/tizen/20170719.053735
joonbum.ko [Wed, 19 Jul 2017 10:44:35 +0000 (19:44 +0900)]
Package version up to 1.4.0

 - DDK can use WAYLAND_EGL_THREAD backend to enable multi-thread
  since this version 1.4.0

Change-Id: Ic8156273e06ae6c3600ebda631e9d42a9f2f04f5
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agolibtpl-egl.spec: Excluded worker_test binary building. 79/139579/1
joonbum.ko [Wed, 19 Jul 2017 10:17:08 +0000 (19:17 +0900)]
libtpl-egl.spec: Excluded worker_test binary building.

Change-Id: I47724d2be1cbdabb503d24adcf0998aad388b5d4
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agotpl_wayland_egl_thread: Made tbm_surface_queue operate in GUARANTEE_CYCLE mode. 75/139575/1
joonbum.ko [Tue, 4 Jul 2017 07:16:18 +0000 (16:16 +0900)]
tpl_wayland_egl_thread: Made tbm_surface_queue operate in GUARANTEE_CYCLE mode.

 - In multi-threaded architectures, tbm_surface_queue must fully guarantee
  the life cycle of tbm_surface so that it does not cause problems in queue_reset
  or surface destory, so wayland_egl_thread must operate the queue in
  GUARANTEE_CYCLE mode.

 - In order to avoid problems with surface source deletion, surf_source must
  remove the canceled buffer from the in_use_buffers list.

 - [libtbm]
  commit : surface_queue: added queue cancel acquire/dequeue
           I0857b16141894eaf6f06a3b1584e971ac380a513

  commit : tbm_surface_queue: added tbm_surface_queue_mode
      if user set queue mode to GUARANTEE_CYCLE, user must do enqueue/acquire/release
      or cancel_dequeue for tbm_surface which is dequeued before
      tbm_surface_queue is reset
           Ia26ae79ca376ad69d9714500bd4dfb48ae61da79

Change-Id: Idc5b256efad8167f010dd817e1228c776b970dfb
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agotpl_display: Added a new frontend API that returns appropriate backend type. 64/139564/1
joonbum.ko [Wed, 19 Jul 2017 08:38:01 +0000 (17:38 +0900)]
tpl_display: Added a new frontend API that returns appropriate backend type.

 - New API :
 tpl_backend_type_t tpl_display_get_backend_type(tpl_handle_t native_dpy)

 - The native_dpy, which can be supported by tpl,
  this function will return the corresponding backend type.
 - It is preferable to explicitly pass the returned backend type
  to tpl_display_create.

Change-Id: I987335e6e30c774b73d6bb79ff8c65fd05141baf
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agotpl_wayland_egl_thread: Fixed a issue of passing destroyed memory address. 63/139563/1
joonbum.ko [Wed, 19 Jul 2017 07:49:43 +0000 (16:49 +0900)]
tpl_wayland_egl_thread: Fixed a issue of passing destroyed memory address.

 This commit can fix the SVACE issues below.
  [SVACE][WGID][264489] PASSED_TO_PROC_AFTER_FREE.EX

Change-Id: I5b0ed5cf369990f6fe6809be375d47d79e7c2dcc
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agotpl_wayland_egl_thread: Fixed a bug code that set transform value in buf_info. 62/139562/1
joonbum.ko [Wed, 19 Jul 2017 07:43:50 +0000 (16:43 +0900)]
tpl_wayland_egl_thread: Fixed a bug code that set transform value in buf_info.

Change-Id: I0e2f5201db361f198a8498068d0caf132bb38480
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agotpl_wayland_egl_thread: Fixed potential memory leak problem. 61/139561/1
joonbum.ko [Wed, 19 Jul 2017 07:28:50 +0000 (16:28 +0900)]
tpl_wayland_egl_thread: Fixed potential memory leak problem.

Change-Id: I277770bcc41ef6bbffcd8be705f09a944dec97bd
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agotpl_wayland_egl_thread: Added NULL checking when creating thread and thread context. 60/139560/1
joonbum.ko [Wed, 19 Jul 2017 07:18:09 +0000 (16:18 +0900)]
tpl_wayland_egl_thread: Added NULL checking when creating thread and thread context.

 This commit can fix the SVACE issues below.
  [SVACE][WGID][259615] DEREF_OF_NULL.RET.ALLOC
  [SVACE][WGID][264745] DEREF_OF_NULL.RET.ALLOC

Change-Id: Ida8202a811e34ebddb3557abd43daa3610336179
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agoPackage version up to 1.3.1 90/139490/2
joonbum.ko [Wed, 19 Jul 2017 06:11:12 +0000 (15:11 +0900)]
Package version up to 1.3.1

Change-Id: I47d7908822e5118f7ae47cbbcde32ff0703edde6
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agotpl_wayland_egl: Removed duplicated logs. 89/139489/2
joonbum.ko [Thu, 6 Jul 2017 11:08:35 +0000 (20:08 +0900)]
tpl_wayland_egl: Removed duplicated logs.

Change-Id: I7a2abb66fa20a5060c7add7b8150eda2b562c9c9
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agotpl: Modified the syntax to enable threads. 88/139488/2
joonbum.ko [Thu, 6 Jul 2017 10:43:41 +0000 (19:43 +0900)]
tpl: Modified the syntax to enable threads.

Change-Id: Ic08f11e71414711067c6e27fa70bdf31c38f4149
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agotpl_wayland_egl_thread: Fixed memory corruption bug related to thread context. 93/139493/1
joonbum.ko [Thu, 6 Jul 2017 10:46:34 +0000 (19:46 +0900)]
tpl_wayland_egl_thread: Fixed memory corruption bug related to thread context.

Change-Id: I0458b16cb80889e46029dcf929cd6aa27b3ffbc5
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agotpl_wl_egl_thread: Changed the procedure to dequeue buffer. 38/137338/2
joonbum.ko [Tue, 4 Jul 2017 05:28:00 +0000 (14:28 +0900)]
tpl_wl_egl_thread: Changed the procedure to dequeue buffer.

Change-Id: I5bdc7988e84dc25fb1cb479bfacc55f6d6f4b4fa
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agotpl_wl_egl_thread: Modified the policy of the queue reset flag to be thread-specific. 37/137337/2
joonbum.ko [Tue, 4 Jul 2017 03:20:46 +0000 (12:20 +0900)]
tpl_wl_egl_thread: Modified the policy of the queue reset flag to be thread-specific.

 - When the queue is resized, change the reset flag to TPL_TRUE to reflect
    the changed window size at the next frame.
 - When queue_reset_callback is called, if is_activated is different from
    its previous state change the reset flag to TPL_TRUE to get a new buffer
    with the changed state(ACTIVATED/DEACTIVATED) at the next frame.

Change-Id: I9cd15205217456ff128beec78f5f0089852079d9
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agoRemoved the libdrm dependency from the all backends except X11. 31/138731/1 accepted/tizen/unified/20170719.004620 submit/tizen/20170713.110445
joonbum.ko [Thu, 13 Jul 2017 10:43:46 +0000 (19:43 +0900)]
Removed the libdrm dependency from the all backends except X11.

Change-Id: I34a1cea44121ff9bcb14012337e2c5dbad961e60
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agolibtpl-egl.spec: Modified the spec to build in all arches. 38/138438/1
joonbum.ko [Wed, 12 Jul 2017 07:24:37 +0000 (16:24 +0900)]
libtpl-egl.spec: Modified the spec to build in all arches.

Change-Id: Id59bf919a88e73aca1f808d1221ea144c3e6b512
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agowayland-egl: add wayland-egl-tizen.h 44/137444/1
Sangjin Lee [Thu, 6 Jul 2017 01:24:08 +0000 (10:24 +0900)]
wayland-egl: add wayland-egl-tizen.h

Change-Id: Ib344bebf6060b4dd612442bbd14d42cad4794e0f

7 years agotpl_wl_egl_thread: Changed default logs TPL_LOG_B to TPL_LOG_T. 30/137330/1 sandbox/jbko/thread accepted/tizen/unified/20170711.180707 submit/tizen/20170710.074922
joonbum.ko [Wed, 5 Jul 2017 08:26:46 +0000 (17:26 +0900)]
tpl_wl_egl_thread: Changed default logs TPL_LOG_B to TPL_LOG_T.

Change-Id: I294619a6a88052552165c57c5363f42a5281b515
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agowayland-egl: Package version up to 1.2.1 29/137329/1
joonbum.ko [Wed, 5 Jul 2017 08:21:06 +0000 (17:21 +0900)]
wayland-egl: Package version up to 1.2.1

Change-Id: I3e66cee2edab76c48a9a44a8daf32aef4b5a02e8
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agowayland-egl: Set the initial values when wl_egl_window created. 28/137328/1
joonbum.ko [Wed, 5 Jul 2017 08:20:08 +0000 (17:20 +0900)]
wayland-egl: Set the initial values when wl_egl_window created.

Change-Id: I4f6607eda7d4e0e97ce987f4f8a4986ddc443511
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agoClean up the spec file and change the versioning policy of shared object. 22/137322/1
joonbum.ko [Wed, 5 Jul 2017 08:04:51 +0000 (17:04 +0900)]
Clean up the spec file and change the versioning policy of shared object.

 - If user install these packages after this commit,
  symbolic links are created as shown below.

 [Packages for Installation] - Exclude .so file
  install dir = /usr/lib/
  libtpl-egl.so.{TPL_VERSION_MAJOR} -> libtpl-egl.so.{TPL_VERSION}
  libtpl-egl.so.{TPL_VERSION}
  libwayland-egl.so.{WL_EGL_VERSION_MAJOR} -> libwayland-egl.so.{WL_EGL_VERSION}
  libwayland-egl.so.{WL_EGL_VERSION}

 [Devel Packages] - Include .so files
  libtpl-egl.so -> libtpl-egl.so.{TPL_VERSION}
  libwayland-egl.so -> libwayland-egl.so.{WL_EGL_VERSION}

Change-Id: I9200e542a91d21caf7f97a0b0289e78bb6da07d5
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agoChange rpm package versioning policy 18/137118/1
Hoyub Lee [Tue, 4 Jul 2017 09:03:12 +0000 (18:03 +0900)]
Change rpm package versioning policy

libtpl-egl
 - RPM package version changes to (MAJOR).(MINOR).(PATCH)-(RELEASE)

libwayland-egl
 - RPM package version is separately managed with libtpl-egl

Change-Id: I25ed5152d62d1181f8635de43f877c67c7733da6
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
7 years agoChange version macro name of libwayland-egl for consistency 84/136584/3
Hoyub Lee [Fri, 30 Jun 2017 08:09:46 +0000 (17:09 +0900)]
Change version macro name of libwayland-egl for consistency

Change-Id: I148dfa2c459bc6e44c7e65424471f9e8baa139e0
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
7 years agoCreate version macros for libwayland-egl 83/136583/3
Hoyub Lee [Fri, 30 Jun 2017 07:52:41 +0000 (16:52 +0900)]
Create version macros for libwayland-egl

Change-Id: I9f7963a8c0bb839206de4fac49d8455b6f6c16d8
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
7 years agoPackage version up to 1.3.0 32/137032/1
joonbum.ko [Tue, 4 Jul 2017 07:27:47 +0000 (16:27 +0900)]
Package version up to 1.3.0

 - There is a dependency using new API of wayland-tbm.

Change-Id: Ica8e1100dc26a5a4f2688509f91865212a0ad07f
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agotpl_wayland_egl: Implement related to window rotation 27/135727/1
joonbum.ko [Mon, 26 Jun 2017 06:42:32 +0000 (15:42 +0900)]
tpl_wayland_egl: Implement related to window rotation

 - Only wayland_tbm_client_set_buffer_transform is called for buffers
  that need to be updated after window rotation occurs.

Change-Id: I2905fdf34536bd55eebdf943165ac364aa21d9d7
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agowayland_egl: Added an API to set window_transform. 26/135726/1
joonbum.ko [Thu, 22 Jun 2017 08:00:16 +0000 (17:00 +0900)]
wayland_egl: Added an API to set window_transform.

 - New API :
   void wl_egl_set_window_transform(struct wl_egl_window *egl_window, int window_transform)

 - libwayland-egl package version up to 1.2.0

Change-Id: If1e225d5bdc043f9f1acc3da1c8894caeee12136
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agoPackage version up to 1.2.0 02/134602/6
joonbum.ko [Mon, 19 Jun 2017 10:01:34 +0000 (19:01 +0900)]
Package version up to 1.2.0

Change-Id: I2e9f90dbb91549ce2b0fb73a2530ed3ecab98b61
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agotpl: Added a frontend API to cancel dequeued buffer. 01/134601/6
joonbum.ko [Mon, 19 Jun 2017 07:41:23 +0000 (16:41 +0900)]
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>
7 years agointegrated tpl_wayland_egl_thread feature. 00/134600/9
joonbum.ko [Wed, 14 Jun 2017 12:17:57 +0000 (21:17 +0900)]
integrated tpl_wayland_egl_thread feature.

 - This feature is disabled defaultly.
 - It can be enabled with set environment value 'TPL_WL_EGL_THREAD' to '1' when before running gl application.
 - Also it can be enabled defaultly with set 'ENABLE_DEFAULT_WL_THREAD' to '1' when build this package.

 - There is a new backend type for wayland_egl using thread.
  TPL_BACKEND_WAYLAND_THREAD

 - If enabled the thread feature, backend will be set to TPL_BACKEND_WAYLAND_THREAD and called every backend functions
  in tpl_wl_egl_thread.c
   If not enabled the thread feature, tpl's behavior is the same as before this commit.

Change-Id: Ib8bb0c7836ef07b53cbf306b0f5e2404d9c119ff
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agotpl_wayland_egl_thread: Implement free_flush protocol. 98/134598/6
joonbum.ko [Wed, 14 Jun 2017 11:03:49 +0000 (20:03 +0900)]
tpl_wayland_egl_thread: Implement free_flush protocol.

  - Implement free_flush of tizen_surface_shm_flusher.
    Just flush free_buffer when receive free_flush event from server.
    If this protocol is active in server,
   it can reduce quick_panel buffer 3 to 1 in idle time.

Change-Id: I69422c1b10f43ea6430c2c059eb330403a18824c
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
7 years agotpl_wayland_egl_thread: Fixed some build warning. 76/135176/5
joonbum.ko [Wed, 14 Jun 2017 08:31:43 +0000 (17:31 +0900)]
tpl_wayland_egl_thread: Fixed some build warning.

Change-Id: Ied55bdacdf5e0e910ae6b4806050c6b51c7a939e
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>