efl_ui_flip: Convert to new animators
authorDerek Foreman <derek.foreman.samsung@gmail.com>
Tue, 18 Sep 2018 14:42:46 +0000 (09:42 -0500)
committerYeongjong Lee <yj34.lee@samsung.com>
Fri, 28 Sep 2018 01:18:50 +0000 (10:18 +0900)
Summary:
Use more efficient animator mechanism.
Depends on D7042

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D7043

src/lib/elementary/efl_ui_flip.c

index 9652389..8149913 100644 (file)
@@ -1636,7 +1636,7 @@ _up_cb(void *data,
    else sd->next_state = !sd->state;
    tm *= 1.0; // FIXME: config for anim time
    ecore_animator_del(sd->animator);
-   sd->animator = ecore_animator_timeline_add(tm, _event_anim, sd);
+   sd->animator = ecore_evas_animator_timeline_add(fl, tm, _event_anim, sd);
    sd->len = tm;
    sd->start = ecore_loop_time_get();
    sd->manual = EINA_TRUE;
@@ -1897,7 +1897,7 @@ _internal_elm_flip_go_to(Evas_Object *obj,
                 Eina_Bool front,
                 Elm_Flip_Mode mode)
 {
-   if (!sd->animator) sd->animator = ecore_animator_add(_animate, obj);
+   if (!sd->animator) sd->animator = ecore_evas_animator_add(obj, _animate, obj);
 
    sd->mode = mode;
    sd->start = ecore_loop_time_get();