summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/efl_canvas_animation_player.c
diff options
context:
space:
mode:
authorDerek Foreman <derek.foreman.samsung@gmail.com>2018-09-18 09:43:17 -0500
committerDerek Foreman <derek.foreman.samsung@gmail.com>2018-09-18 09:43:17 -0500
commitd8d5fec1a57bfabea1bb75061b346039cad51455 (patch)
treeb157abd3321a22a25b3275639a8cf70f177fbc5b /src/lib/evas/canvas/efl_canvas_animation_player.c
parentbe752e6bc123145e6818a4183bb021bf303766a5 (diff)
efl_canvas_animation_player: Convert to new animators
Summary: Use more efficient animator mechanism. Depends on D7050 Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7051
Diffstat (limited to '')
-rw-r--r--src/lib/evas/canvas/efl_canvas_animation_player.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_animation_player.c b/src/lib/evas/canvas/efl_canvas_animation_player.c
index 864fab986a..63abfc3719 100644
--- a/src/lib/evas/canvas/efl_canvas_animation_player.c
+++ b/src/lib/evas/canvas/efl_canvas_animation_player.c
@@ -156,7 +156,7 @@ _start(Eo *eo_obj, Efl_Canvas_Animation_Player_Data *pd)
156 NULL); 156 NULL);
157 efl_event_callback_call(eo_obj, EFL_ANIMATION_PLAYER_EVENT_STARTED, NULL); 157 efl_event_callback_call(eo_obj, EFL_ANIMATION_PLAYER_EVENT_STARTED, NULL);
158 158
159 pd->animator = ecore_animator_add(_animator_cb, eo_obj); 159 pd->animator = ecore_evas_animator_add(pd->target, _animator_cb, eo_obj);
160 160
161 _animator_cb(eo_obj); 161 _animator_cb(eo_obj);
162} 162}
@@ -247,7 +247,7 @@ _efl_canvas_animation_player_efl_player_play_set(Eo *eo_obj,
247 if (pd->start_delay_timer) return; 247 if (pd->start_delay_timer) return;
248 248
249 pd->time.prev = ecore_loop_time_get(); 249 pd->time.prev = ecore_loop_time_get();
250 pd->animator = ecore_animator_add(_animator_cb, eo_obj); 250 pd->animator = ecore_evas_animator_add(pd->target, _animator_cb, eo_obj);
251 251
252 _animator_cb(eo_obj); 252 _animator_cb(eo_obj);
253 } 253 }