e_hwc: don't allow hwc if comp_override of ec is positive 48/194048/2
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 28 Nov 2018 11:28:20 +0000 (20:28 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 29 Nov 2018 01:06:58 +0000 (01:06 +0000)
Change-Id: Ic15e51591bdfa1b1df3240e2e4533bb99d010572

src/bin/e_hwc_planes.c
src/bin/e_hwc_window.c

index 7a53b55..b35dbfa 100644 (file)
@@ -22,6 +22,8 @@ _e_hwc_planes_ec_check(E_Client *ec)
    int minw = 0, minh = 0;
    int transform;
 
+   if (ec->comp_override > 0) return EINA_FALSE;
+
    if ((!cdata) ||
        (!cdata->buffer_ref.buffer) ||
        (cdata->width_from_buffer != cdata->width_from_viewport) ||
index 38e6b9b..7c9dd02 100644 (file)
@@ -1304,6 +1304,13 @@ e_hwc_window_device_state_available_check(E_Hwc_Window *hwc_window)
    ec = hwc_window->ec;
    EINA_SAFETY_ON_NULL_RETURN_VAL(ec, EINA_FALSE);
 
+   if (ec->comp_override > 0)
+     {
+        EHWTRACE("   -- {%25s} is forced to set CL state.(comp_override)",
+                 hwc_window->ec, hwc_window, ec->icccm.title);
+        return EINA_FALSE;
+     }
+
    cdata = (E_Comp_Wl_Client_Data*)ec->comp_data;
    if ((!cdata) || (!cdata->buffer_ref.buffer))
      {