summaryrefslogtreecommitdiff
path: root/src/lib/ector/cairo/ector_cairo_software_surface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ector/cairo/ector_cairo_software_surface.c')
-rw-r--r--src/lib/ector/cairo/ector_cairo_software_surface.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/lib/ector/cairo/ector_cairo_software_surface.c b/src/lib/ector/cairo/ector_cairo_software_surface.c
index ef4100f..2ce001e 100644
--- a/src/lib/ector/cairo/ector_cairo_software_surface.c
+++ b/src/lib/ector/cairo/ector_cairo_software_surface.c
@@ -18,8 +18,7 @@ _ector_cairo_symbol_get(Eo *ector_surface, const char *name)
18{ 18{
19 void *sym; 19 void *sym;
20 20
21 eo_do(ector_surface, 21 sym = ector_cairo_surface_symbol_get(ector_surface, name);
22 sym = ector_cairo_surface_symbol_get(name));
23 return sym; 22 return sym;
24} 23}
25 24
@@ -74,9 +73,7 @@ _ector_cairo_software_surface_ector_generic_buffer_pixels_set(Eo *obj, Ector_Cai
74 cairo_surface_destroy(pd->surface); 73 cairo_surface_destroy(pd->surface);
75 pd->surface = NULL; 74 pd->surface = NULL;
76 75
77 eo_do_super(obj, MY_CLASS, 76 ok = ector_buffer_pixels_set(eo_super(obj, MY_CLASS), pixels, width, height, stride, cspace, writable, l, r, t, b);
78 ok = ector_buffer_pixels_set(pixels, width, height, stride,
79 cspace, writable, l, r, t, b));
80 77
81 if (ok && pixels) 78 if (ok && pixels)
82 { 79 {
@@ -90,7 +87,7 @@ _ector_cairo_software_surface_ector_generic_buffer_pixels_set(Eo *obj, Ector_Cai
90 87
91 end: 88 end:
92 /* evas_common_cpu_end_opt(); // do we need this? */ 89 /* evas_common_cpu_end_opt(); // do we need this? */
93 eo_do(obj, ector_cairo_surface_context_set(ctx)); 90 ector_cairo_surface_context_set(obj, ctx);
94 return ok; 91 return ok;
95} 92}
96 93
@@ -105,7 +102,7 @@ _ector_cairo_software_surface_surface_get(Eo *obj EINA_UNUSED, Ector_Cairo_Softw
105static Eo_Base * 102static Eo_Base *
106_ector_cairo_software_surface_eo_base_constructor(Eo *obj, Ector_Cairo_Software_Surface_Data *pd) 103_ector_cairo_software_surface_eo_base_constructor(Eo *obj, Ector_Cairo_Software_Surface_Data *pd)
107{ 104{
108 eo_do_super(obj, MY_CLASS, obj = eo_constructor()); 105 obj = eo_constructor(eo_super(obj, MY_CLASS));
109 106
110 if (!obj) return NULL; 107 if (!obj) return NULL;
111 pd->base = eo_data_ref(obj, ECTOR_SOFTWARE_BUFFER_BASE_MIXIN); 108 pd->base = eo_data_ref(obj, ECTOR_SOFTWARE_BUFFER_BASE_MIXIN);
@@ -118,7 +115,7 @@ EOLIAN static void
118_ector_cairo_software_surface_eo_base_destructor(Eo *obj, Ector_Cairo_Software_Surface_Data *pd) 115_ector_cairo_software_surface_eo_base_destructor(Eo *obj, Ector_Cairo_Software_Surface_Data *pd)
119{ 116{
120 eo_data_unref(obj, pd->base); 117 eo_data_unref(obj, pd->base);
121 eo_do_super(obj, MY_CLASS, eo_destructor()); 118 eo_destructor(eo_super(obj, MY_CLASS));
122} 119}
123 120
124#include "ector_cairo_software_surface.eo.c" 121#include "ector_cairo_software_surface.eo.c"