From: Seunghun Lee Date: Mon, 20 Jun 2016 12:15:33 +0000 (+0900) Subject: ecore-evas-wayland: Send a message of rotation change done before render flush. X-Git-Tag: accepted/tizen/common/20160621.184656^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ceee0029bfcfafac8cd1d9eb089f406d644b13c;p=platform%2Fupstream%2Fefl.git ecore-evas-wayland: Send a message of rotation change done before render flush. compositor will accept a frame after receiving a message of rotation change done. Change-Id: If16f53c2baa8ec6d701de1acfc104f8a1f47310f --- diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c index 62736fe..8dce1e1 100644 --- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c +++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c @@ -1727,15 +1727,7 @@ _ecore_evas_wl_common_render_flush_pre(void *data, Evas *evas EINA_UNUSED, void wl_surface_frame(ecore_wl_window_surface_get(wdata->win)); wl_callback_add_listener(wdata->anim_callback, &_anim_listener, ee); ecore_evas_manual_render_set(ee, 1); -} -void -_ecore_evas_wl_common_render_flush_post(void *data, Evas *evas EINA_UNUSED, void *event EINA_UNUSED) -{ - Ecore_Evas *ee = data; - Ecore_Evas_Engine_Wl_Data *wdata; - - wdata = ee->engine.data; if ((wdata) && (wdata->wm_rot.done) && (!ee->prop.wm_rot.manual_mode.set)) { diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_egl.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_egl.c index 338b7d4..df05625 100755 --- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_egl.c +++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_egl.c @@ -247,8 +247,6 @@ ecore_evas_wayland_egl_options_new_internal(const char *disp_name, unsigned int evas_event_callback_add(ee->evas, EVAS_CALLBACK_RENDER_FLUSH_PRE, _ecore_evas_wl_common_render_flush_pre, ee); - evas_event_callback_add(ee->evas, EVAS_CALLBACK_RENDER_FLUSH_POST, - _ecore_evas_wl_common_render_flush_post, ee); /* FIXME: This needs to be set based on theme & scale */ if (ee->prop.draw_frame) diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_shm.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_shm.c index a344aaf..5231b17 100644 --- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_shm.c +++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_shm.c @@ -243,8 +243,6 @@ ecore_evas_wayland_shm_new_internal(const char *disp_name, unsigned int parent, evas_event_callback_add(ee->evas, EVAS_CALLBACK_RENDER_FLUSH_PRE, _ecore_evas_wl_common_render_flush_pre, ee); - evas_event_callback_add(ee->evas, EVAS_CALLBACK_RENDER_FLUSH_POST, - _ecore_evas_wl_common_render_flush_post, ee); /* FIXME: This needs to be set based on theme & scale */ if (ee->prop.draw_frame)