Revert "e_hwc_windows: check target buffer changed after setting transition" 80/217880/1 submit/tizen_5.5/20191115.080537
authorChangyeon Lee <cyeon.lee@samsung.com>
Fri, 15 Nov 2019 06:32:52 +0000 (15:32 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Fri, 15 Nov 2019 06:58:25 +0000 (15:58 +0900)
This reverts commit c3435be4f0e096f1dc60d718730808aed99109f5.

Change-Id: I485502d24fe436135642b2464a3047ab50c6a8d2

src/bin/e_hwc_windows.c

index 0ae16ea8b2c4ae9d067cb71709ed6b561f439451..cbe9003b7db5cdadfa76cbad2981cc9e09075e04 100644 (file)
@@ -1742,6 +1742,10 @@ _e_hwc_windows_transition_check(E_Hwc *hwc)
         if (hwc_window->transition_failures > target_hwc_window->max_transition_failures)
           continue;
 
+        if ((((E_Hwc_Window *)target_hwc_window)->display.buffer.tsurface) ==
+            (((E_Hwc_Window *)target_hwc_window)->buffer.tsurface))
+          return EINA_TRUE;
+
         /* DEVICE -> CLIENT */
         if ((hwc_window->accepted_state == E_HWC_WINDOW_STATE_DEVICE) &&
             (hwc_window->state == E_HWC_WINDOW_STATE_CLIENT))
@@ -1814,11 +1818,7 @@ _e_hwc_windows_transition_check(E_Hwc *hwc)
           }
      }
 
-   if ((((E_Hwc_Window *)target_hwc_window)->display.buffer.tsurface) ==
-       (((E_Hwc_Window *)target_hwc_window)->buffer.tsurface))
-     return EINA_TRUE;
-
-   return transition;
+    return transition;
 }
 
 static Eina_Bool