e_hwc_windows: add e_hwc_windows_comp_override_set 02/306002/3
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 22 Jan 2024 08:46:24 +0000 (17:46 +0900)
committerchangyeon lee <cyeon.lee@samsung.com>
Mon, 19 Feb 2024 05:51:00 +0000 (05:51 +0000)
Change-Id: I1ed35d2d184a2e0889b471369406e78771b5b3ac

src/bin/e_hwc.h
src/bin/e_hwc_windows.c
src/bin/e_hwc_windows.h

index 55405a80b90a89a7d9f6c51413794576ea0440e2..761bd22709872e0ef7d324cfea9d30c6d1d8bf82 100644 (file)
@@ -212,6 +212,8 @@ struct _E_Hwc
       int               max_w;
       int               max_h;
    } output_available;
+
+   Eina_Bool            comp_override;
 };
 
 E_API extern int E_EVENT_HWC_ACTIVE;
index 64fc6f7e2143cf1584b19dadfe0a14fc3762321d..8c90d4780688a010df728fd302a657de6300ce60 100644 (file)
@@ -4150,3 +4150,13 @@ e_hwc_windows_presentation_time_feedback_and_callback_take(E_Hwc *hwc, tbm_surfa
                                                 &comp_info->presentation_callbacks);
      }
 }
+
+EINTERN void
+e_hwc_windows_comp_override_set(E_Hwc *hwc, Eina_Bool set)
+{
+   EINA_SAFETY_ON_NULL_RETURN(hwc);
+
+   if (hwc->comp_override == set) return;
+
+   hwc->comp_override = set;
+}
index e036223aa204b6791a78c8009730f527a3fce0a7..bd8c79e7b8fcd45bf483214d8d7cc254d76f407e 100644 (file)
@@ -69,5 +69,7 @@ EINTERN void                 e_hwc_windows_pp_unset(E_Hwc *hwc);
 
 EINTERN void                 e_hwc_windows_presentation_time_feedback_and_callback_take(E_Hwc *hwc, tbm_surface_h tsurface);
 
+EINTERN void                 e_hwc_windows_comp_override_set(E_Hwc *hwc, Eina_Bool set);
+
 #endif
 #endif