backend: add default clear animations
[platform/core/uifw/libpui.git] / src / PUI_ani.c
index 40b0a3e..e42a4cc 100644 (file)
@@ -73,6 +73,24 @@ _pui_ani_cb_frame_done(Ecore_Wl2_Window *win, uint32_t timestamp EINA_UNUSED, vo
 }
 
 pui_ani_control_buffer *
+pui_ani_get_last_buffer(pui_ani_h ani_h)
+{
+       pui_h handle = NULL;
+       pui_ani_control_buffer *buffer = NULL;
+
+       if (!PUI_MAGIC_CHECK(ani_h, PUI_MAGIC_ANI_H))
+       {
+               PUI_MAGIC_FAIL(ani_h, PUI_MAGIC_ANI_H, __FUNCTION__);
+               return NULL;
+       }
+
+       handle = ani_h->pui_handle;
+       buffer = pui_display_get_last_buffer(handle);
+
+       return buffer;
+}
+
+pui_ani_control_buffer *
 pui_ani_get_buffer(pui_ani_h ani_h)
 {
        pui_h handle = NULL;