hwc: set manual render when setup hwc 99/96499/2
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 9 Nov 2016 04:27:37 +0000 (13:27 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Thu, 17 Nov 2016 00:35:25 +0000 (16:35 -0800)
Change-Id: I12a793c845274e8cd1c04ab18062a370a04c870f

src/bin/e_comp_screen.c
src/bin/e_plane.c
src/bin/e_plane_renderer.c

index 7a6f736c02cc0b5ea78521697230e236e50752ea..e9f9346fe3b11012874d8eb02b836efc377ee88c 100644 (file)
@@ -142,6 +142,7 @@ _e_comp_screen_commit_idle_cb(void *data EINA_UNUSED)
    E_Output *output = NULL;
 
    if (!e_comp->e_comp_screen) goto end;
+   if (!e_comp->hwc) goto end;
 
    e_comp_screen = e_comp->e_comp_screen;
 
index 86cfc167136765402957e7e50b00d8dc7c745e39..1df97ed14e9bddb71187aaeeb4b98865445ec030 100644 (file)
@@ -639,10 +639,12 @@ e_plane_hwc_setup(E_Plane *plane)
         if (!einfo) return EINA_FALSE;
         /* enable hwc to evas engine gl_drm */
         einfo->info.hwc_enable = EINA_TRUE;
+        ecore_evas_manual_render_set(e_comp->ee, 1);
         return EINA_TRUE;
      }
    else if(!strcmp("drm_tbm", name))
      {
+        ecore_evas_manual_render_set(e_comp->ee, 1);
         return EINA_TRUE;
      }
 
index 301889eab337b879878f49c0e0415fac0189dc2c..6ffde90ef1ed05a7e999ad7a8c8115883b308429 100644 (file)
@@ -589,7 +589,6 @@ e_plane_renderer_new(E_Plane *plane)
         renderer->ee = e_comp->ee;
         renderer->evas = ecore_evas_get(renderer->ee);
         renderer->tqueue = _get_tbm_surface_queue(renderer->ee);
-        ecore_evas_manual_render_set(renderer->ee, 1);
         renderer->event_fd = eventfd(0, EFD_NONBLOCK);
         renderer->event_hdlr = ecore_main_fd_handler_add(renderer->event_fd, ECORE_FD_READ,
                                _e_plane_renderer_cb_queue_acquirable_event, NULL, NULL, NULL);