e_plane: clear the pixmap of the ec at e_plane_commit 12/133212/3 accepted/tizen/unified/20170613.193739 submit/tizen/20170612.102910
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 9 Jun 2017 07:50:44 +0000 (16:50 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Mon, 12 Jun 2017 10:21:09 +0000 (10:21 +0000)
move the e_pixmap_image_clear from e_plane_commit_data_aquire
to e_plane_commit when the comp is nocomp mode.

Change-Id: I1c0840744182bb753911bf6f2ceccd39b5c6d291

src/bin/e_plane.c

index 8e2f5deb8e4c93fbae2158834c2351a2af6ae9ea..d92432bc4b9556f936a9adbdff866132664a9cde 100644 (file)
@@ -955,6 +955,10 @@ e_plane_commit(E_Plane *plane)
         return EINA_FALSE;
      }
 
+    /* send frame event enlightenment dosen't send frame evnet in nocomp */
+    if (plane->ec)
+      e_pixmap_image_clear(plane->ec->pixmap, 1);
+
    plane->pending_commit = EINA_TRUE;
 
    return EINA_TRUE;
@@ -1012,8 +1016,6 @@ e_plane_commit_data_aquire(E_Plane *plane)
              /* set the update_exist to be false */
              e_plane_renderer_update_exist_set(plane->renderer, EINA_FALSE);
 
-             /* send frame event enlightenment dosen't send frame evnet in nocomp */
-             e_pixmap_image_clear(plane->ec->pixmap, 1);
              return data;
           }
      }