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:
Jean-Philippe Andre 2016-03-21 15:38:19 +09:00
parent 0d41ad0c83
commit d4e713a18c
3 changed files with 2 additions and 8 deletions

View File

@ -67,7 +67,6 @@ class Evas.Image (Evas.Object, Evas.Filter,
Efl.Gfx.Buffer.alpha.get;
Efl.Gfx.Buffer.alpha.set;
Efl.Gfx.Buffer.buffer_update_add;
Efl.Gfx.Buffer.stride.get;
Efl.Gfx.Buffer.colorspace.get;
Efl.Gfx.Buffer.buffer_get;
Efl.Gfx.Buffer.buffer_set;

View File

@ -157,7 +157,8 @@ EAPI int
evas_object_image_stride_get(const Evas_Object *obj)
{
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

View File

@ -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;
}
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
_evas_image_efl_gfx_buffer_buffer_update_add(Eo *eo_obj, Evas_Image_Data *o, int x, int y, int w, int h)
{