From d3126228651e5dd4b1dc8baff9da165572375b90 Mon Sep 17 00:00:00 2001 From: Changyeon Lee Date: Mon, 22 Jan 2024 17:46:24 +0900 Subject: [PATCH] e_hwc_windows: add e_hwc_windows_comp_override_set Change-Id: I1ed35d2d184a2e0889b471369406e78771b5b3ac --- src/bin/e_hwc_windows.c | 10 ++++++++++ src/bin/e_hwc_windows_intern.h | 2 ++ src/include/e_hwc.h | 2 ++ 3 files changed, 14 insertions(+) diff --git a/src/bin/e_hwc_windows.c b/src/bin/e_hwc_windows.c index bf727be..2777270 100644 --- a/src/bin/e_hwc_windows.c +++ b/src/bin/e_hwc_windows.c @@ -4165,3 +4165,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; +} diff --git a/src/bin/e_hwc_windows_intern.h b/src/bin/e_hwc_windows_intern.h index 45a088b..e05a35a 100644 --- a/src/bin/e_hwc_windows_intern.h +++ b/src/bin/e_hwc_windows_intern.h @@ -64,4 +64,6 @@ EINTERN Eina_Bool e_hwc_windows_present_sync(E_Hwc *hwc); EINTERN void e_hwc_windows_trace_debug(Eina_Bool onoff); EINTERN void e_hwc_windows_debug_info_get(Eldbus_Message_Iter *iter, E_Hwc_Wins_Debug_Cmd cmd); +EINTERN void e_hwc_windows_comp_override_set(E_Hwc *hwc, Eina_Bool set); + #endif diff --git a/src/include/e_hwc.h b/src/include/e_hwc.h index 7ac3a85..a2fbbd8 100644 --- a/src/include/e_hwc.h +++ b/src/include/e_hwc.h @@ -175,6 +175,8 @@ struct _E_Hwc int max_w; int max_h; } output_available; + + Eina_Bool comp_override; }; E_API extern int E_EVENT_HWC_ACTIVE; -- 2.7.4