summaryrefslogtreecommitdiff
path: root/src/static_libs
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-06-05 16:42:15 +0900
committerHermet Park <hermetpark@gmail.com>2019-06-21 17:43:23 +0900
commit270c61dbb74f8f6e4f800f78b054a9da8cb84848 (patch)
tree0e31f32c69e062076850a2226651529212b2866a /src/static_libs
parent431b5e817c5652d39560fc2a416f87b948cc8d64 (diff)
canvas vg: optmize lottie vector tree.
Skip invisible stroke nodes as possible.
Diffstat (limited to 'src/static_libs')
-rw-r--r--src/static_libs/vg_common/vg_common_json.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/static_libs/vg_common/vg_common_json.c b/src/static_libs/vg_common/vg_common_json.c
index c97bfea..3d00bbb 100644
--- a/src/static_libs/vg_common/vg_common_json.c
+++ b/src/static_libs/vg_common/vg_common_json.c
@@ -42,6 +42,15 @@ _construct_drawable_nodes(Efl_Canvas_Vg_Container *parent, const LOTLayerNode *l
42 LOTNode *node = layer->mNodeList.ptr[i]; 42 LOTNode *node = layer->mNodeList.ptr[i];
43 if (!node) continue; 43 if (!node) continue;
44 44
45 //Skip Invisible Stroke?
46 if (node->mStroke.enable && node->mStroke.width == 0)
47 {
48 char *key = _get_key_val(node);
49 Efl_Canvas_Vg_Shape *shape = efl_key_data_get(parent, key);
50 if (shape) efl_gfx_entity_visible_set(shape, EINA_FALSE);
51 continue;
52 }
53
45 const float *data = node->mPath.ptPtr; 54 const float *data = node->mPath.ptPtr;
46 if (!data) continue; 55 if (!data) continue;
47 56