forked from enlightenment/efl
evas: nobody actually call the tile size set API.
This commit is contained in:
parent
6f3980f55e
commit
8017fab100
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -3916,17 +3916,6 @@ eng_output_resize(void *engine EINA_UNUSED, void *data, int w, int h)
|
|||
re->h = 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)
|
||||
{
|
||||
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue