e_hwc_window: add E_HWC_WINDOW_HOOK_VIDEO_SET 82/315382/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 27 May 2024 07:41:10 +0000 (16:41 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Wed, 31 Jul 2024 05:54:18 +0000 (14:54 +0900)
Change-Id: Ieecbd7e4e6a515794f60bc0add4c5b330d8f8aeb

src/bin/displaymgr/e_hwc_window.c
src/bin/displaymgr/e_hwc_window_intern.h
src/bin/displaymgr/e_hwc_window_queue.c

index 0b16597..77e3f8c 100644 (file)
@@ -87,6 +87,7 @@ typedef struct _Hwc_Window_Prop
 static Eina_Inlist *_e_hwc_window_hooks[] =
 {
    [E_HWC_WINDOW_HOOK_ACCEPTED_STATE_SET] = NULL,
+   [E_HWC_WINDOW_HOOK_VIDEO_SET] = NULL,
 };
 
 static void
@@ -1593,6 +1594,8 @@ e_hwc_window_video_set(E_Hwc_Window *hwc_window, Eina_Bool set)
 
    hwc_window->is_video = set;
 
+   _e_hwc_window_hook_call(E_HWC_WINDOW_HOOK_VIDEO_SET, hwc_window);
+
    return EINA_TRUE;
 }
 
index 759f6c2..d37e286 100644 (file)
 #define EHW_C(b,m)              (b ? ((b) >> (m)) & 0xFF : ' ')
 #define EHW_FOURCC_STR(id)      EHW_C(id,0), EHW_C(id,8), EHW_C(id,16), EHW_C(id,24)
 
+#define E_HWC_WINDOW_HOOK_APPEND(list, type, callback, data) \
+  do \
+    { \
+       E_Hwc_Window_Hook *_ch; \
+       _ch = e_hwc_window_hook_add(type, callback, data); \
+       assert(_ch); \
+       list = eina_list_append(list, _ch); \
+    } \
+  while (0)
+
 typedef struct _E_Hwc_Window_Commit_Data          E_Hwc_Window_Commit_Data;
 typedef struct _E_Hwc_Window_Hook                 E_Hwc_Window_Hook;
 
@@ -53,6 +63,7 @@ typedef enum _E_Hwc_Window_Restriction
 typedef enum _E_Hwc_Window_Hook_Point
 {
    E_HWC_WINDOW_HOOK_ACCEPTED_STATE_SET,
+   E_HWC_WINDOW_HOOK_VIDEO_SET,
    E_HWC_WINDOW_HOOK_LAST
 } E_Hwc_Window_Hook_Point;
 
index 8985186..89ae4be 100644 (file)
 #define CLEAR(x) memset(&(x), 0, sizeof (x))
 #endif
 
-#define E_HWC_WINDOW_HOOK_APPEND(list, type, callback, data) \
-  do \
-    { \
-       E_Hwc_Window_Hook *_ch; \
-       _ch = e_hwc_window_hook_add(type, callback, data); \
-       assert(_ch); \
-       list = eina_list_append(list, _ch); \
-    } \
-  while (0)
-
 #define E_HWC_HOOK_APPEND(list, type, callback, data) \
   do \
     { \