path: root/src/lib/evas/canvas/evas_vg_private.h
diff options
authorHermet Park <>2018-11-14 21:50:50 +0900
committerHermet Park <>2018-11-14 21:50:50 +0900
commite2cd8eea55c339d1ab96524113f5452a414957d5 (patch)
treede82f6a93181756600c67233e1ee42f8ace06293 /src/lib/evas/canvas/evas_vg_private.h
parent09da85807a6447d6e9c04fc72fdb485a78192d82 (diff)
evas vg: optimize gradient sequences.
Summary: 1. Pointed out gradient prepare step triggered duplicatedly, because they are immediate children of container. But gradients is desigend to fill shape, shape could get ready of the gradients which are applied to. So, container doesn't need to prepare gradient children. 2. Ector shape does prepare its gradient renderer in it's prepare time, each gradients objects doesn't need to prepare renderer separately. Here code skip duplication of sequences of gradients preparation step. by cleaning up logic. Reviewers: #committers Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision:
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_private.h')
1 files changed, 3 insertions, 7 deletions
diff --git a/src/lib/evas/canvas/evas_vg_private.h b/src/lib/evas/canvas/evas_vg_private.h
index cc43fb03ab..b71cf18b81 100644
--- a/src/lib/evas/canvas/evas_vg_private.h
+++ b/src/lib/evas/canvas/evas_vg_private.h
@@ -116,14 +116,10 @@ void efl_canvas_vg_node_root_set(Efl_VG *node, Efl_VG *vg
116static inline Efl_Canvas_Vg_Node_Data * 116static inline Efl_Canvas_Vg_Node_Data *
117_evas_vg_render_pre(Efl_VG *child, Ector_Surface *s, Eina_Matrix3 *m) 117_evas_vg_render_pre(Efl_VG *child, Ector_Surface *s, Eina_Matrix3 *m)
118{ 118{
119 Efl_Canvas_Vg_Node_Data *child_nd = NULL; 119 if (!child) return NULL;
121 // FIXME: Prevent infinite loop
122 if (child)
123 child_nd = efl_data_scope_get(child, EFL_CANVAS_VG_NODE_CLASS);
124 if (child_nd)
125 child_nd->render_pre(child, m, s, child_nd->data, child_nd);
126 120
121 Efl_Canvas_Vg_Node_Data *child_nd = efl_data_scope_get(child, EFL_CANVAS_VG_NODE_CLASS);
122 if (child_nd) child_nd->render_pre(child, m, s, child_nd->data, child_nd);
127 return child_nd; 123 return child_nd;
128} 124}
129 125