summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_vg_private.h
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:23:04 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:23:04 +0200
commit5aafae94f171bd47f735fea234219c5217be84f7 (patch)
tree43ace290181a9fe0b54c9dfc2d9fdbe1d9230c19 /src/lib/evas/canvas/evas_vg_private.h
parent502ac459162589e95c57fa0ede376159044d4278 (diff)
evas: actually we want the Ector_Renderer, not the Evas_VG_Node.
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_private.h')
-rw-r--r--src/lib/evas/canvas/evas_vg_private.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/lib/evas/canvas/evas_vg_private.h b/src/lib/evas/canvas/evas_vg_private.h
index 80f8fe5e5b..a2b8aa94ee 100644
--- a/src/lib/evas/canvas/evas_vg_private.h
+++ b/src/lib/evas/canvas/evas_vg_private.h
@@ -37,14 +37,18 @@ struct _Evas_VG_Gradient_Data
37 Efl_Graphics_Gradient_Spread s; 37 Efl_Graphics_Gradient_Spread s;
38}; 38};
39 39
40static inline void 40static inline Evas_VG_Node *
41_evas_vg_render_pre(Evas_VG_Node *child, Ector_Surface *s, Eina_Matrix3 *m) 41_evas_vg_render_pre(Evas_VG_Node *child, Ector_Surface *s, Eina_Matrix3 *m)
42{ 42{
43 Evas_VG_Node_Data *child_nd; 43 Evas_VG_Node_Data *child_nd = NULL;
44 44
45 // FIXME: Prevent infinite loop 45 // FIXME: Prevent infinite loop
46 child_nd = eo_data_scope_get(child, EVAS_VG_NODE_CLASS); 46 if (child)
47 child_nd->render_pre(child, m, s, child_nd->data, child_nd); 47 child_nd = eo_data_scope_get(child, EVAS_VG_NODE_CLASS);
48 if (child_nd)
49 child_nd->render_pre(child, m, s, child_nd->data, child_nd);
50
51 return child_nd;
48} 52}
49 53
50#define EVAS_VG_COMPUTE_MATRIX(Current, Parent, Nd) \ 54#define EVAS_VG_COMPUTE_MATRIX(Current, Parent, Nd) \