e_plane: don't fetch plane if norender is pushed 34/116034/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Tue, 21 Feb 2017 07:33:34 +0000 (16:33 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Wed, 22 Feb 2017 12:33:08 +0000 (21:33 +0900)
Change-Id: I618d1bc95a72c6eeba6dceaad796a5661778e65d

src/bin/e_plane.c

index d373286f7ceccae7e1ac39e68fe04627806dcf19..646c61cbdf2564fb36012e041ddfec587651e4ba 100644 (file)
@@ -738,6 +738,14 @@ e_plane_fetch(E_Plane *plane)
 
    EINA_SAFETY_ON_NULL_RETURN_VAL(plane, EINA_FALSE);
 
+   if (e_comp_canvas_norender_get() > 0)
+     {
+        if (plane_trace_debug)
+          ELOGF("E_PLANE_RENDERER", "Canvas norender is set. No Display.", NULL, NULL);
+
+        return EINA_FALSE;
+     }
+
    if (plane->pending_commit)
       return EINA_FALSE;