rotation: do not clear of pixmap while rotation to prevent black screen for the ec... 82/115382/1
authorGwanglim Lee <gl77.lee@samsung.com>
Fri, 17 Feb 2017 13:58:35 +0000 (22:58 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Fri, 17 Feb 2017 13:58:35 +0000 (22:58 +0900)
Change-Id: I54fd878b1892ee51f622a456f269227685b31211

src/rotation/e_mod_rotation_wl.c

index 875a9f2..49c1398 100644 (file)
@@ -1903,11 +1903,15 @@ _rot_cb_buffer_change(void *data EINA_UNUSED, int ev_type EINA_UNUSED, E_Event_C
     */
    if ((!rot->angle_change_done) || (!e_pixmap_resource_get(ev->ec->pixmap)))
      {
-        DBG("Update Buffer in progress of rotation ec '%s'(%p) EVENT",
-            ev->ec->icccm.name ? ev->ec->icccm.name : "", ev->ec);
+        DBG("Update Buffer in progress of rotation ec '%s'(%p) EVENT nopending_render:%d",
+            ev->ec->icccm.name ? ev->ec->icccm.name : "", ev->ec,
+            ev->ec->e.state.rot.nopending_render);
 
-        e_pixmap_image_clear(ev->ec->pixmap, EINA_TRUE);
-        e_pixmap_resource_set(ev->ec->pixmap, NULL);
+        if (!ev->ec->e.state.rot.nopending_render)
+          {
+             e_pixmap_image_clear(ev->ec->pixmap, EINA_TRUE);
+             e_pixmap_resource_set(ev->ec->pixmap, NULL);
+          }
      }
    else if (rot->wait_update)
      {