From 5cebc4466d692969d0e1e49464e4936cfc44e2b0 Mon Sep 17 00:00:00 2001 From: Changyeon Lee Date: Fri, 6 Nov 2020 19:06:05 +0900 Subject: [PATCH] e_hwc_windows: don' call sync callback if hwc needs re_evaluate transition of hwc can be set false even if hwc_commit is needed. Change-Id: I528deaebf748e6c6e2f09981c5d1611c61767848 --- src/bin/e_hwc.h | 1 + src/bin/e_hwc_windows.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bin/e_hwc.h b/src/bin/e_hwc.h index d085c07f4a..9ec0809f1a 100644 --- a/src/bin/e_hwc.h +++ b/src/bin/e_hwc.h @@ -108,6 +108,7 @@ struct _E_Hwc int num_visible_windows; Eina_Bool device_state_available; Eina_Bool transition; + Eina_Bool re_evaluate; Eina_Bool property_changed; /* capabilities */ diff --git a/src/bin/e_hwc_windows.c b/src/bin/e_hwc_windows.c index 5ae94c93d3..3a4b469c51 100644 --- a/src/bin/e_hwc_windows.c +++ b/src/bin/e_hwc_windows.c @@ -2682,12 +2682,15 @@ _e_hwc_windows_evaluate(E_Hwc *hwc, E_Output_Display_Mode display_mode) } hwc->transition = EINA_FALSE; + hwc->re_evaluate = EINA_FALSE; return EINA_TRUE; re_evaluate: EHWSTRACE("======= HWC NOT Accept Validation Yet !! =======", NULL, hwc); + hwc->re_evaluate = EINA_TRUE; + return EINA_FALSE; } @@ -3255,7 +3258,7 @@ e_hwc_windows_commit(E_Hwc *hwc, E_Output_Display_Mode display_mode) e_comp_wl_tizen_hwc_committed(); update_done: - if (!hwc->transition) + if (!hwc->re_evaluate) _e_hwc_windows_sync_callback_call(hwc); return EINA_TRUE; -- 2.34.1