summaryrefslogtreecommitdiff
path: root/src/lib/ector/gl/ector_renderer_gl_gradient_radial.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-05-11 12:57:06 +0100
committerTom Hacohen <tom@stosb.com>2016-05-11 12:57:55 +0100
commit28a2d34ae20885d229accd1c2e482e284be79afc (patch)
tree9a2a2b59eec6734ffd605d0ba495f867d56c05fc /src/lib/ector/gl/ector_renderer_gl_gradient_radial.c
parent1c0ec6788f8f14cb1fea2dd0b85868462243e395 (diff)
Ector generic: Remove .Generic and .Base (hack no longer needed).
Diffstat (limited to 'src/lib/ector/gl/ector_renderer_gl_gradient_radial.c')
-rw-r--r--src/lib/ector/gl/ector_renderer_gl_gradient_radial.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/ector/gl/ector_renderer_gl_gradient_radial.c b/src/lib/ector/gl/ector_renderer_gl_gradient_radial.c
index 3716a84a8d..a16619c8a3 100644
--- a/src/lib/ector/gl/ector_renderer_gl_gradient_radial.c
+++ b/src/lib/ector/gl/ector_renderer_gl_gradient_radial.c
@@ -12,13 +12,13 @@
12typedef struct _Ector_Renderer_GL_Gradient_Radial_Data Ector_Renderer_GL_Gradient_Radial_Data; 12typedef struct _Ector_Renderer_GL_Gradient_Radial_Data Ector_Renderer_GL_Gradient_Radial_Data;
13struct _Ector_Renderer_GL_Gradient_Radial_Data 13struct _Ector_Renderer_GL_Gradient_Radial_Data
14{ 14{
15 Ector_Renderer_Generic_Gradient_Radial_Data *radial; 15 Ector_Renderer_Gradient_Radial_Data *radial;
16 Ector_Renderer_Generic_Gradient_Data *gradient; 16 Ector_Renderer_Gradient_Data *gradient;
17 Ector_Renderer_Generic_Base_Data *base; 17 Ector_Renderer_Data *base;
18}; 18};
19 19
20static Eina_Bool 20static Eina_Bool
21_ector_renderer_gl_gradient_radial_ector_renderer_generic_base_prepare(Eo *obj, Ector_Renderer_GL_Gradient_Radial_Data *pd) 21_ector_renderer_gl_gradient_radial_ector_renderer_prepare(Eo *obj, Ector_Renderer_GL_Gradient_Radial_Data *pd)
22{ 22{
23 // FIXME: prepare something 23 // FIXME: prepare something
24 (void) obj; 24 (void) obj;
@@ -28,7 +28,7 @@ _ector_renderer_gl_gradient_radial_ector_renderer_generic_base_prepare(Eo *obj,
28} 28}
29 29
30static Eina_Bool 30static Eina_Bool
31_ector_renderer_gl_gradient_radial_ector_renderer_generic_base_draw(Eo *obj, Ector_Renderer_GL_Gradient_Radial_Data *pd, Efl_Gfx_Render_Op op, Eina_Array *clips, unsigned int mul_col) 31_ector_renderer_gl_gradient_radial_ector_renderer_draw(Eo *obj, Ector_Renderer_GL_Gradient_Radial_Data *pd, Efl_Gfx_Render_Op op, Eina_Array *clips, unsigned int mul_col)
32{ 32{
33 ector_renderer_draw(eo_super(obj, ECTOR_RENDERER_GL_GRADIENT_RADIAL_CLASS), op, clips, mul_col); 33 ector_renderer_draw(eo_super(obj, ECTOR_RENDERER_GL_GRADIENT_RADIAL_CLASS), op, clips, mul_col);
34 34
@@ -54,7 +54,7 @@ _ector_renderer_gl_gradient_radial_ector_renderer_gl_fill(Eo *obj, Ector_Rendere
54} 54}
55 55
56static void 56static void
57_ector_renderer_gl_gradient_radial_ector_renderer_generic_base_bounds_get(Eo *obj EINA_UNUSED, 57_ector_renderer_gl_gradient_radial_ector_renderer_bounds_get(Eo *obj EINA_UNUSED,
58 Ector_Renderer_GL_Gradient_Radial_Data *pd, 58 Ector_Renderer_GL_Gradient_Radial_Data *pd,
59 Eina_Rectangle *r) 59 Eina_Rectangle *r)
60{ 60{
@@ -65,7 +65,7 @@ _ector_renderer_gl_gradient_radial_ector_renderer_generic_base_bounds_get(Eo *ob
65} 65}
66 66
67static unsigned int 67static unsigned int
68_ector_renderer_gl_gradient_radial_ector_renderer_generic_base_crc_get(Eo *obj, Ector_Renderer_GL_Gradient_Radial_Data *pd) 68_ector_renderer_gl_gradient_radial_ector_renderer_crc_get(Eo *obj, Ector_Renderer_GL_Gradient_Radial_Data *pd)
69{ 69{
70 unsigned int crc; 70 unsigned int crc;
71 71
@@ -74,7 +74,7 @@ _ector_renderer_gl_gradient_radial_ector_renderer_generic_base_crc_get(Eo *obj,
74 crc = eina_crc((void*) pd->gradient->s, sizeof (Efl_Gfx_Gradient_Spread), crc, EINA_FALSE); 74 crc = eina_crc((void*) pd->gradient->s, sizeof (Efl_Gfx_Gradient_Spread), crc, EINA_FALSE);
75 if (pd->gradient->colors_count) 75 if (pd->gradient->colors_count)
76 crc = eina_crc((void*) pd->gradient->colors, sizeof (Efl_Gfx_Gradient_Stop) * pd->gradient->colors_count, crc, EINA_FALSE); 76 crc = eina_crc((void*) pd->gradient->colors, sizeof (Efl_Gfx_Gradient_Stop) * pd->gradient->colors_count, crc, EINA_FALSE);
77 crc = eina_crc((void*) pd->radial, sizeof (Ector_Renderer_Generic_Gradient_Radial_Data), crc, EINA_FALSE); 77 crc = eina_crc((void*) pd->radial, sizeof (Ector_Renderer_Gradient_Radial_Data), crc, EINA_FALSE);
78 78
79 return crc; 79 return crc;
80} 80}
@@ -86,9 +86,9 @@ _ector_renderer_gl_gradient_radial_eo_base_constructor(Eo *obj, Ector_Renderer_G
86 86
87 if (!obj) return NULL; 87 if (!obj) return NULL;
88 88
89 pd->base = eo_data_xref(obj, ECTOR_RENDERER_GENERIC_BASE_CLASS, obj); 89 pd->base = eo_data_xref(obj, ECTOR_RENDERER_CLASS, obj);
90 pd->radial = eo_data_xref(obj, ECTOR_RENDERER_GENERIC_GRADIENT_RADIAL_MIXIN, obj); 90 pd->radial = eo_data_xref(obj, ECTOR_RENDERER_GRADIENT_RADIAL_MIXIN, obj);
91 pd->gradient = eo_data_xref(obj, ECTOR_RENDERER_GENERIC_GRADIENT_MIXIN, obj); 91 pd->gradient = eo_data_xref(obj, ECTOR_RENDERER_GRADIENT_MIXIN, obj);
92 92
93 return obj; 93 return obj;
94} 94}