summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_generic/evas_ector_gl_rgbaimage_buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/evas/engines/gl_generic/evas_ector_gl_rgbaimage_buffer.c')
-rw-r--r--src/modules/evas/engines/gl_generic/evas_ector_gl_rgbaimage_buffer.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/modules/evas/engines/gl_generic/evas_ector_gl_rgbaimage_buffer.c b/src/modules/evas/engines/gl_generic/evas_ector_gl_rgbaimage_buffer.c
index 4fb6723..73c66a3 100644
--- a/src/modules/evas/engines/gl_generic/evas_ector_gl_rgbaimage_buffer.c
+++ b/src/modules/evas/engines/gl_generic/evas_ector_gl_rgbaimage_buffer.c
@@ -34,7 +34,7 @@ _evas_ector_gl_rgbaimage_buffer_evas_ector_buffer_engine_image_set(Eo *obj, Evas
34 Eina_Bool b; 34 Eina_Bool b;
35 35
36 EINA_SAFETY_ON_NULL_RETURN(image); 36 EINA_SAFETY_ON_NULL_RETURN(image);
37 if (eo_do_ret(obj, b, eo_finalized_get())) 37 if (eo_finalized_get(obj))
38 { 38 {
39 CRI("engine_image must be set at construction time only"); 39 CRI("engine_image must be set at construction time only");
40 return; 40 return;
@@ -51,10 +51,7 @@ _evas_ector_gl_rgbaimage_buffer_evas_ector_buffer_engine_image_set(Eo *obj, Evas
51 pd->image = im; 51 pd->image = im;
52 if (!pd->image) return; 52 if (!pd->image) return;
53 53
54 eo_do(obj, ector_buffer_pixels_set(im->image.data, 54 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);
55 im->cache_entry.w, im->cache_entry.h, 0,
56 (Efl_Gfx_Colorspace) im->cache_entry.space,
57 EINA_TRUE, 0, 0, 0, 0));
58} 55}
59 56
60EOLIAN static void 57EOLIAN static void
@@ -93,7 +90,7 @@ end:
93EOLIAN static Eo * 90EOLIAN static Eo *
94_evas_ector_gl_rgbaimage_buffer_eo_base_constructor(Eo *obj, Evas_Ector_GL_RGBAImage_Buffer_Data *pd) 91_evas_ector_gl_rgbaimage_buffer_eo_base_constructor(Eo *obj, Evas_Ector_GL_RGBAImage_Buffer_Data *pd)
95{ 92{
96 eo_do_super(obj, MY_CLASS, obj = eo_constructor()); 93 obj = eo_constructor(eo_super(obj, MY_CLASS));
97 pd->base = eo_data_xref(obj, ECTOR_SOFTWARE_BUFFER_BASE_MIXIN, obj); 94 pd->base = eo_data_xref(obj, ECTOR_SOFTWARE_BUFFER_BASE_MIXIN, obj);
98 return obj; 95 return obj;
99} 96}
@@ -104,7 +101,7 @@ _evas_ector_gl_rgbaimage_buffer_eo_base_finalize(Eo *obj, Evas_Ector_GL_RGBAImag
104 EINA_SAFETY_ON_NULL_RETURN_VAL(pd->base, NULL); 101 EINA_SAFETY_ON_NULL_RETURN_VAL(pd->base, NULL);
105 EINA_SAFETY_ON_NULL_RETURN_VAL(pd->image, NULL); 102 EINA_SAFETY_ON_NULL_RETURN_VAL(pd->image, NULL);
106 pd->base->generic->immutable = EINA_TRUE; 103 pd->base->generic->immutable = EINA_TRUE;
107 return eo_do_super_ret(obj, MY_CLASS, obj, eo_finalize()); 104 return eo_finalize(eo_super(obj, MY_CLASS));
108} 105}
109 106
110EOLIAN static void 107EOLIAN static void
@@ -116,7 +113,7 @@ _evas_ector_gl_rgbaimage_buffer_eo_base_destructor(Eo *obj, Evas_Ector_GL_RGBAIm
116 ENFN->image_free(ENDT, pd->glim); 113 ENFN->image_free(ENDT, pd->glim);
117 evas_cache_image_drop(&pd->image->cache_entry); 114 evas_cache_image_drop(&pd->image->cache_entry);
118 eo_xunref(pd->evas, obj); 115 eo_xunref(pd->evas, obj);
119 eo_do_super(obj, MY_CLASS, eo_destructor()); 116 eo_destructor(eo_super(obj, MY_CLASS));
120} 117}
121 118
122#include "evas_ector_gl_rgbaimage_buffer.eo.c" 119#include "evas_ector_gl_rgbaimage_buffer.eo.c"