summaryrefslogtreecommitdiff
path: root/src/lib/ector/software
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ector/software')
-rw-r--r--src/lib/ector/software/ector_renderer_software_gradient_linear.c16
-rw-r--r--src/lib/ector/software/ector_renderer_software_gradient_linear.eo1
-rw-r--r--src/lib/ector/software/ector_renderer_software_gradient_radial.c16
-rw-r--r--src/lib/ector/software/ector_renderer_software_gradient_radial.eo1
-rw-r--r--src/lib/ector/software/ector_renderer_software_shape.c25
-rw-r--r--src/lib/ector/software/ector_renderer_software_shape.eo1
6 files changed, 60 insertions, 0 deletions
diff --git a/src/lib/ector/software/ector_renderer_software_gradient_linear.c b/src/lib/ector/software/ector_renderer_software_gradient_linear.c
index f2ca832..a7ce3ec 100644
--- a/src/lib/ector/software/ector_renderer_software_gradient_linear.c
+++ b/src/lib/ector/software/ector_renderer_software_gradient_linear.c
@@ -108,4 +108,20 @@ _ector_renderer_software_gradient_linear_efl_gfx_gradient_base_stop_set(Eo *obj,
108 destroy_color_table(pd); 108 destroy_color_table(pd);
109} 109}
110 110
111static unsigned int
112_ector_renderer_software_gradient_linear_ector_renderer_generic_base_crc_get(Eo *obj, Ector_Renderer_Software_Gradient_Data *pd)
113{
114 unsigned int crc;
115
116 eo_do_super(obj, ECTOR_RENDERER_SOFTWARE_GRADIENT_LINEAR_CLASS,
117 crc = ector_renderer_crc_get());
118
119 crc = eina_crc((void*) pd->gd->s, sizeof (Efl_Gfx_Gradient_Spread), crc, EINA_FALSE);
120 if (pd->gd->colors_count)
121 crc = eina_crc((void*) pd->gd->colors, sizeof (Efl_Gfx_Gradient_Stop) * pd->gd->colors_count, crc, EINA_FALSE);
122 crc = eina_crc((void*) pd->gld, sizeof (Ector_Renderer_Generic_Gradient_Linear_Data), crc, EINA_FALSE);
123
124 return crc;
125}
126
111#include "ector_renderer_software_gradient_linear.eo.c" 127#include "ector_renderer_software_gradient_linear.eo.c"
diff --git a/src/lib/ector/software/ector_renderer_software_gradient_linear.eo b/src/lib/ector/software/ector_renderer_software_gradient_linear.eo
index 32f83df..d028548 100644
--- a/src/lib/ector/software/ector_renderer_software_gradient_linear.eo
+++ b/src/lib/ector/software/ector_renderer_software_gradient_linear.eo
@@ -6,6 +6,7 @@ class Ector.Renderer.Software.Gradient_Linear (Ector.Renderer.Software.Base, Ect
6 implements { 6 implements {
7 Ector.Renderer.Generic.Base.prepare; 7 Ector.Renderer.Generic.Base.prepare;
8 Ector.Renderer.Generic.Base.draw; 8 Ector.Renderer.Generic.Base.draw;
9 Ector.Renderer.Generic.Base.crc.get;
9 Ector.Renderer.Software.Base.fill; 10 Ector.Renderer.Software.Base.fill;
10 Eo.Base.constructor; 11 Eo.Base.constructor;
11 Eo.Base.destructor; 12 Eo.Base.destructor;
diff --git a/src/lib/ector/software/ector_renderer_software_gradient_radial.c b/src/lib/ector/software/ector_renderer_software_gradient_radial.c
index 5b63f95..74a8dab 100644
--- a/src/lib/ector/software/ector_renderer_software_gradient_radial.c
+++ b/src/lib/ector/software/ector_renderer_software_gradient_radial.c
@@ -116,4 +116,20 @@ _ector_renderer_software_gradient_radial_efl_gfx_gradient_base_stop_set(Eo *obj,
116 destroy_color_table(pd); 116 destroy_color_table(pd);
117} 117}
118 118
119static unsigned int
120_ector_renderer_software_gradient_radial_ector_renderer_generic_base_crc_get(Eo *obj, Ector_Renderer_Software_Gradient_Data *pd)
121{
122 unsigned int crc;
123
124 eo_do_super(obj, ECTOR_RENDERER_SOFTWARE_GRADIENT_RADIAL_CLASS,
125 crc = ector_renderer_crc_get());
126
127 crc = eina_crc((void*) pd->gd->s, sizeof (Efl_Gfx_Gradient_Spread), crc, EINA_FALSE);
128 if (pd->gd->colors_count)
129 crc = eina_crc((void*) pd->gd->colors, sizeof (Efl_Gfx_Gradient_Stop) * pd->gd->colors_count, crc, EINA_FALSE);
130 crc = eina_crc((void*) pd->gld, sizeof (Ector_Renderer_Generic_Gradient_Radial_Data), crc, EINA_FALSE);
131
132 return crc;
133}
134
119#include "ector_renderer_software_gradient_radial.eo.c" 135#include "ector_renderer_software_gradient_radial.eo.c"
diff --git a/src/lib/ector/software/ector_renderer_software_gradient_radial.eo b/src/lib/ector/software/ector_renderer_software_gradient_radial.eo
index 85625f3..c94bfe4 100644
--- a/src/lib/ector/software/ector_renderer_software_gradient_radial.eo
+++ b/src/lib/ector/software/ector_renderer_software_gradient_radial.eo
@@ -6,6 +6,7 @@ class Ector.Renderer.Software.Gradient_Radial (Ector.Renderer.Software.Base, Ect
6 implements { 6 implements {
7 Ector.Renderer.Generic.Base.prepare; 7 Ector.Renderer.Generic.Base.prepare;
8 Ector.Renderer.Generic.Base.draw; 8 Ector.Renderer.Generic.Base.draw;
9 Ector.Renderer.Generic.Base.crc.get;
9 Ector.Renderer.Software.Base.fill; 10 Ector.Renderer.Software.Base.fill;
10 Eo.Base.constructor; 11 Eo.Base.constructor;
11 Eo.Base.destructor; 12 Eo.Base.destructor;
diff --git a/src/lib/ector/software/ector_renderer_software_shape.c b/src/lib/ector/software/ector_renderer_software_shape.c
index c0cfe77..d659c92 100644
--- a/src/lib/ector/software/ector_renderer_software_shape.c
+++ b/src/lib/ector/software/ector_renderer_software_shape.c
@@ -726,4 +726,29 @@ _ector_renderer_software_shape_eo_base_destructor(Eo *obj, Ector_Renderer_Softwa
726} 726}
727 727
728 728
729unsigned int
730_ector_renderer_software_shape_ector_renderer_generic_base_crc_get(Eo *obj,
731 Ector_Renderer_Software_Shape_Data *pd)
732{
733 unsigned int crc;
734
735 eo_do_super(obj, ECTOR_RENDERER_SOFTWARE_SHAPE_CLASS, crc = ector_renderer_crc_get());
736
737 crc = eina_crc((void*) &pd->shape->stroke.marker, sizeof (pd->shape->stroke.marker), crc, EINA_FALSE);
738 crc = eina_crc((void*) &pd->shape->stroke.scale, sizeof (pd->shape->stroke.scale) * 3, crc, EINA_FALSE); // scale, width, centered
739 crc = eina_crc((void*) &pd->shape->stroke.color, sizeof (pd->shape->stroke.color), crc, EINA_FALSE);
740 crc = eina_crc((void*) &pd->shape->stroke.cap, sizeof (pd->shape->stroke.cap), crc, EINA_FALSE);
741 crc = eina_crc((void*) &pd->shape->stroke.join, sizeof (pd->shape->stroke.join), crc, EINA_FALSE);
742
743 if (pd->shape->fill) crc = _renderer_crc_get(pd->shape->fill, crc);
744 if (pd->shape->stroke.fill) crc = _renderer_crc_get(pd->shape->stroke.fill, crc);
745 if (pd->shape->stroke.marker) crc = _renderer_crc_get(pd->shape->stroke.marker, crc);
746 if (pd->shape->stroke.dash_length)
747 {
748 crc = eina_crc((void*) pd->shape->stroke.dash, sizeof (Efl_Gfx_Dash) * pd->shape->stroke.dash_length, crc, EINA_FALSE);
749 }
750
751 return crc;
752}
753
729#include "ector_renderer_software_shape.eo.c" 754#include "ector_renderer_software_shape.eo.c"
diff --git a/src/lib/ector/software/ector_renderer_software_shape.eo b/src/lib/ector/software/ector_renderer_software_shape.eo
index 267ef7c..017a9cc 100644
--- a/src/lib/ector/software/ector_renderer_software_shape.eo
+++ b/src/lib/ector/software/ector_renderer_software_shape.eo
@@ -6,6 +6,7 @@ class Ector.Renderer.Software.Shape (Ector.Renderer.Software.Base, Ector.Rendere
6 Ector.Renderer.Generic.Base.prepare; 6 Ector.Renderer.Generic.Base.prepare;
7 Ector.Renderer.Generic.Base.draw; 7 Ector.Renderer.Generic.Base.draw;
8 Ector.Renderer.Software.Base.fill; 8 Ector.Renderer.Software.Base.fill;
9 Ector.Renderer.Generic.Base.crc.get;
9 Efl.Gfx.Shape.path.set; 10 Efl.Gfx.Shape.path.set;
10 Eo.Base.constructor; 11 Eo.Base.constructor;
11 Eo.Base.destructor; 12 Eo.Base.destructor;