summaryrefslogtreecommitdiff
path: root/src/static_libs
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2019-11-25 13:39:01 +0900
committerHermet Park <hermetpark@gmail.com>2019-11-25 13:39:01 +0900
commit0f9b749f68fd250989a2810ce54cf24d3afd0f73 (patch)
treea2601080c377461579f634b031f3255745744968 /src/static_libs
parent58e09586bf3e4cdd606f955b8c2ea5eb315f94ad (diff)
vector lottie: Set visibility vg node
Summary: All nodes reset their visibility when they are reused. Therefore, visibility must be set true if mVisibile is true. Test Plan: N/A Reviewers: Hermet, kimcinoo, smohanty Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10731
Diffstat (limited to 'src/static_libs')
-rw-r--r--src/static_libs/vg_common/vg_common_json.c4
1 files changed, 4 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 43ef86b353..734f7f648d 100644
--- a/src/static_libs/vg_common/vg_common_json.c
+++ b/src/static_libs/vg_common/vg_common_json.c
@@ -184,6 +184,7 @@ _construct_drawable_nodes(Efl_Canvas_Vg_Container *parent, const LOTLayerNode *l
184 grad = efl_add(EFL_CANVAS_VG_GRADIENT_LINEAR_CLASS, parent); 184 grad = efl_add(EFL_CANVAS_VG_GRADIENT_LINEAR_CLASS, parent);
185 efl_key_data_set(shape, key, grad); 185 efl_key_data_set(shape, key, grad);
186 } 186 }
187 efl_gfx_entity_visible_set(grad, EINA_TRUE);
187 efl_gfx_gradient_linear_start_set(grad, node->mGradient.start.x, node->mGradient.start.y); 188 efl_gfx_gradient_linear_start_set(grad, node->mGradient.start.x, node->mGradient.start.y);
188 efl_gfx_gradient_linear_end_set(grad, node->mGradient.end.x, node->mGradient.end.y); 189 efl_gfx_gradient_linear_end_set(grad, node->mGradient.end.x, node->mGradient.end.y);
189 } 190 }
@@ -196,6 +197,7 @@ _construct_drawable_nodes(Efl_Canvas_Vg_Container *parent, const LOTLayerNode *l
196 grad = efl_add(EFL_CANVAS_VG_GRADIENT_RADIAL_CLASS, parent); 197 grad = efl_add(EFL_CANVAS_VG_GRADIENT_RADIAL_CLASS, parent);
197 efl_key_data_set(shape, key, grad); 198 efl_key_data_set(shape, key, grad);
198 } 199 }
200 efl_gfx_entity_visible_set(grad, EINA_TRUE);
199 efl_gfx_gradient_radial_center_set(grad, node->mGradient.center.x, node->mGradient.center.y); 201 efl_gfx_gradient_radial_center_set(grad, node->mGradient.center.x, node->mGradient.center.y);
200 efl_gfx_gradient_radial_focal_set(grad, node->mGradient.focal.x, node->mGradient.focal.y); 202 efl_gfx_gradient_radial_focal_set(grad, node->mGradient.focal.x, node->mGradient.focal.y);
201 efl_gfx_gradient_radial_radius_set(grad, node->mGradient.cradius); 203 efl_gfx_gradient_radial_radius_set(grad, node->mGradient.cradius);
@@ -307,6 +309,7 @@ _construct_masks(Efl_Canvas_Vg_Container *mtarget, LOTMask *masks, unsigned int
307 msource = efl_add(EFL_CANVAS_VG_CONTAINER_CLASS, mtarget); 309 msource = efl_add(EFL_CANVAS_VG_CONTAINER_CLASS, mtarget);
308 efl_key_data_set(mtarget, key, msource); 310 efl_key_data_set(mtarget, key, msource);
309 } 311 }
312 efl_gfx_entity_visible_set(msource, EINA_TRUE);
310 313
311 //FIXME : EFL_GFX_VG_COMPOSITE_METHOD_ALPHA option is temporary 314 //FIXME : EFL_GFX_VG_COMPOSITE_METHOD_ALPHA option is temporary
312 //Currently matte alpha implements is same the mask intersect implement. 315 //Currently matte alpha implements is same the mask intersect implement.
@@ -327,6 +330,7 @@ _construct_masks(Efl_Canvas_Vg_Container *mtarget, LOTMask *masks, unsigned int
327 msource = efl_add(EFL_CANVAS_VG_CONTAINER_CLASS, mtarget); 330 msource = efl_add(EFL_CANVAS_VG_CONTAINER_CLASS, mtarget);
328 efl_key_data_set(mtarget, key, msource); 331 efl_key_data_set(mtarget, key, msource);
329 } 332 }
333 efl_gfx_entity_visible_set(msource, EINA_TRUE);
330 _construct_mask_nodes(msource, mask, depth + 1); 334 _construct_mask_nodes(msource, mask, depth + 1);
331 335
332 Efl_Gfx_Vg_Composite_Method mask_mode; 336 Efl_Gfx_Vg_Composite_Method mask_mode;