summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-08-25 10:51:13 -0700
committerCedric BAIL <cedric@osg.samsung.com>2017-08-25 10:51:13 -0700
commitfc603df8d15113c55e5c09aba553cda173e03957 (patch)
treef787fac20f3dfdfa17f8392d78372aeae441c598 /src/modules
parent1d57cb2627a8b10092def3f55e4833e4f8cf8bd5 (diff)
evas: remove image_surface_noscale_region_get from engine backend as it is unused.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/evas/engines/gl_generic/evas_engine.c21
-rw-r--r--src/modules/evas/engines/software_generic/evas_engine.c23
2 files changed, 0 insertions, 44 deletions
diff --git a/src/modules/evas/engines/gl_generic/evas_engine.c b/src/modules/evas/engines/gl_generic/evas_engine.c
index bccfc79..125528e 100644
--- a/src/modules/evas/engines/gl_generic/evas_engine.c
+++ b/src/modules/evas/engines/gl_generic/evas_engine.c
@@ -3024,26 +3024,6 @@ eng_image_surface_noscale_new(void *engine, int w, int h, int alpha)
3024 return evas_gl_common_image_surface_noscale_new(gl_context, w, h, alpha); 3024 return evas_gl_common_image_surface_noscale_new(gl_context, w, h, alpha);
3025} 3025}
3026 3026
3027static void
3028eng_image_surface_noscale_region_get(void *engine EINA_UNUSED, void *image, int *x, int *y, int *w, int *h)
3029{
3030 Evas_GL_Image *im = image;
3031
3032 if (im)
3033 {
3034 *x = im->tex->x;
3035 *y = im->tex->y;
3036 *w = im->w;
3037 *h = im->h;
3038 return;
3039 }
3040
3041 *x = 0;
3042 *y = 0;
3043 *w = 0;
3044 *h = 0;
3045}
3046
3047//------------------------------------------------// 3027//------------------------------------------------//
3048 3028
3049static GL_Filter_Apply_Func 3029static GL_Filter_Apply_Func
@@ -3183,7 +3163,6 @@ module_open(Evas_Module *em)
3183 3163
3184 ORD(image_prepare); 3164 ORD(image_prepare);
3185 ORD(image_surface_noscale_new); 3165 ORD(image_surface_noscale_new);
3186 ORD(image_surface_noscale_region_get);
3187 3166
3188 ORD(font_cache_flush); 3167 ORD(font_cache_flush);
3189 ORD(font_cache_set); 3168 ORD(font_cache_set);
diff --git a/src/modules/evas/engines/software_generic/evas_engine.c b/src/modules/evas/engines/software_generic/evas_engine.c
index af80a9b..04bb27d 100644
--- a/src/modules/evas/engines/software_generic/evas_engine.c
+++ b/src/modules/evas/engines/software_generic/evas_engine.c
@@ -1986,28 +1986,6 @@ eng_image_surface_noscale_new(void *engdata, int w, int h, int alpha)
1986} 1986}
1987 1987
1988static void 1988static void
1989eng_image_surface_noscale_region_get(void *engdata EINA_UNUSED, void *image, int *x, int *y, int *w, int *h)
1990{
1991 RGBA_Image *im = image;
1992
1993 if (im)
1994 {
1995 *x = 0;
1996 *y = 0;
1997 *w = im->cache_entry.w;
1998 *h = im->cache_entry.h;
1999 return;
2000 }
2001 else
2002 {
2003 *x = 0;
2004 *y = 0;
2005 *w = 0;
2006 *h = 0;
2007 }
2008}
2009
2010static void
2011_image_flip_horizontal(DATA32 *pixels_out, const DATA32 *pixels_in, 1989_image_flip_horizontal(DATA32 *pixels_out, const DATA32 *pixels_in,
2012 int iw, int ih) 1990 int iw, int ih)
2013{ 1991{
@@ -4766,7 +4744,6 @@ static Evas_Func func =
4766 eng_image_data_slice_add, 4744 eng_image_data_slice_add,
4767 eng_image_prepare, 4745 eng_image_prepare,
4768 eng_image_surface_noscale_new, 4746 eng_image_surface_noscale_new,
4769 eng_image_surface_noscale_region_get,
4770 eng_image_native_init, 4747 eng_image_native_init,
4771 eng_image_native_shutdown, 4748 eng_image_native_shutdown,
4772 eng_image_native_set, 4749 eng_image_native_set,