evas: trigger FLUSH_PRE callback prior to kicking off an async render 20/63720/1 accepted/tizen/ivi/20160325.134458 accepted/tizen/mobile/20160325.134418 accepted/tizen/tv/20160325.134336 accepted/tizen/wearable/20160325.134430 submit/tizen/20160325.093515 submit/tizen/20160325.124154
authorJi-Youn Park <jy0703.park@samsung.com>
Fri, 25 Mar 2016 09:11:04 +0000 (17:41 +0830)
committerJi-Youn Park <jy0703.park@samsung.com>
Fri, 25 Mar 2016 09:29:07 +0000 (17:59 +0830)
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 <zmike@osg.samsung.com>
Date:   Tue Dec 15 17:18:36 2015 -0500

Change-Id: Icac04f7e3a33088754b5e906d604b165a4b4cf02

src/lib/evas/canvas/evas_render.c

index e2ef459..d046f1c 100755 (executable)
@@ -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);
      }