e_plane: don't return ture in e_plane_fetch if plane is need to unset commit 40/103640/2
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 7 Dec 2016 12:38:12 +0000 (21:38 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Fri, 9 Dec 2016 08:20:05 +0000 (00:20 -0800)
- Don't output commit when compositor doens't complete rendering
  but anthor plane need to unset commit
- plane_surface_unset must be commit with plane_surface_set of fb target.

Change-Id: Ic689546b900af2aa7152dd2520341b788a3659f0

src/bin/e_plane.c

index 10313020b581a93cd1004d9261a802d905c23bbb..d7a6e8f60c298fb165ac788063b045d1ccc1839a 100644 (file)
@@ -731,9 +731,6 @@ e_plane_fetch(E_Plane *plane)
    if (plane->pending_commit_data)
       return EINA_FALSE;
 
-   if (plane->need_to_unset_commit)
-      return EINA_TRUE;
-
    if (plane->is_fb && !plane->ec)
      {
         /* acquire the surface */
@@ -768,6 +765,9 @@ e_plane_fetch(E_Plane *plane)
 
    if (!tsurface) return EINA_FALSE;
 
+   if (plane->need_to_unset_commit)
+      plane->need_to_unset_commit = EINA_FALSE;
+
    e_plane_renderer_previous_surface_set(plane->renderer, plane->tsurface);
    plane->tsurface = tsurface;