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

@fix

ref cbb447c878
This commit is contained in:
Mike Blumenkrantz 2015-12-15 17:18:36 -05:00
parent 092d7a6f3d
commit 1d3c4162b3
1 changed files with 2 additions and 2 deletions

View File

@ -2787,7 +2787,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)
@ -3009,7 +3010,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);
}