summaryrefslogtreecommitdiff
path: root/src/lib/ecore
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-07-13 15:40:50 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-07-13 15:40:50 -0400
commitdab2a9ca689c70d449cfadb6492518c468f1d68f (patch)
treef5697c308362ce1fe5796030a581241c34719574 /src/lib/ecore
parent655c5ee6e0113fd26cbd61010a74eb983d9de96b (diff)
ecore/animator: break out _ecore_animator_flush() from tick function
Summary: no functional changes Reviewers: ManMower Reviewed By: ManMower Subscribers: cedric, #committers Tags: #efl_main_loop Differential Revision: https://phab.enlightenment.org/D6589
Diffstat (limited to 'src/lib/ecore')
-rw-r--r--src/lib/ecore/ecore_anim.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/ecore/ecore_anim.c b/src/lib/ecore/ecore_anim.c
index 6b7f946b83..d15a2703ec 100644
--- a/src/lib/ecore/ecore_anim.c
+++ b/src/lib/ecore/ecore_anim.c
@@ -86,7 +86,7 @@ static int _ecore_anim_log_dom = -1;
86#endif 86#endif
87#define CRI(...) EINA_LOG_DOM_CRIT(_ecore_anim_log_dom, __VA_ARGS__) 87#define CRI(...) EINA_LOG_DOM_CRIT(_ecore_anim_log_dom, __VA_ARGS__)
88 88
89static Eina_Bool _do_tick(void); 89static void _do_tick(void);
90static Eina_Bool _ecore_animator_run(void *data); 90static Eina_Bool _ecore_animator_run(void *data);
91 91
92static int animators_delete_me = 0; 92static int animators_delete_me = 0;
@@ -368,6 +368,7 @@ _timer_tick_notify(void *data EINA_UNUSED, Ecore_Thread *thread EINA_UNUSED, voi
368 { 368 {
369 ecore_loop_time_set(*t); 369 ecore_loop_time_set(*t);
370 _do_tick(); 370 _do_tick();
371 _ecore_animator_flush();
371 } 372 }
372 pt = *t; 373 pt = *t;
373 } 374 }
@@ -481,7 +482,7 @@ _end_tick(void)
481 end_tick_cb((void *)end_tick_data); 482 end_tick_cb((void *)end_tick_data);
482} 483}
483 484
484static Eina_Bool 485static void
485_do_tick(void) 486_do_tick(void)
486{ 487{
487 Ecore_Animator *animator; 488 Ecore_Animator *animator;
@@ -510,9 +511,6 @@ _do_tick(void)
510 } 511 }
511 else animator->just_added = EINA_FALSE; 512 else animator->just_added = EINA_FALSE;
512 } 513 }
513 if (!_ecore_animator_flush())
514 return ECORE_CALLBACK_CANCEL;
515 return ECORE_CALLBACK_RENEW;
516} 514}
517 515
518static Ecore_Animator * 516static Ecore_Animator *
@@ -936,7 +934,9 @@ EAPI void
936ecore_animator_custom_tick(void) 934ecore_animator_custom_tick(void)
937{ 935{
938 EINA_MAIN_LOOP_CHECK_RETURN; 936 EINA_MAIN_LOOP_CHECK_RETURN;
939 if (src == ECORE_ANIMATOR_SOURCE_CUSTOM) _do_tick(); 937 if (src != ECORE_ANIMATOR_SOURCE_CUSTOM) return;
938 _do_tick();
939 _ecore_animator_flush();
940} 940}
941 941
942void 942void