summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_vg_gradient_linear.c
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2018-11-14 21:50:50 +0900
committerHermet Park <hermetpark@gmail.com>2018-11-14 21:50:50 +0900
commite2cd8eea55c339d1ab96524113f5452a414957d5 (patch)
treede82f6a93181756600c67233e1ee42f8ace06293 /src/lib/evas/canvas/evas_vg_gradient_linear.c
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: https://phab.enlightenment.org/D7269
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_gradient_linear.c')
-rw-r--r--src/lib/evas/canvas/evas_vg_gradient_linear.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_vg_gradient_linear.c b/src/lib/evas/canvas/evas_vg_gradient_linear.c
index c7a1263c92..26b434b00d 100644
--- a/src/lib/evas/canvas/evas_vg_gradient_linear.c
+++ b/src/lib/evas/canvas/evas_vg_gradient_linear.c
@@ -87,7 +87,9 @@ _efl_canvas_vg_gradient_linear_render_pre(Eo *obj,
87 efl_gfx_gradient_spread_set(nd->renderer, gd->s); 87 efl_gfx_gradient_spread_set(nd->renderer, gd->s);
88 efl_gfx_gradient_linear_start_set(nd->renderer, pd->start.x, pd->start.y); 88 efl_gfx_gradient_linear_start_set(nd->renderer, pd->start.x, pd->start.y);
89 efl_gfx_gradient_linear_end_set(nd->renderer, pd->end.x, pd->end.y); 89 efl_gfx_gradient_linear_end_set(nd->renderer, pd->end.x, pd->end.y);
90 ector_renderer_prepare(nd->renderer); 90
91 //Prepare renderer triggered by ector shape this gradient applied to.
92 //ector_renderer_prepare(nd->renderer);
91} 93}
92 94
93static Eo * 95static Eo *