summaryrefslogtreecommitdiff
path: root/src/lib/ector/software/ector_software_surface.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-12-02 18:46:29 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-12-03 18:42:50 +0900
commit615b2442b76eeeeacc3e386ca5fd322047009761 (patch)
treea84d36df1ff9460dc78123763a75f507a4750353 /src/lib/ector/software/ector_software_surface.c
parentbad7911cd0f9d7eaa51c0c7b67ff3ed8d7da5599 (diff)
Ector: Move drawhelper to static_libs
Rename a few things: - draw helper -> efl_draw - Ector_Rop -> Efl.Gfx.Render_Op - ECTOR_ bla bla -> DRAW_ bla bla (base pixel ops) - ector_memfill -> draw_memset32 (and invert arg order to match memset) The main rasterizer file is now draw.h in static_libs/draw This is a non functional change, simple code refactor.
Diffstat (limited to 'src/lib/ector/software/ector_software_surface.c')
-rw-r--r--src/lib/ector/software/ector_software_surface.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/ector/software/ector_software_surface.c b/src/lib/ector/software/ector_software_surface.c
index bdd0599610..6ad79053ae 100644
--- a/src/lib/ector/software/ector_software_surface.c
+++ b/src/lib/ector/software/ector_software_surface.c
@@ -35,19 +35,19 @@ static Eo *
35_ector_software_surface_eo_base_constructor(Eo *obj, Ector_Software_Surface_Data *pd) 35_ector_software_surface_eo_base_constructor(Eo *obj, Ector_Software_Surface_Data *pd)
36{ 36{
37 obj = eo_do_super_ret(obj, MY_CLASS, obj, eo_constructor()); 37 obj = eo_do_super_ret(obj, MY_CLASS, obj, eo_constructor());
38 pd->software = (Software_Rasterizer *) calloc(1, sizeof(Software_Rasterizer)); 38 pd->rasterizer = (Software_Rasterizer *) calloc(1, sizeof(Software_Rasterizer));
39 ector_software_rasterizer_init(pd->software); 39 ector_software_rasterizer_init(pd->rasterizer);
40 pd->software->fill_data.raster_buffer = eo_data_ref(obj, ECTOR_SOFTWARE_BUFFER_BASE_MIXIN); 40 pd->rasterizer->fill_data.raster_buffer = eo_data_ref(obj, ECTOR_SOFTWARE_BUFFER_BASE_MIXIN);
41 return obj; 41 return obj;
42} 42}
43 43
44static void 44static void
45_ector_software_surface_eo_base_destructor(Eo *obj, Ector_Software_Surface_Data *pd) 45_ector_software_surface_eo_base_destructor(Eo *obj, Ector_Software_Surface_Data *pd)
46{ 46{
47 ector_software_rasterizer_done(pd->software); 47 ector_software_rasterizer_done(pd->rasterizer);
48 eo_data_unref(obj, pd->software->fill_data.raster_buffer); 48 eo_data_unref(obj, pd->rasterizer->fill_data.raster_buffer);
49 free(pd->software); 49 free(pd->rasterizer);
50 pd->software = NULL; 50 pd->rasterizer = NULL;
51 eo_do_super(obj, ECTOR_SOFTWARE_SURFACE_CLASS, eo_destructor()); 51 eo_do_super(obj, ECTOR_SOFTWARE_SURFACE_CLASS, eo_destructor());
52} 52}
53 53