forked from enlightenment/efl
Evas.Image: Move stride.get away from Evas.Image
stride does not apply to all image objects, eg. proxies or 3d scenes. it will be implemented by the classes that support stride and pixel data access
This commit is contained in:
parent
0d41ad0c83
commit
d4e713a18c
|
@ -67,7 +67,6 @@ class Evas.Image (Evas.Object, Evas.Filter,
|
||||||
Efl.Gfx.Buffer.alpha.get;
|
Efl.Gfx.Buffer.alpha.get;
|
||||||
Efl.Gfx.Buffer.alpha.set;
|
Efl.Gfx.Buffer.alpha.set;
|
||||||
Efl.Gfx.Buffer.buffer_update_add;
|
Efl.Gfx.Buffer.buffer_update_add;
|
||||||
Efl.Gfx.Buffer.stride.get;
|
|
||||||
Efl.Gfx.Buffer.colorspace.get;
|
Efl.Gfx.Buffer.colorspace.get;
|
||||||
Efl.Gfx.Buffer.buffer_get;
|
Efl.Gfx.Buffer.buffer_get;
|
||||||
Efl.Gfx.Buffer.buffer_set;
|
Efl.Gfx.Buffer.buffer_set;
|
||||||
|
|
|
@ -157,7 +157,8 @@ EAPI int
|
||||||
evas_object_image_stride_get(const Evas_Object *obj)
|
evas_object_image_stride_get(const Evas_Object *obj)
|
||||||
{
|
{
|
||||||
EVAS_IMAGE_API(obj, 0);
|
EVAS_IMAGE_API(obj, 0);
|
||||||
return efl_gfx_buffer_stride_get(obj);
|
Evas_Image_Data *o = eo_data_scope_get(eo_obj, EVAS_IMAGE_CLASS);
|
||||||
|
return o->cur->image.stride;
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI void
|
EAPI void
|
||||||
|
|
|
@ -622,12 +622,6 @@ _evas_image_efl_gfx_view_view_size_get(Eo *eo_obj, Evas_Image_Data *o, int *w, i
|
||||||
if (h) *h = uvh;
|
if (h) *h = uvh;
|
||||||
}
|
}
|
||||||
|
|
||||||
EOLIAN static int
|
|
||||||
_evas_image_efl_gfx_buffer_stride_get(Eo *eo_obj EINA_UNUSED, Evas_Image_Data *o)
|
|
||||||
{
|
|
||||||
return o->cur->image.stride;
|
|
||||||
}
|
|
||||||
|
|
||||||
EOLIAN static void
|
EOLIAN static void
|
||||||
_evas_image_efl_gfx_buffer_buffer_update_add(Eo *eo_obj, Evas_Image_Data *o, int x, int y, int w, int h)
|
_evas_image_efl_gfx_buffer_buffer_update_add(Eo *eo_obj, Evas_Image_Data *o, int x, int y, int w, int h)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue