summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/software_generic/evas_ector_software_buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/evas/engines/software_generic/evas_ector_software_buffer.c')
-rw-r--r--src/modules/evas/engines/software_generic/evas_ector_software_buffer.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/modules/evas/engines/software_generic/evas_ector_software_buffer.c b/src/modules/evas/engines/software_generic/evas_ector_software_buffer.c
index d46b2c1..bf00a1b 100644
--- a/src/modules/evas/engines/software_generic/evas_ector_software_buffer.c
+++ b/src/modules/evas/engines/software_generic/evas_ector_software_buffer.c
@@ -28,7 +28,7 @@ _evas_ector_software_buffer_evas_ector_buffer_engine_image_set(Eo *obj, Evas_Ect
28 Eina_Bool b; 28 Eina_Bool b;
29 29
30 EINA_SAFETY_ON_NULL_RETURN(image); 30 EINA_SAFETY_ON_NULL_RETURN(image);
31 if (eo_do_ret(obj, b, eo_finalized_get())) 31 if (eo_finalized_get(obj))
32 { 32 {
33 CRI("engine_image must be set at construction time only"); 33 CRI("engine_image must be set at construction time only");
34 return; 34 return;
@@ -45,10 +45,7 @@ _evas_ector_software_buffer_evas_ector_buffer_engine_image_set(Eo *obj, Evas_Ect
45 pd->image = im; 45 pd->image = im;
46 if (!pd->image) return; 46 if (!pd->image) return;
47 47
48 eo_do(obj, ector_buffer_pixels_set(im->image.data, 48 ector_buffer_pixels_set(obj, im->image.data, im->cache_entry.w, im->cache_entry.h, 0, (Efl_Gfx_Colorspace) im->cache_entry.space, EINA_TRUE, 0, 0, 0, 0);
49 im->cache_entry.w, im->cache_entry.h, 0,
50 (Efl_Gfx_Colorspace) im->cache_entry.space,
51 EINA_TRUE, 0, 0, 0, 0));
52} 49}
53 50
54EOLIAN static void 51EOLIAN static void
@@ -72,7 +69,7 @@ _evas_ector_software_buffer_evas_ector_buffer_engine_image_get(Eo *obj EINA_UNUS
72EOLIAN static Eo * 69EOLIAN static Eo *
73_evas_ector_software_buffer_eo_base_constructor(Eo *obj, Evas_Ector_Software_Buffer_Data *pd) 70_evas_ector_software_buffer_eo_base_constructor(Eo *obj, Evas_Ector_Software_Buffer_Data *pd)
74{ 71{
75 eo_do_super(obj, MY_CLASS, obj = eo_constructor()); 72 obj = eo_constructor(eo_super(obj, MY_CLASS));
76 pd->base = eo_data_xref(obj, ECTOR_SOFTWARE_BUFFER_BASE_MIXIN, obj); 73 pd->base = eo_data_xref(obj, ECTOR_SOFTWARE_BUFFER_BASE_MIXIN, obj);
77 return obj; 74 return obj;
78} 75}
@@ -83,7 +80,7 @@ _evas_ector_software_buffer_eo_base_finalize(Eo *obj, Evas_Ector_Software_Buffer
83 EINA_SAFETY_ON_NULL_RETURN_VAL(pd->base, NULL); 80 EINA_SAFETY_ON_NULL_RETURN_VAL(pd->base, NULL);
84 EINA_SAFETY_ON_NULL_RETURN_VAL(pd->image, NULL); 81 EINA_SAFETY_ON_NULL_RETURN_VAL(pd->image, NULL);
85 pd->base->generic->immutable = EINA_TRUE; 82 pd->base->generic->immutable = EINA_TRUE;
86 return eo_do_super_ret(obj, MY_CLASS, obj, eo_finalize()); 83 return eo_finalize(eo_super(obj, MY_CLASS));
87} 84}
88 85
89EOLIAN static void 86EOLIAN static void
@@ -92,7 +89,7 @@ _evas_ector_software_buffer_eo_base_destructor(Eo *obj, Evas_Ector_Software_Buff
92 eo_data_xunref(obj, pd->base, obj); 89 eo_data_xunref(obj, pd->base, obj);
93 evas_cache_image_drop(&pd->image->cache_entry); 90 evas_cache_image_drop(&pd->image->cache_entry);
94 eo_xunref(pd->evas, obj); 91 eo_xunref(pd->evas, obj);
95 eo_do_super(obj, MY_CLASS, eo_destructor()); 92 eo_destructor(eo_super(obj, MY_CLASS));
96} 93}
97 94
98#include "evas_ector_buffer.eo.c" 95#include "evas_ector_buffer.eo.c"