From 7e71b5009e936e87cb0373ce7a8fa88ed8e50bd4 Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Fri, 5 Oct 2018 11:55:50 +0900 Subject: [PATCH] e_hwc_windows: remove the transition at hwc The transition at hwc is not used. Change-Id: Ib23a0e682426ebfccef7ede5628a4aa4afa24211 --- src/bin/e_hwc.h | 1 - src/bin/e_hwc_windows.c | 16 +++++----------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/src/bin/e_hwc.h b/src/bin/e_hwc.h index 9d55c84..2fa9b1f 100644 --- a/src/bin/e_hwc.h +++ b/src/bin/e_hwc.h @@ -61,7 +61,6 @@ struct _E_Hwc Eina_Bool wait_commit; Eina_List *visible_windows; int num_visible_windows; - Eina_Bool transition; Eina_Bool intercept_pol; diff --git a/src/bin/e_hwc_windows.c b/src/bin/e_hwc_windows.c index a66ff09..e0892a9 100644 --- a/src/bin/e_hwc_windows.c +++ b/src/bin/e_hwc_windows.c @@ -992,7 +992,6 @@ _e_hwc_windows_accept(E_Hwc *hwc, uint32_t num_changes) tdm_error terror; tdm_hwc_window **changed_hwc_window = NULL; tdm_hwc_window_composition *composition_types = NULL; - Eina_Bool transition = EINA_FALSE; const Eina_List *l; E_Hwc_Mode hwc_mode = E_HWC_MODE_NONE; int i; @@ -1043,20 +1042,15 @@ _e_hwc_windows_accept(E_Hwc *hwc, uint32_t num_changes) _e_hwc_windows_status_print(hwc, EINA_FALSE); #endif + /* skip the target_buffer when the window is on trainsition of the composition */ hwc_mode = _e_hwc_windows_hwc_mode_get(hwc); - if (hwc_mode != E_HWC_MODE_FULL) + if (hwc_mode != E_HWC_MODE_FULL && + _e_hwc_windows_transition_check(hwc)) { - transition = _e_hwc_windows_transition_check(hwc); - if (transition) - { - e_hwc_window_target_buffer_skip(hwc->target_hwc_window); - hwc->transition = EINA_TRUE; - goto fail; - } + e_hwc_window_target_buffer_skip(hwc->target_hwc_window); + goto fail; } - hwc->transition = EINA_FALSE; - EHWSTRACE("HWC Accept", NULL); /* accept changes */ -- 2.7.4