summaryrefslogtreecommitdiff
path: root/src/tests/elementary/elm_suite.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-08-27 12:15:09 +0900
committerHermet Park <hermetpark@gmail.com>2018-08-27 12:15:09 +0900
commit351a4c828ef1c42051386141b0dd32031d74695d (patch)
tree1c75fb74c6920c7d7fc96dc4e470d9b0e53b201d /src/tests/elementary/elm_suite.c
parentb55ae244404dc3936a6caffbfbe0f5912d72a0a9 (diff)
tests/elm: further reduce buffer render interval
Summary: this further increases the speed at which some tests perform Reviewers: Hermet Reviewed By: Hermet Subscribers: cedric Tags: #do_not_merge Differential Revision: https://phab.enlightenment.org/D6765
Diffstat (limited to 'src/tests/elementary/elm_suite.c')
-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 e97795a..103d1a7 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;