From: SooChan Lim Date: Fri, 5 Oct 2018 02:55:50 +0000 (+0900) Subject: e_hwc_windows: remove the transition at hwc X-Git-Tag: submit/tizen/20181030.101450~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F58%2F190658%2F7;p=platform%2Fupstream%2Fenlightenment.git e_hwc_windows: remove the transition at hwc The transition at hwc is not used. Change-Id: Ib23a0e682426ebfccef7ede5628a4aa4afa24211 --- 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 */