evas: remove image_surface_noscale_region_get from engine backend as it is unused.

This commit is contained in:
Cedric BAIL 2017-08-25 10:51:13 -07:00
parent 1d57cb2627
commit fc603df8d1
3 changed files with 0 additions and 45 deletions

View File

@ -1485,7 +1485,6 @@ struct _Evas_Func
void (*image_prepare) (void *engine, void *image);
void *(*image_surface_noscale_new) (void *engine, int w, int h, int alpha);
void (*image_surface_noscale_region_get)(void *engine, void *image, int *x, int *y, int *w, int *h);
int (*image_native_init) (void *engine, Evas_Native_Surface_Type type);
void (*image_native_shutdown) (void *engine, Evas_Native_Surface_Type type);

View File

@ -3024,26 +3024,6 @@ eng_image_surface_noscale_new(void *engine, int w, int h, int alpha)
return evas_gl_common_image_surface_noscale_new(gl_context, w, h, alpha);
}
static void
eng_image_surface_noscale_region_get(void *engine EINA_UNUSED, void *image, int *x, int *y, int *w, int *h)
{
Evas_GL_Image *im = image;
if (im)
{
*x = im->tex->x;
*y = im->tex->y;
*w = im->w;
*h = im->h;
return;
}
*x = 0;
*y = 0;
*w = 0;
*h = 0;
}
//------------------------------------------------//
static GL_Filter_Apply_Func
@ -3183,7 +3163,6 @@ module_open(Evas_Module *em)
ORD(image_prepare);
ORD(image_surface_noscale_new);
ORD(image_surface_noscale_region_get);
ORD(font_cache_flush);
ORD(font_cache_set);

View File

@ -1985,28 +1985,6 @@ eng_image_surface_noscale_new(void *engdata, int w, int h, int alpha)
return eng_image_map_surface_new(engdata, w, h, alpha);
}
static void
eng_image_surface_noscale_region_get(void *engdata EINA_UNUSED, void *image, int *x, int *y, int *w, int *h)
{
RGBA_Image *im = image;
if (im)
{
*x = 0;
*y = 0;
*w = im->cache_entry.w;
*h = im->cache_entry.h;
return;
}
else
{
*x = 0;
*y = 0;
*w = 0;
*h = 0;
}
}
static void
_image_flip_horizontal(DATA32 *pixels_out, const DATA32 *pixels_in,
int iw, int ih)
@ -4766,7 +4744,6 @@ static Evas_Func func =
eng_image_data_slice_add,
eng_image_prepare,
eng_image_surface_noscale_new,
eng_image_surface_noscale_region_get,
eng_image_native_init,
eng_image_native_shutdown,
eng_image_native_set,