summaryrefslogtreecommitdiff
path: root/src/static_libs
diff options
context:
space:
mode:
authorVitalii Vorobiov <vi.vorobiov@samsung.com>2017-02-14 17:37:27 +0200
committerJean-Philippe Andre <jp.andre@samsung.com>2017-11-07 11:54:09 +0900
commitfac649c7f41c148ac4750c626bf93a5fd9b4ae49 (patch)
tree9349abac6934ddd8344952ee6f22e59c3bcb485c /src/static_libs
parent73bfd4f04d6b9885bab271d16c688f97dcf626a3 (diff)
vg_common: parse and store userSpaceOnUse (for gradient) when it is set
So it can be calculated during the draw later on
Diffstat (limited to 'src/static_libs')
-rw-r--r--src/static_libs/vg_common/vg_common.c5
-rw-r--r--src/static_libs/vg_common/vg_common.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/static_libs/vg_common/vg_common.c b/src/static_libs/vg_common/vg_common.c
index 4204c73..410588e 100644
--- a/src/static_libs/vg_common/vg_common.c
+++ b/src/static_libs/vg_common/vg_common.c
@@ -554,6 +554,11 @@ _apply_gradient_property(Svg_Style_Gradient *g)
554 int stop_count = 0, i = 0; 554 int stop_count = 0, i = 0;
555 Eina_List *l; 555 Eina_List *l;
556 556
557 /*
558 if (!g->user_space)
559 //get bounding box
560 */
561
557 if (g->type == SVG_LINEAR_GRADIENT) 562 if (g->type == SVG_LINEAR_GRADIENT)
558 { 563 {
559 grad_obj = evas_vg_gradient_linear_add(NULL); 564 grad_obj = evas_vg_gradient_linear_add(NULL);
diff --git a/src/static_libs/vg_common/vg_common.h b/src/static_libs/vg_common/vg_common.h
index 70c7449..65c70a8 100644
--- a/src/static_libs/vg_common/vg_common.h
+++ b/src/static_libs/vg_common/vg_common.h
@@ -182,6 +182,7 @@ struct _Svg_Style_Gradient
182 Eina_Stringshare *id; 182 Eina_Stringshare *id;
183 Eina_Stringshare *ref; 183 Eina_Stringshare *ref;
184 Efl_Gfx_Gradient_Spread spread; 184 Efl_Gfx_Gradient_Spread spread;
185 Eina_Bool user_space;
185 Eina_List *stops; // Efl_Gfx_Gradient_Stop 186 Eina_List *stops; // Efl_Gfx_Gradient_Stop
186 Svg_Radial_Gradient *radial; 187 Svg_Radial_Gradient *radial;
187 Svg_Linear_Gradient *linear; 188 Svg_Linear_Gradient *linear;