summaryrefslogtreecommitdiff
path: root/src/lib/ecore_evas/ecore_evas.c
diff options
context:
space:
mode:
authorDerek Foreman <derek.foreman.samsung@gmail.com>2018-07-31 17:02:39 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-07-31 17:03:16 -0400
commit35622614d0ee6510692bb3f4a9fddd260e12ba79 (patch)
tree24fc788265a33374349cb491726a1acd07fa994d /src/lib/ecore_evas/ecore_evas.c
parentb7444e0b87778e8110838670e96b5029acea7e31 (diff)
ecore_evas: Make sure a manual render does a manual render
Summary: If we call ecore_evas_manual_render() during an async render, it does nothing. This is harmful if we've added render post callbacks during that async render and expect them to fire. Force a sync and another render if we're in an async render. ref T7156 Depends on D6714 Reviewers: zmike Reviewed By: zmike Subscribers: cedric, #committers, zmike Tags: #efl Maniphest Tasks: T7156 Differential Revision: https://phab.enlightenment.org/D6715
Diffstat (limited to 'src/lib/ecore_evas/ecore_evas.c')
-rw-r--r--src/lib/ecore_evas/ecore_evas.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c
index e6cb647..004896d 100644
--- a/src/lib/ecore_evas/ecore_evas.c
+++ b/src/lib/ecore_evas/ecore_evas.c
@@ -2649,6 +2649,15 @@ ecore_evas_manual_render(Ecore_Evas *ee)
2649 2649
2650 ecore_evas_animator_tick(ee, NULL, t); 2650 ecore_evas_animator_tick(ee, NULL, t);
2651 } 2651 }
2652 else
2653 {
2654 /* We want to ensure a manual render actually takes place,
2655 * even if we were in the middle of an async render. This
2656 * will ensure that any post render callbacks added
2657 * specifically for this manual render will fire.
2658 */
2659 ecore_evas_render_wait(ee);
2660 }
2652 2661
2653 if (ee->engine.func->fn_render) 2662 if (ee->engine.func->fn_render)
2654 { 2663 {