e_hwc: don't allow hwc if ec is animating 51/194051/2
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 28 Nov 2018 11:30:39 +0000 (20:30 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Thu, 29 Nov 2018 04:50:57 +0000 (04:50 +0000)
Change-Id: I3c63e1012b86f2431ee7e5fefb6dabe1b38581d5

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

index b35dbfaa4a2bd4e75ad11abb75e71f7fce28dea8..16649effb2e8b3afc9eeeb897c5fb32452ee45f6 100644 (file)
@@ -24,6 +24,8 @@ _e_hwc_planes_ec_check(E_Client *ec)
 
    if (ec->comp_override > 0) return EINA_FALSE;
 
+   if (e_comp_object_is_animating(ec->frame)) return EINA_FALSE;
+
    if ((!cdata) ||
        (!cdata->buffer_ref.buffer) ||
        (cdata->width_from_buffer != cdata->width_from_viewport) ||
index 7c9dd024d09240306fbd6af719be3aa09447d87f..13ae58ff35a8e53a17e494fcf1b231dc59867f20 100644 (file)
@@ -1311,6 +1311,13 @@ e_hwc_window_device_state_available_check(E_Hwc_Window *hwc_window)
         return EINA_FALSE;
      }
 
+   if (e_comp_object_is_animating(ec->frame))
+     {
+        EHWTRACE("   -- {%25s} is forced to set CL state.(animating)",
+                 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))
      {