e_hwc_windows: remove the transition at hwc 58/190658/7
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 5 Oct 2018 02:55:50 +0000 (11:55 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Tue, 30 Oct 2018 05:47:26 +0000 (05:47 +0000)
The transition at hwc is not used.

Change-Id: Ib23a0e682426ebfccef7ede5628a4aa4afa24211

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

index 9d55c84..2fa9b1f 100644 (file)
@@ -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;
 
index a66ff09..e0892a9 100644 (file)
@@ -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 */