summaryrefslogtreecommitdiff
path: root/src/lib/ector/software/ector_renderer_software_gradient_linear.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/software/ector_renderer_software_gradient_linear.c
parent1c0ec6788f8f14cb1fea2dd0b85868462243e395 (diff)
Ector generic: Remove .Generic and .Base (hack no longer needed).
Diffstat (limited to 'src/lib/ector/software/ector_renderer_software_gradient_linear.c')
-rw-r--r--src/lib/ector/software/ector_renderer_software_gradient_linear.c20
1 files changed, 10 insertions, 10 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 9428366352..d5d5effc5e 100644
--- a/src/lib/ector/software/ector_renderer_software_gradient_linear.c
+++ b/src/lib/ector/software/ector_renderer_software_gradient_linear.c
@@ -10,14 +10,14 @@
10#include "ector_software_private.h" 10#include "ector_software_private.h"
11 11
12static Eina_Bool 12static Eina_Bool
13_ector_renderer_software_gradient_linear_ector_renderer_generic_base_prepare(Eo *obj, 13_ector_renderer_software_gradient_linear_ector_renderer_prepare(Eo *obj,
14 Ector_Renderer_Software_Gradient_Data *pd) 14 Ector_Renderer_Software_Gradient_Data *pd)
15{ 15{
16 if (!pd->surface) 16 if (!pd->surface)
17 { 17 {
18 Ector_Renderer_Generic_Base_Data *base; 18 Ector_Renderer_Data *base;
19 19
20 base = eo_data_scope_get(obj, ECTOR_RENDERER_GENERIC_BASE_CLASS); 20 base = eo_data_scope_get(obj, ECTOR_RENDERER_CLASS);
21 pd->surface = eo_data_xref(base->surface, ECTOR_SOFTWARE_SURFACE_CLASS, obj); 21 pd->surface = eo_data_xref(base->surface, ECTOR_SOFTWARE_SURFACE_CLASS, obj);
22 } 22 }
23 23
@@ -45,7 +45,7 @@ _ector_renderer_software_gradient_linear_ector_renderer_generic_base_prepare(Eo
45} 45}
46 46
47static Eina_Bool 47static Eina_Bool
48_ector_renderer_software_gradient_linear_ector_renderer_generic_base_draw(Eo *obj EINA_UNUSED, 48_ector_renderer_software_gradient_linear_ector_renderer_draw(Eo *obj EINA_UNUSED,
49 Ector_Renderer_Software_Gradient_Data *pd EINA_UNUSED, 49 Ector_Renderer_Software_Gradient_Data *pd EINA_UNUSED,
50 Efl_Gfx_Render_Op op EINA_UNUSED, Eina_Array *clips EINA_UNUSED, 50 Efl_Gfx_Render_Op op EINA_UNUSED, Eina_Array *clips EINA_UNUSED,
51 unsigned int mul_col EINA_UNUSED) 51 unsigned int mul_col EINA_UNUSED)
@@ -69,8 +69,8 @@ _ector_renderer_software_gradient_linear_eo_base_constructor(Eo *obj,
69 obj = eo_constructor(eo_super(obj, ECTOR_RENDERER_SOFTWARE_GRADIENT_LINEAR_CLASS)); 69 obj = eo_constructor(eo_super(obj, ECTOR_RENDERER_SOFTWARE_GRADIENT_LINEAR_CLASS));
70 if (!obj) return NULL; 70 if (!obj) return NULL;
71 71
72 pd->gd = eo_data_xref(obj, ECTOR_RENDERER_GENERIC_GRADIENT_MIXIN, obj); 72 pd->gd = eo_data_xref(obj, ECTOR_RENDERER_GRADIENT_MIXIN, obj);
73 pd->gld = eo_data_xref(obj, ECTOR_RENDERER_GENERIC_GRADIENT_LINEAR_MIXIN, obj); 73 pd->gld = eo_data_xref(obj, ECTOR_RENDERER_GRADIENT_LINEAR_MIXIN, obj);
74 74
75 return obj; 75 return obj;
76} 76}
@@ -79,11 +79,11 @@ static void
79_ector_renderer_software_gradient_linear_eo_base_destructor(Eo *obj, 79_ector_renderer_software_gradient_linear_eo_base_destructor(Eo *obj,
80 Ector_Renderer_Software_Gradient_Data *pd) 80 Ector_Renderer_Software_Gradient_Data *pd)
81{ 81{
82 Ector_Renderer_Generic_Base_Data *base; 82 Ector_Renderer_Data *base;
83 83
84 destroy_color_table(pd); 84 destroy_color_table(pd);
85 85
86 base = eo_data_scope_get(obj, ECTOR_RENDERER_GENERIC_BASE_CLASS); 86 base = eo_data_scope_get(obj, ECTOR_RENDERER_CLASS);
87 eo_data_xunref(base->surface, pd->surface, obj); 87 eo_data_xunref(base->surface, pd->surface, obj);
88 88
89 eo_data_xunref(obj, pd->gd, obj); 89 eo_data_xunref(obj, pd->gd, obj);
@@ -101,7 +101,7 @@ _ector_renderer_software_gradient_linear_efl_gfx_gradient_stop_set(Eo *obj, Ecto
101} 101}
102 102
103static unsigned int 103static unsigned int
104_ector_renderer_software_gradient_linear_ector_renderer_generic_base_crc_get(Eo *obj, Ector_Renderer_Software_Gradient_Data *pd) 104_ector_renderer_software_gradient_linear_ector_renderer_crc_get(Eo *obj, Ector_Renderer_Software_Gradient_Data *pd)
105{ 105{
106 unsigned int crc; 106 unsigned int crc;
107 107
@@ -110,7 +110,7 @@ _ector_renderer_software_gradient_linear_ector_renderer_generic_base_crc_get(Eo
110 crc = eina_crc((void*) pd->gd->s, sizeof (Efl_Gfx_Gradient_Spread), crc, EINA_FALSE); 110 crc = eina_crc((void*) pd->gd->s, sizeof (Efl_Gfx_Gradient_Spread), crc, EINA_FALSE);
111 if (pd->gd->colors_count) 111 if (pd->gd->colors_count)
112 crc = eina_crc((void*) pd->gd->colors, sizeof (Efl_Gfx_Gradient_Stop) * pd->gd->colors_count, crc, EINA_FALSE); 112 crc = eina_crc((void*) pd->gd->colors, sizeof (Efl_Gfx_Gradient_Stop) * pd->gd->colors_count, crc, EINA_FALSE);
113 crc = eina_crc((void*) pd->gld, sizeof (Ector_Renderer_Generic_Gradient_Linear_Data), crc, EINA_FALSE); 113 crc = eina_crc((void*) pd->gld, sizeof (Ector_Renderer_Gradient_Linear_Data), crc, EINA_FALSE);
114 114
115 return crc; 115 return crc;
116} 116}