summaryrefslogtreecommitdiff
path: root/src/lib/ector/software/ector_software_surface.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-08-15 14:44:41 +0100
committerTom Hacohen <tom@stosb.com>2016-08-15 15:07:42 +0100
commite65aae994e72c1d3f8ac6b5360d3772f177b77ef (patch)
tree7ecaf136e45470635889191aded2b47057720a98 /src/lib/ector/software/ector_software_surface.c
parent35abb3c34d10a4826c98055fb85ecf93915e5ea8 (diff)
Eo: Finish the renaming of Eo to the EFL.
This renames all the rest of the API to the EFL namespace except for Eo_Event that will follow soon. Obviously breaks both API and ABI.
Diffstat (limited to 'src/lib/ector/software/ector_software_surface.c')
-rw-r--r--src/lib/ector/software/ector_software_surface.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/ector/software/ector_software_surface.c b/src/lib/ector/software/ector_software_surface.c
index 115170b865..ad504c4499 100644
--- a/src/lib/ector/software/ector_software_surface.c
+++ b/src/lib/ector/software/ector_software_surface.c
@@ -16,24 +16,24 @@ _ector_software_surface_ector_surface_renderer_factory_new(Eo *obj,
16 const Efl_Class *type) 16 const Efl_Class *type)
17{ 17{
18 if (type == ECTOR_RENDERER_SHAPE_MIXIN) 18 if (type == ECTOR_RENDERER_SHAPE_MIXIN)
19 return eo_add(ECTOR_RENDERER_SOFTWARE_SHAPE_CLASS, NULL, ector_renderer_surface_set(eo_self, obj)); 19 return efl_add(ECTOR_RENDERER_SOFTWARE_SHAPE_CLASS, NULL, ector_renderer_surface_set(efl_self, obj));
20 else if (type == ECTOR_RENDERER_GRADIENT_LINEAR_MIXIN) 20 else if (type == ECTOR_RENDERER_GRADIENT_LINEAR_MIXIN)
21 return eo_add(ECTOR_RENDERER_SOFTWARE_GRADIENT_LINEAR_CLASS, NULL, ector_renderer_surface_set(eo_self, obj)); 21 return efl_add(ECTOR_RENDERER_SOFTWARE_GRADIENT_LINEAR_CLASS, NULL, ector_renderer_surface_set(efl_self, obj));
22 else if (type == ECTOR_RENDERER_GRADIENT_RADIAL_MIXIN) 22 else if (type == ECTOR_RENDERER_GRADIENT_RADIAL_MIXIN)
23 return eo_add(ECTOR_RENDERER_SOFTWARE_GRADIENT_RADIAL_CLASS, NULL, ector_renderer_surface_set(eo_self, obj)); 23 return efl_add(ECTOR_RENDERER_SOFTWARE_GRADIENT_RADIAL_CLASS, NULL, ector_renderer_surface_set(efl_self, obj));
24 else if (type == ECTOR_RENDERER_BUFFER_MIXIN) 24 else if (type == ECTOR_RENDERER_BUFFER_MIXIN)
25 return eo_add(ECTOR_RENDERER_SOFTWARE_BUFFER_CLASS, NULL, ector_renderer_surface_set(eo_self, obj)); 25 return efl_add(ECTOR_RENDERER_SOFTWARE_BUFFER_CLASS, NULL, ector_renderer_surface_set(efl_self, obj));
26 ERR("Couldn't find class for type: %s\n", eo_class_name_get(type)); 26 ERR("Couldn't find class for type: %s\n", efl_class_name_get(type));
27 return NULL; 27 return NULL;
28} 28}
29 29
30static Eo * 30static Eo *
31_ector_software_surface_efl_object_constructor(Eo *obj, Ector_Software_Surface_Data *pd) 31_ector_software_surface_efl_object_constructor(Eo *obj, Ector_Software_Surface_Data *pd)
32{ 32{
33 obj = efl_constructor(eo_super(obj, MY_CLASS)); 33 obj = efl_constructor(efl_super(obj, MY_CLASS));
34 pd->rasterizer = (Software_Rasterizer *) calloc(1, sizeof(Software_Rasterizer)); 34 pd->rasterizer = (Software_Rasterizer *) calloc(1, sizeof(Software_Rasterizer));
35 ector_software_rasterizer_init(pd->rasterizer); 35 ector_software_rasterizer_init(pd->rasterizer);
36 pd->rasterizer->fill_data.raster_buffer = eo_data_ref(obj, ECTOR_SOFTWARE_BUFFER_BASE_MIXIN); 36 pd->rasterizer->fill_data.raster_buffer = efl_data_ref(obj, ECTOR_SOFTWARE_BUFFER_BASE_MIXIN);
37 return obj; 37 return obj;
38} 38}
39 39
@@ -41,10 +41,10 @@ static void
41_ector_software_surface_efl_object_destructor(Eo *obj, Ector_Software_Surface_Data *pd) 41_ector_software_surface_efl_object_destructor(Eo *obj, Ector_Software_Surface_Data *pd)
42{ 42{
43 ector_software_rasterizer_done(pd->rasterizer); 43 ector_software_rasterizer_done(pd->rasterizer);
44 eo_data_unref(obj, pd->rasterizer->fill_data.raster_buffer); 44 efl_data_unref(obj, pd->rasterizer->fill_data.raster_buffer);
45 free(pd->rasterizer); 45 free(pd->rasterizer);
46 pd->rasterizer = NULL; 46 pd->rasterizer = NULL;
47 efl_destructor(eo_super(obj, ECTOR_SOFTWARE_SURFACE_CLASS)); 47 efl_destructor(efl_super(obj, ECTOR_SOFTWARE_SURFACE_CLASS));
48} 48}
49 49
50static void 50static void