e_hwc_window: don't set device state if transform isn't matched with output
authorChangyeon Lee <cyeon.lee@samsung.com>
Tue, 28 Jan 2020 04:14:09 +0000 (13:14 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Thu, 6 Feb 2020 05:48:54 +0000 (14:48 +0900)
if transform ins't matched with output, hwc_window can't be display by hwc
because hwc_windows doesn't change ignore_output_transform.

Change-Id: I2a767457b92443e81b072c52ee632bb06fef1646

src/bin/e_hwc_window.c

index 0de3039959a6bed9a2789487ef62ed721d5d6a4e..62c6a10623e0e9f3a7f9f6110591001e454e678f 100644 (file)
@@ -1824,30 +1824,12 @@ e_hwc_window_device_state_available_update(E_Hwc_Window *hwc_window)
         goto finish;
      }
 
-   /* If a client doesn't watch the ignore_output_transform events, we can't show
-    * a client buffer to HW overlay directly when the buffer transform is not same
-    * with output transform. If a client watch the ignore_output_transform events,
-    * we can control client's buffer transform. In this case, we don't need to
-    * check client's buffer transform here.
-    */
    transform = e_comp_wl_output_buffer_transform_get(ec);
    if ((eout->config.rotation / 90) != transform)
      {
-        if (e_comp_screen_rotation_ignore_output_transform_watch(ec))
-          {
-             if (e_comp_wl->touch.pressed)
-               {
-                  restriction = E_HWC_WINDOW_RESTRICTION_TOUCH_PRESS;
-                  available = EINA_FALSE;
-                  goto finish;
-               }
-          }
-        else
-          {
-             restriction = E_HWC_WINDOW_RESTRICTION_OUTPUT_TRANSFORM;
-             available = EINA_FALSE;
-             goto finish;
-          }
+        restriction = E_HWC_WINDOW_RESTRICTION_OUTPUT_TRANSFORM;
+        available = EINA_FALSE;
+        goto finish;
      }
 
    // if there is UI subfrace, it means need to composite