ecore-evas-wayland-egl: Add support for custom Ecore_Wl animator
authorChris Michael <cp.michael@samsung.com>
Mon, 5 Oct 2015 17:53:36 +0000 (13:53 -0400)
committerChris Michael <cp.michael@samsung.com>
Mon, 5 Oct 2015 17:53:36 +0000 (13:53 -0400)
Summary: This adds support for ecore_wl to handle ecore animators and
thus the egl engine can receive frame callbacks now.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_egl.c

index 7afdcd6..2414e2f 100644 (file)
@@ -192,7 +192,7 @@ ecore_evas_wayland_egl_new_internal(const char *disp_name, unsigned int parent,
    /* NB: Disabled for right now as it causes textgrid (terminology) 
     * to not draw text anymore */
    /* if (getenv("ECORE_EVAS_FORCE_SYNC_RENDER")) */
-   /*   ee->can_async_render = 0; */
+   ee->can_async_render = 0;
    /* else */
    /*   ee->can_async_render = 1; */
 
@@ -250,6 +250,8 @@ ecore_evas_wayland_egl_new_internal(const char *disp_name, unsigned int parent,
         goto err;
      }
 
+   ecore_wl_animator_source_set(ECORE_ANIMATOR_SOURCE_CUSTOM);
+
    ecore_evas_callback_pre_free_set(ee, _ecore_evas_wl_common_pre_free);
 
    if (ee->prop.draw_frame)