From cbb86b3c67bf9c20b732e01e9d2899212a89fddc Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Fri, 17 Jul 2020 12:54:41 +0900 Subject: [PATCH] evas_vg_cache: Add sector_list_get Add an API that if there is sector data in animation, returns a list of it. @TIZEN_ONLY Change-Id: Ib375e99ccaac924b3dff156f452597ae6a6f4128 --- src/lib/evas/canvas/evas_vg_private.h | 4 ++++ src/lib/evas/vg/evas_vg_cache.c | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/src/lib/evas/canvas/evas_vg_private.h b/src/lib/evas/canvas/evas_vg_private.h index aba4e9d..b237b6f 100644 --- a/src/lib/evas/canvas/evas_vg_private.h +++ b/src/lib/evas/canvas/evas_vg_private.h @@ -151,6 +151,10 @@ void efl_canvas_vg_node_change(Efl_VG *node); void efl_canvas_vg_container_vg_obj_update(Efl_VG *obj, Efl_Canvas_Vg_Node_Data *nd); void efl_canvas_vg_container_blend_buffer_clear(Efl_VG *obj, Efl_Canvas_Vg_Container_Data *cd); +//TIZEN_ONLY(200717) : evas_vg_cache: Add sector_list_get +Eina_Inarray* evas_cache_vg_anim_sector_list_get(const Vg_Cache_Entry* vg_entry); +// + static inline void efl_canvas_vg_object_change(Efl_Canvas_Vg_Object_Data *vd) { diff --git a/src/lib/evas/vg/evas_vg_cache.c b/src/lib/evas/vg/evas_vg_cache.c index 9d98b0d..d9cefb8 100644 --- a/src/lib/evas/vg/evas_vg_cache.c +++ b/src/lib/evas/vg/evas_vg_cache.c @@ -485,6 +485,17 @@ evas_cache_vg_anim_sector_get(const Vg_Cache_Entry* vg_entry, const char *name, return EINA_FALSE; } +//TIZEN_ONLY(200717) : evas_vg_cache: Add sector_list_get +Eina_Inarray* +evas_cache_vg_anim_sector_list_get(const Vg_Cache_Entry* vg_entry) +{ + if (!vg_entry) return NULL; + if (!vg_entry->vfd->anim_data) return NULL; + if (!vg_entry->vfd->anim_data->markers) return NULL; + return vg_entry->vfd->anim_data->markers; +} +// + Efl_VG* evas_cache_vg_tree_get(Vg_Cache_Entry *vg_entry, unsigned int frame_num) { -- 2.7.4