e_comp_canvas: add e_comp_canvas_norender at HWC_MULTI 68/81468/1
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 26 Jul 2016 01:32:03 +0000 (10:32 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 26 Jul 2016 01:32:03 +0000 (10:32 +0900)
Change-Id: Ib1683e3df3800962370a3fd21808d441951f4a0d

src/bin/e_comp_canvas.c
src/bin/e_plane.c

index 15676169c57e5e469ce869aa466133ee6e7eaf9f..c3fe0023302e1aff2a5fb8b675fc38b623047d84 100644 (file)
@@ -708,8 +708,10 @@ E_API void
 e_comp_canvas_norender_push(void)
 {
    e_comp->norender++;
+#ifdef ENABLE_HWC_MULTI
    if (e_comp->norender == 1)
      ecore_evas_manual_render_set(e_comp->ee, EINA_TRUE);
+#endif
 }
 
 E_API void
@@ -719,8 +721,11 @@ e_comp_canvas_norender_pop(void)
      return;
 
    e_comp->norender--;
+
+#ifdef ENABLE_HWC_MULTI
    if (e_comp->norender == 0)
      ecore_evas_manual_render_set(e_comp->ee, EINA_FALSE);
+#endif
 }
 
 E_API int
index 4ad79167680551499c49935a0214c60c0cb0d7b7..613b0dbd2f2e99638bfe5d55ab780970ee03b0a1 100644 (file)
@@ -1524,6 +1524,14 @@ e_plane_fetch(E_Plane *plane)
 
    if (plane->is_primary && !plane->ec)
      {
+        if (e_comp_canvas_norender_get() > 0)
+          {
+             if (plane_trace_debug)
+               ELOGF("E_PLANE", "Canvas norender is set. No Display.", NULL, NULL);
+
+             return EINA_FALSE;
+          }
+
         ecore_evas_manual_render(plane->ee);
 
         /* check the post_render is called */