canvas vg: optmize lottie vector tree.

Skip invisible stroke nodes as possible.
This commit is contained in:
Hermet Park 2019-06-05 16:42:15 +09:00
parent 431b5e817c
commit 270c61dbb7
1 changed files with 9 additions and 0 deletions

View File

@ -42,6 +42,15 @@ _construct_drawable_nodes(Efl_Canvas_Vg_Container *parent, const LOTLayerNode *l
LOTNode *node = layer->mNodeList.ptr[i];
if (!node) continue;
//Skip Invisible Stroke?
if (node->mStroke.enable && node->mStroke.width == 0)
{
char *key = _get_key_val(node);
Efl_Canvas_Vg_Shape *shape = efl_key_data_get(parent, key);
if (shape) efl_gfx_entity_visible_set(shape, EINA_FALSE);
continue;
}
const float *data = node->mPath.ptPtr;
if (!data) continue;