From 8017fab1006e103c7138d72a5e61bba2588a2cd8 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Fri, 25 Aug 2017 10:48:05 -0700 Subject: [PATCH] evas: nobody actually call the tile size set API. --- src/lib/evas/include/evas_private.h | 1 - .../engines/software_generic/Evas_Engine_Software_Generic.h | 10 ++-------- src/modules/evas/engines/software_generic/evas_engine.c | 12 ------------ 3 files changed, 2 insertions(+), 21 deletions(-) diff --git a/src/lib/evas/include/evas_private.h b/src/lib/evas/include/evas_private.h index 294dfb5..4e939da 100644 --- a/src/lib/evas/include/evas_private.h +++ b/src/lib/evas/include/evas_private.h @@ -1400,7 +1400,6 @@ struct _Evas_Func void (*output_free) (void *engine, void *data); void (*output_resize) (void *engine, void *data, int w, int h); - void (*output_tile_size_set) (void *engine, void *data, int w, int h); void (*output_redraws_rect_add) (void *engine, void *data, int x, int y, int w, int h); void (*output_redraws_rect_del) (void *engine, void *data, int x, int y, int w, int h); void (*output_redraws_clear) (void *engine, void *data); diff --git a/src/modules/evas/engines/software_generic/Evas_Engine_Software_Generic.h b/src/modules/evas/engines/software_generic/Evas_Engine_Software_Generic.h index 01751a2..5db2a94 100644 --- a/src/modules/evas/engines/software_generic/Evas_Engine_Software_Generic.h +++ b/src/modules/evas/engines/software_generic/Evas_Engine_Software_Generic.h @@ -71,10 +71,6 @@ struct _Render_Output_Software_Generic unsigned int w, h; - struct { - unsigned int w, h; - } tile; - Render_Engine_Swap_Mode swap_mode; Render_Engine_Merge_Mode merge_mode; @@ -129,13 +125,11 @@ evas_render_engine_software_generic_init(Render_Output_Software_Generic *re, re->lost_back = 0; re->tile_strict = 0; - re->tile.w = TILESIZE; - re->tile.h = TILESIZE; re->tb = evas_common_tilebuf_new(w, h); if (!re->tb) return EINA_FALSE; /* in preliminary tests 16x16 gave highest framerates */ - evas_common_tilebuf_set_tile_size(re->tb, re->tile.w, re->tile.h); + evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE); return EINA_TRUE; } @@ -181,7 +175,7 @@ evas_render_engine_software_generic_update(Render_Output_Software_Generic *re, evas_common_tilebuf_free(re->tb); re->tb = evas_common_tilebuf_new(w, h); if (!re->tb) return EINA_FALSE; - evas_common_tilebuf_set_tile_size(re->tb, re->tile.w, re->tile.h); + evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE); evas_render_engine_software_generic_tile_strict_set(re, re->tile_strict); return EINA_TRUE; } diff --git a/src/modules/evas/engines/software_generic/evas_engine.c b/src/modules/evas/engines/software_generic/evas_engine.c index a97e14a..baede8f 100644 --- a/src/modules/evas/engines/software_generic/evas_engine.c +++ b/src/modules/evas/engines/software_generic/evas_engine.c @@ -3917,17 +3917,6 @@ eng_output_resize(void *engine EINA_UNUSED, void *data, int w, int h) } static void -eng_output_tile_size_set(void *engine EINA_UNUSED, void *data, int w, int h) -{ - Render_Output_Software_Generic *re; - - re = (Render_Output_Software_Generic *)data; - re->tile.w = w; - re->tile.h = h; - evas_common_tilebuf_set_tile_size(re->tb, w, h); -} - -static void eng_output_redraws_rect_add(void *engine EINA_UNUSED, void *data, int x, int y, int w, int h) { Render_Output_Software_Generic *re; @@ -4676,7 +4665,6 @@ static Evas_Func func = NULL, // eng_update NULL, // eng_output_free eng_output_resize, - eng_output_tile_size_set, eng_output_redraws_rect_add, eng_output_redraws_rect_del, eng_output_redraws_clear, -- 2.7.4