PUI: fix pui_ani_control, pui_ani_status_update and so on
[platform/core/uifw/libpui.git] / src / PUI.c
index 37343c8..d6ebd31 100644 (file)
--- a/src/PUI.c
+++ b/src/PUI.c
@@ -44,8 +44,6 @@ int PUI_EVENT_ANI_STOPPED = 0;
 int PUI_EVENT_ANI_PAUSED = 0;
 int PUI_EVENT_ANI_READY_TO_START = 0;
 int PUI_EVENT_ANI_READY_TO_RESUME = 0;
-int PUI_EVENT_ANI_FRAME_DONE = 0;
-int PUI_EVENT_ANI_BUFFER_RELEASED = 0;
 
 pui_error_string
 pui_error_to_string(pui_error e)
@@ -108,6 +106,7 @@ pui_create(Ecore_Wl2_Window *win)
        handle->visibility = 0;
        handle->wl_tbm_client = wl_tbm_client;
        handle->ani_handles = NULL;
+       handle->current_ani_h = NULL;
        handle->backend_module_data = pui_module->backend_module_data;
 
        handle->tbm_queue = wayland_tbm_client_create_surface_queue(handle->wl_tbm_client,
@@ -291,8 +290,6 @@ _pui_event_init(void)
        PUI_EVENT_ANI_PAUSED = ecore_event_type_new();
        PUI_EVENT_ANI_READY_TO_START = ecore_event_type_new();
        PUI_EVENT_ANI_READY_TO_RESUME = ecore_event_type_new();
-       PUI_EVENT_ANI_FRAME_DONE = ecore_event_type_new();
-       PUI_EVENT_ANI_BUFFER_RELEASED = ecore_event_type_new();
 }
 
 static void
@@ -302,17 +299,13 @@ _pui_event_shutdown(void)
                                        PUI_EVENT_ANI_STOPPED,
                                        PUI_EVENT_ANI_PAUSED,
                                        PUI_EVENT_ANI_READY_TO_START,
-                                       PUI_EVENT_ANI_READY_TO_RESUME,
-                                       PUI_EVENT_ANI_FRAME_DONE,
-                                       PUI_EVENT_ANI_BUFFER_RELEASED);
+                                       PUI_EVENT_ANI_READY_TO_RESUME);
 
        PUI_EVENT_ANI_STARTED = -1;
        PUI_EVENT_ANI_STOPPED = -1;
        PUI_EVENT_ANI_PAUSED = -1;
        PUI_EVENT_ANI_READY_TO_START = -1;
        PUI_EVENT_ANI_READY_TO_RESUME = -1;
-       PUI_EVENT_ANI_FRAME_DONE = -1;
-       PUI_EVENT_ANI_BUFFER_RELEASED = -1;
 }
 
 int