evas: nobody actually call the tile size set API.
authorCedric BAIL <cedric@osg.samsung.com>
Fri, 25 Aug 2017 17:48:05 +0000 (10:48 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Fri, 25 Aug 2017 17:48:05 +0000 (10:48 -0700)
src/lib/evas/include/evas_private.h
src/modules/evas/engines/software_generic/Evas_Engine_Software_Generic.h
src/modules/evas/engines/software_generic/evas_engine.c

index 294dfb5..4e939da 100644 (file)
@@ -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);
index 01751a2..5db2a94 100644 (file)
@@ -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;
 }
index a97e14a..baede8f 100644 (file)
@@ -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,