pui_ani: renew a timer instead of re-make a timer 22/220722/1 accepted/tizen/5.5/unified/20200102.014046 accepted/tizen/unified/20191223.143853 submit/tizen/20191223.081711 submit/tizen_5.5/20191224.053629
authorjeon <jhyuni.kang@samsung.com>
Mon, 28 Oct 2019 06:55:50 +0000 (15:55 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Fri, 20 Dec 2019 09:59:42 +0000 (18:59 +0900)
Change-Id: I7c6e7d81fef8a8b0a773544425a1438fe32e4ad9

src/PUI_ani.c

index e42a4cc..36ea036 100644 (file)
@@ -155,8 +155,6 @@ static Eina_Bool
 _pui_ani_frame_cb(void *data)
 {
        Eina_Bool ret;
-       Ecore_Timer *timer = NULL;
-
        pui_ani_t *ani = (pui_ani_t *)data;
 
        if (!PUI_MAGIC_CHECK(ani, PUI_MAGIC_ANI_T))
@@ -193,20 +191,7 @@ _pui_ani_frame_cb(void *data)
        if (ret && PUI_ANI_STATUS_STARTED == ani->status)
                pui_ani_status_update(ani, PUI_ANI_STATUS_RUNNING);
 
-       ecore_timer_del(ani->frame_cb_timer);
-       ani->frame_cb_timer = NULL;
-
-       timer = ecore_timer_add(ani->frame_interval, _pui_ani_frame_cb, ani);
-
-       if (!timer)
-       {
-               pui_err("Failed to add ecore timer !\n");
-               return 0;
-       }
-
-       ani->frame_cb_timer = timer;
-
-       return EINA_FALSE;
+       return ECORE_CALLBACK_RENEW;
 }
 
 pui_bool