From: Ji-Youn Park Date: Fri, 25 Mar 2016 09:11:04 +0000 (+0830) Subject: evas: trigger FLUSH_PRE callback prior to kicking off an async render X-Git-Tag: accepted/tizen/ivi/20160325.134458^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=861f77831425e5634f67e9aae5247632acbcb065;p=platform%2Fupstream%2Fefl.git evas: trigger FLUSH_PRE callback prior to kicking off an async render while not occurring immediately before flush as in sync rendering, this is functionally close enough that it will serve the purpose for which the callback was intended, namely receiving a callback that occurs after render update calculations have occurred but before flush happens opensource_commit 1d3c4162b3d863a798c68865829c892c0832d903 Author: Mike Blumenkrantz Date: Tue Dec 15 17:18:36 2015 -0500 Change-Id: Icac04f7e3a33088754b5e906d604b165a4b4cf02 --- diff --git a/src/lib/evas/canvas/evas_render.c b/src/lib/evas/canvas/evas_render.c index e2ef459..d046f1c 100755 --- a/src/lib/evas/canvas/evas_render.c +++ b/src/lib/evas/canvas/evas_render.c @@ -2783,7 +2783,8 @@ evas_render_updates_internal(Evas *eo_e, eo_ref(eo_e); e->rendering = EINA_TRUE; _rendering_evases = eina_list_append(_rendering_evases, e); - + if (haveup) + _cb_always_call(eo_e, EVAS_CALLBACK_RENDER_FLUSH_PRE, NULL); evas_thread_queue_flush((Evas_Thread_Command_Cb)done_func, done_data); } else if (haveup) @@ -3005,7 +3006,6 @@ evas_render_wakeup(Evas *eo_e) { _evas_object_image_video_overlay_do(eo_obj); } - _cb_always_call(eo_e, EVAS_CALLBACK_RENDER_FLUSH_PRE, NULL); _cb_always_call(eo_e, EVAS_CALLBACK_RENDER_FLUSH_POST, NULL); }