Fix ecore_wl2 TC fail issue 72/254172/3
authorWoochanlee <wc0917.lee@samsung.com>
Wed, 24 Feb 2021 09:12:30 +0000 (18:12 +0900)
committerWoochanlee <wc0917.lee@samsung.com>
Thu, 25 Feb 2021 04:49:35 +0000 (13:49 +0900)
TV profile don't wait sync when display connecting.
There is a problem in TV waiting for sync done from englightenment
Fir this reason, in the case of TV profile sync must be explicitly called
in case of using ecore_wl2 API immediately after display connect.

related with below commit.

commit 7ee4642a222c8db2bde3202f68ab0d2fcf9f5b70
Author:     Jiyoun Park <jy0703.park@samsung.com>
AuthorDate: Tue Jun 12 22:37:15 2018 +0900
Commit:     Shinwoo Kim <cinoo.kim@samsung.com>
CommitDate: Tue Jul 10 16:14:04 2018 +0900

       ecore_wl2: disable sync wait in display_connect

       if app called ecore_wl2_display_connect without window creation,
       it can undergo block until enlightenment send sync event.
       so disable sync code in display_connect like before.

    Change-Id: Id9db2fce979144c3931ab74aae32362ad7d45b12
Signee-off-by: Jiyoun Park <jy0703.park@samsung.com>
Change-Id: I394e93ca56a425c92072dfe53b376a555642015c

31 files changed:
TC/ecore/Makefile
TC/ecore/ecore_wl2/Makefile
TC/ecore/ecore_wl2/utc_ecore_wl2_common.h [new file with mode: 0644]
TC/ecore/ecore_wl2/utc_ecore_wl2_egl_window_create.c
TC/ecore/ecore_wl2/utc_ecore_wl2_egl_window_destroy.c
TC/ecore/ecore_wl2/utc_ecore_wl2_egl_window_native_get.c
TC/ecore/ecore_wl2/utc_ecore_wl2_egl_window_resize_with_rotation.c
TC/ecore/ecore_wl2/utc_ecore_wl2_input_default_input_get.c
TC/ecore/ecore_wl2/utc_ecore_wl2_input_pointer_xy_get.c
TC/ecore/ecore_wl2/utc_ecore_wl2_subsurface_del.c
TC/ecore/ecore_wl2/utc_ecore_wl2_subsurface_native_surface_get.c
TC/ecore/ecore_wl2/utc_ecore_wl2_subsurface_new.c
TC/ecore/ecore_wl2/utc_ecore_wl2_subsurface_place_surface_above.c
TC/ecore/ecore_wl2/utc_ecore_wl2_subsurface_place_surface_below.c
TC/ecore/ecore_wl2/utc_ecore_wl2_subsurface_sync_set.c
TC/ecore/ecore_wl2/utc_ecore_wl2_subsurface_video_surface_destination_set.c
TC/ecore/ecore_wl2/utc_ecore_wl2_subsurface_video_surface_prepare.c
TC/ecore/ecore_wl2/utc_ecore_wl2_window_commit.c
TC/ecore/ecore_wl2/utc_ecore_wl2_window_damage.c
TC/ecore/ecore_wl2/utc_ecore_wl2_window_frame_callback_add_del.c
TC/ecore/ecore_wl2/utc_ecore_wl2_window_lower.c
TC/ecore/ecore_wl2/utc_ecore_wl2_window_native_surface_get.c
TC/ecore/ecore_wl2/utc_ecore_wl2_window_raise.c
TC/ecore/ecore_wl2/utc_ecore_wl2_window_render_sync_fd_create.c
TC/ecore/ecore_wl2/utc_ecore_wl2_window_show.c
TC/ecore/ecore_wl2/utc_ecore_wl2_window_video_surface_create.c
TC/ecore/ecore_wl2/utc_ecore_wl2_window_video_surface_destination_set.c
TC/ecore/ecore_wl2/utc_ecore_wl2_window_video_surface_destroy.c
TC/ecore/ecore_wl2/utc_ecore_wl2_window_video_surface_get.c
TC/ecore/ecore_wl2/utc_ecore_wl2_window_video_surface_sync_set.c
packaging/efl-test-suite.spec

index 233c6d7208a66defefbb2b794b4df938fac65d97..6fcde4c4c85c8c9219d516fb1cbf6949fbad38e4 100644 (file)
@@ -2,7 +2,7 @@ CC ?= gcc
 
 C_FILES = $(shell cat tslist)
 
-PKGS = eina ecore ecore-con eet ecore-file ecore-ipc check ecore-evas evas ecore-input ecore-imf ecore-fb ecore-buffer ecore-imf-evas ecore-wl2 egl
+PKGS = eina ecore ecore-con eet ecore-file ecore-ipc check ecore-evas evas ecore-input ecore-imf ecore-fb ecore-buffer ecore-imf-evas ecore-wl2 egl capi-system-info
 
 EXTRA_LDFLAGS = `pkg-config --libs $(PKGS)`
 
index eaa26d57c84b2f8e5ea43dec6894e7502d75e8f8..0bcf216a0c951dc78ec01bd039bba093a43b0ab1 100644 (file)
@@ -2,7 +2,7 @@ CC ?= gcc
 
 C_FILES = $(shell cat tslist)
 
-PKGS = eina ecore ecore-wl2 check egl
+PKGS = eina ecore ecore-wl2 check egl capi-system-info
 
 EXTRA_LDFLAGS = `pkg-config --libs $(PKGS)`
 
diff --git a/TC/ecore/ecore_wl2/utc_ecore_wl2_common.h b/TC/ecore/ecore_wl2/utc_ecore_wl2_common.h
new file mode 100644 (file)
index 0000000..a726c4b
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef UTC_ECORE_WL2_COMMON_H_
+#define UTC_ECORE_WL2_COMMON_H_
+
+#include <system_info.h>
+
+//TV profile don't wait sync when display connecting.
+//There is a problem in TV waiting for sync done from englightenment
+//Fir this reason, in the case of TV profile sync must be explicitly called
+//in case of using ecore_wl2 API immediately after display connect.
+#define CHECK_TV_PROFILE() \
+({ \
+   int check_ret; \
+   do { \
+          char *profile; \
+          system_info_get_platform_string("http://tizen.org/feature/profile", &profile); \
+          if ((!strcmp(profile, "tv")) || (!strcmp(profile, "TV"))) check_ret = 1; \
+          else check_ret = 0; \
+          free(profile); \
+   } while (0); \
+   check_ret; \
+})
+
+#endif /* UTC_ECORE_WL2_COMMON_H_ */
index e7a977162e3872035a88fcde071ec6cc60d5be1b..b747eb1f13ef68cb687aac8c8856a7568ed2865e 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -42,6 +43,8 @@ static Eina_Bool _timer_cb(void *data)
         return ECORE_CALLBACK_DONE;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index 4178bdda5b40767cb33ee386df46ccc478ef6125..b2c252a28d3ae4ab959f03f2a1bf5a8ebe9327a3 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -42,6 +43,8 @@ static Eina_Bool _timer_cb(void *data)
         return ECORE_CALLBACK_DONE;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index fbb62ae3c3653fcadbb0195526e88fc4b03fbc90..c2f87cd96d8805605f36c9fddc3eaa37776bda34 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -42,6 +43,8 @@ static Eina_Bool _timer_cb(void *data)
         return ECORE_CALLBACK_DONE;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index 4e6b2843bb4c8dd86056602962d66219848add01..ca9ead2e0d28d4a6e67b8176df9a3ca6252a3095 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -42,6 +43,8 @@ static Eina_Bool _timer_cb(void *data)
         return ECORE_CALLBACK_DONE;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index 62f603623981bdf23e89ba77867f80b58073145d..97f632632b4c4717da96b837c64de2e56033e1e7 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -42,6 +43,8 @@ static Eina_Bool _timer_cb(void *data)
         return ECORE_CALLBACK_DONE;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Input *default_input = NULL;
 
    default_input = ecore_wl2_input_default_input_get(ewd);
index fcf4b6da8b15db341c8acd48cf4b048feebdb800..f5f8bb20e5a4b5a9f41c7dfaa257ba830b492710 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -65,6 +66,8 @@ static Eina_Bool _timer_cb(void *data)
         return ECORE_CALLBACK_DONE;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index 9472e2cd51a24571d335d8ca498bfcf6362046f0..13f56a8bbb527a5108f3c937741cd7b102051b0a 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -43,6 +44,8 @@ static Eina_Bool _timer_cb(void *data)
         goto quit_main_loop;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index 03faaaf86c0f9ba92bbd5f67f8463090a3e27fdd..1b1a1daf6e81db601d699a154cb5e54c91ae52d8 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -44,6 +45,8 @@ static Eina_Bool _timer_cb(void *data)
         goto quit_main_loop;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index 59b31b05a623e2066ff4e8a2c1a07294b94e56c4..b579fd59223705cfb837a6ffa911aa1ce4535632 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -43,6 +44,8 @@ static Eina_Bool _timer_cb(void *data)
         goto quit_main_loop;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index a356d0d1627a311775fb3f23a3acc753fe3c7e7d..1fbbcd7f4beedbbb5e7376f17816e2a6dacbd609 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -43,6 +44,8 @@ static Eina_Bool _timer_cb(void *data)
         goto quit_main_loop;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index 75d9af93b7604a5a9e66dc2426e4925dab9cd67d..d2007e1ea0fa37cef03eef5caf4a7da1eaf1032c 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -43,6 +44,8 @@ static Eina_Bool _timer_cb(void *data)
         goto quit_main_loop;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index 2b87fb1f0330a25595cbf30b80e3a4a3db88a328..7393323940d1e690a8f078b37a171d61601b92ae 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -43,6 +44,8 @@ static Eina_Bool _timer_cb(void *data)
         goto quit_main_loop;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index 340b1e491972facf74eb9e2865c1243f47881e07..566dc68709368936b8ed1e36faf89673bdf23fc9 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -44,6 +45,8 @@ static Eina_Bool _timer_cb(void *data)
         goto quit_main_loop;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index f257d90931f86dc07137681bde8beaeb41b4d7b9..50b0aed52d7d0889058f1442662ad313b780bdfb 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -44,6 +45,8 @@ static Eina_Bool _timer_cb(void *data)
         goto quit_main_loop;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index ee7fa4876dea70dc6846641978e463b33245efdb..eb807da673c84700d0cc728a4a5346b7634c749b 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -61,6 +62,8 @@ static Eina_Bool _timer_cb(void *data)
         return ECORE_CALLBACK_DONE;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index fea9f53a3552b475a427bb3d5f213bd1861533ab..3c85e5460f1730161b7b91fc7ecf037697031181 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -42,6 +43,8 @@ static Eina_Bool _timer_cb(void *data)
         return ECORE_CALLBACK_DONE;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index ee7a8f497a5d204734b2c5a75d064724638a3fe0..3a84f07846729a712856482bca80eea7cfaa1e8d 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -68,6 +69,8 @@ static Eina_Bool _timer_cb(void *data)
         return ECORE_CALLBACK_DONE;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index 977b1ab9638c918788331c3eee493bf61eeb57a0..2a3fb64b2e46b4dfa71e1e08710db82ad5d0d0a6 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -65,6 +66,8 @@ static Eina_Bool _timer_cb(void *data)
         return ECORE_CALLBACK_DONE;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index 91a6f4227cf86666f60b3dbabf4cf4caeb77ff93..f4d9aa9c8ee07cd9e5fde17bd2d61ad375fb57d4 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -42,6 +43,8 @@ static Eina_Bool _timer_cb(void *data)
         return ECORE_CALLBACK_DONE;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index ad028dd39b695706581feb7b626ed2e2e0595fb8..23d55699428f8dac81135213822762c3366d6ab0 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -55,6 +56,8 @@ static Eina_Bool _timer_cb(void *data)
         return ECORE_CALLBACK_DONE;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index 2c62181e7cdf6185ea0eb876b597fb9432543c7c..966ce52a5b8bccfbc0d733071ef3f59912754d5a 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 #include <EGL/egl.h>
 
@@ -47,6 +48,8 @@ static Eina_Bool _timer_cb(void *data)
         goto quit_main_loop;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index 7cef0652173ae350862dc5bed939d50fb1bbcb89..e08b00760425c5b7b9b676a886aeab2bcbc52de2 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -53,6 +54,8 @@ static Eina_Bool _timer_cb(void *data)
         return ECORE_CALLBACK_DONE;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index 035518d03c438a24c1103018ca19cb15bd2f88ba..f29f7c251557495a77a96da1dd078b103e4a4594 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -43,6 +44,8 @@ static Eina_Bool _timer_cb(void *data)
         goto quit_main_loop;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index e2a1d0a8562454e83d6f7d944bcc4c99b9cdc9f0..31c6822d470af80ec5e4af891d9245f7bbbb8bad 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -43,6 +44,8 @@ static Eina_Bool _timer_cb(void *data)
         goto quit_main_loop;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index f15f6beb34aba360b9981f20a5c4df6d7c951440..47094d6cd125332822da9029c828b8b17c0db05c 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -43,6 +44,8 @@ static Eina_Bool _timer_cb(void *data)
         goto quit_main_loop;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index 63763d0f4e964b005872f17ec40c7dc0f5ad9628..ffd4fdc72a3632d5c35b2aaeaba683f611b4d214 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -44,6 +45,8 @@ static Eina_Bool _timer_cb(void *data)
         goto quit_main_loop;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index e91fea3573899492443c946ff23de27d3a0a0f55..2cfda2213b5bf32db009bec54e1e0f3a355a2fc8 100644 (file)
@@ -2,6 +2,7 @@
 #include <Eina.h>
 #include <Ecore.h>
 #include <Ecore_Wl2.h>
+#include "utc_ecore_wl2_common.h"
 
 static Eina_Bool startup_status = EINA_FALSE;
 static Ecore_Timer *timer_exit = NULL;
@@ -43,6 +44,8 @@ static Eina_Bool _timer_cb(void *data)
         goto quit_main_loop;
      }
 
+   if (CHECK_TV_PROFILE()) ecore_wl2_display_sync(ewd);
+
    Ecore_Wl2_Window *win = NULL;
    win = ecore_wl2_window_new(ewd, NULL, 0, 0, 1, 1);
    if (!win)
index fd54e53fb1311875dbda1899809f921a9a569517..1c608fd822725b0cccb890ec185e871097339459 100644 (file)
@@ -21,6 +21,7 @@ BuildRequires:  pkgconfig(check)
 BuildRequires:  pkgconfig(ecore-wayland)
 BuildRequires:  pkgconfig(ecore-wl2)
 BuildRequires:  pkgconfig(egl)
+BuildRequires:  pkgconfig(capi-system-info)
 
 %global debug_package %{nil}
 %global __debug_install_post %{nil}