summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-08-06 14:07:56 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-08-16 15:13:23 -0400
commit02786fb8912b191f65c70bd714bc207571ce997e (patch)
tree22421894f5d207ab0a258f42e6c91d1459804cf1
parent83056a9a8660567bee6ae466759811aecbcf7097 (diff)
tests/elm: further reduce buffer render interval
this further increases the speed at which some tests perform Differential Revision: https://phab.enlightenment.org/D6765
-rw-r--r--src/tests/elementary/elm_suite.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/elementary/elm_suite.c b/src/tests/elementary/elm_suite.c
index e97795a69f..103d1a74d8 100644
--- a/src/tests/elementary/elm_suite.c
+++ b/src/tests/elementary/elm_suite.c
@@ -132,7 +132,7 @@ static const Efl_Test_Case etc_init[] = {
132 { NULL, NULL } 132 { NULL, NULL }
133}; 133};
134 134
135#define BUFFER_RENDER_INTERVAL 0.05 135#define BUFFER_RENDER_INTERVAL 0.002
136 136
137static Eina_Bool 137static Eina_Bool
138_win_manual_render(void *data) 138_win_manual_render(void *data)
@@ -144,7 +144,7 @@ _win_manual_render(void *data)
144static void 144static void
145_win_show(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED) 145_win_show(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
146{ 146{
147 evas_object_data_set(obj, "timer", ecore_timer_add(0.05, _win_manual_render, obj)); 147 evas_object_data_set(obj, "timer", ecore_timer_add(BUFFER_RENDER_INTERVAL, _win_manual_render, obj));
148} 148}
149 149
150static void 150static void
@@ -159,7 +159,7 @@ _elm_suite_win_create()
159 Evas_Object *win = elm_win_add(NULL, "elm_suite", ELM_WIN_BASIC); 159 Evas_Object *win = elm_win_add(NULL, "elm_suite", ELM_WIN_BASIC);
160 if (!buffer) return win; 160 if (!buffer) return win;
161 ecore_evas_manual_render_set(ecore_evas_ecore_evas_get(evas_object_evas_get(win)), EINA_TRUE); 161 ecore_evas_manual_render_set(ecore_evas_ecore_evas_get(evas_object_evas_get(win)), EINA_TRUE);
162 edje_frametime_set(0.05); 162 edje_frametime_set(BUFFER_RENDER_INTERVAL);
163 evas_object_event_callback_add(win, EVAS_CALLBACK_SHOW, _win_show, NULL); 163 evas_object_event_callback_add(win, EVAS_CALLBACK_SHOW, _win_show, NULL);
164 evas_object_event_callback_add(win, EVAS_CALLBACK_HIDE, _win_hide, NULL); 164 evas_object_event_callback_add(win, EVAS_CALLBACK_HIDE, _win_hide, NULL);
165 return win; 165 return win;