aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-08-06 14:14:02 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-08-16 15:13:23 -0400
commit64a8a818fbc2572c008d00eeb1a5fcac2b999ce8 (patch)
tree51ffa1a7b148d94e04a0197c1418931f15b7ba1d
parenttests/elm: further reduce buffer render interval (diff)
downloadefl-64a8a818fbc2572c008d00eeb1a5fcac2b999ce8.tar.gz
tests/elm: use custom tick source for animator events
ensure that animator ticks are occurring at the same time as render dumping in order to further speed up tests Differential Revision: https://phab.enlightenment.org/D6766
-rw-r--r--src/tests/elementary/elm_suite.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/elementary/elm_suite.c b/src/tests/elementary/elm_suite.c
index 103d1a74d8..198179b880 100644
--- a/src/tests/elementary/elm_suite.c
+++ b/src/tests/elementary/elm_suite.c
@@ -137,6 +137,7 @@ static const Efl_Test_Case etc_init[] = {
static Eina_Bool
_win_manual_render(void *data)
{
+ ecore_animator_custom_tick();
evas_norender(evas_object_evas_get(data));
return EINA_TRUE;
}
@@ -160,6 +161,7 @@ _elm_suite_win_create()
if (!buffer) return win;
ecore_evas_manual_render_set(ecore_evas_ecore_evas_get(evas_object_evas_get(win)), EINA_TRUE);
edje_frametime_set(BUFFER_RENDER_INTERVAL);
+ ecore_animator_source_set(ECORE_ANIMATOR_SOURCE_CUSTOM);
evas_object_event_callback_add(win, EVAS_CALLBACK_SHOW, _win_show, NULL);
evas_object_event_callback_add(win, EVAS_CALLBACK_HIDE, _win_hide, NULL);
return win;