e_output: commit plane when plane needs unset commit 99/112899/2
authorChangyeon Lee <cyeon.lee@samsung.com>
Fri, 3 Feb 2017 05:57:52 +0000 (14:57 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 7 Feb 2017 04:11:09 +0000 (20:11 -0800)
Change-Id: I3c283c21b34f0bd8982933135009308fd4b31f9a

src/bin/e_output.c

index 3c3f7c4cddc0909ce313d3d425df05c89254a31e..8a76459760552348ef97dd7947e2263f83a459ac 100644 (file)
@@ -775,7 +775,11 @@ e_output_commit(E_Output *output)
         if (e_plane_is_fb_target(plane) && plane->ec)
            fb_hwc_on = EINA_TRUE;
 
-        if (!e_plane_fetch(plane)) continue;
+        if (!e_plane_fetch(plane))
+          {
+             if (!plane->need_to_unset_commit) continue;
+             if (!fb_hwc_on && !fb_commit) continue;
+          }
 
         if (output->dpms == E_OUTPUT_DPMS_OFF)
           {
@@ -788,14 +792,6 @@ e_output_commit(E_Output *output)
               _e_output_update_fps();
               fb_commit = EINA_TRUE;
           }
-        else
-          {
-              if (plane->need_to_unset_commit)
-                {
-                  if (!fb_hwc_on && !fb_commit)
-                      continue;
-                }
-          }
 
         if (!e_plane_commit(plane))
           ERR("fail to e_plane_commit");