forked from enlightenment/efl
centralise tile size to a #define.. move to 8... :)
SVN revision: 13195
This commit is contained in:
parent
e79e53e35b
commit
6fe1274808
|
@ -284,7 +284,7 @@ evas_engine_buffer_output_setup(int w,
|
||||||
}
|
}
|
||||||
re->tb = evas_common_tilebuf_new(w, h);
|
re->tb = evas_common_tilebuf_new(w, h);
|
||||||
/* in preliminary tests 16x16 gave highest framerates */
|
/* in preliminary tests 16x16 gave highest framerates */
|
||||||
evas_common_tilebuf_set_tile_size(re->tb, 16, 16);
|
evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE);
|
||||||
return re;
|
return re;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -342,7 +342,7 @@ evas_engine_buffer_output_resize(void *data, int w, int h)
|
||||||
evas_common_tilebuf_free(re->tb);
|
evas_common_tilebuf_free(re->tb);
|
||||||
re->tb = evas_common_tilebuf_new(w, h);
|
re->tb = evas_common_tilebuf_new(w, h);
|
||||||
if (re->tb)
|
if (re->tb)
|
||||||
evas_common_tilebuf_set_tile_size(re->tb, 16, 16);
|
evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -244,7 +244,7 @@ evas_engine_cairo_x11_output_setup(int w, int h, Display *disp, Drawable draw, V
|
||||||
evas_common_tilebuf_init();
|
evas_common_tilebuf_init();
|
||||||
|
|
||||||
re->tb = evas_common_tilebuf_new(w, h);
|
re->tb = evas_common_tilebuf_new(w, h);
|
||||||
evas_common_tilebuf_set_tile_size(re->tb, 16, 16);
|
evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE);
|
||||||
|
|
||||||
return re;
|
return re;
|
||||||
}
|
}
|
||||||
|
@ -277,7 +277,7 @@ evas_engine_cairo_x11_output_resize(void *data, int w, int h)
|
||||||
evas_common_tilebuf_free(re->tb);
|
evas_common_tilebuf_free(re->tb);
|
||||||
re->tb = evas_common_tilebuf_new(w, h);
|
re->tb = evas_common_tilebuf_new(w, h);
|
||||||
if (re->tb)
|
if (re->tb)
|
||||||
evas_common_tilebuf_set_tile_size(re->tb, 16, 16);
|
evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -156,7 +156,7 @@ evas_engine_directfb_output_setup(int w, int h, IDirectFB * dfb,
|
||||||
|
|
||||||
re->tb = evas_common_tilebuf_new(w, h);
|
re->tb = evas_common_tilebuf_new(w, h);
|
||||||
/* in preliminary tests 16x16 gave highest framerates */
|
/* in preliminary tests 16x16 gave highest framerates */
|
||||||
evas_common_tilebuf_set_tile_size(re->tb, 16, 16);
|
evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE);
|
||||||
re->dfb = dfb;
|
re->dfb = dfb;
|
||||||
re->surface = surf;
|
re->surface = surf;
|
||||||
|
|
||||||
|
@ -226,7 +226,7 @@ evas_engine_directfb_output_resize(void *data, int w, int h)
|
||||||
evas_common_tilebuf_free(re->tb);
|
evas_common_tilebuf_free(re->tb);
|
||||||
re->tb = evas_common_tilebuf_new(w, h);
|
re->tb = evas_common_tilebuf_new(w, h);
|
||||||
if (re->tb)
|
if (re->tb)
|
||||||
evas_common_tilebuf_set_tile_size(re->tb, 16, 16);
|
evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE);
|
||||||
|
|
||||||
memset(&dsc, 0, sizeof(DFBSurfaceDescription));
|
memset(&dsc, 0, sizeof(DFBSurfaceDescription));
|
||||||
dsc.flags = DSDESC_WIDTH | DSDESC_HEIGHT | DSDESC_PIXELFORMAT;
|
dsc.flags = DSDESC_WIDTH | DSDESC_HEIGHT | DSDESC_PIXELFORMAT;
|
||||||
|
|
|
@ -230,7 +230,7 @@ evas_engine_fb_output_setup(int w, int h, int rot, int vt, int dev, int refresh)
|
||||||
/* no backbuf! */
|
/* no backbuf! */
|
||||||
evas_fb_outbuf_fb_set_have_backbuf(re->ob, 0);
|
evas_fb_outbuf_fb_set_have_backbuf(re->ob, 0);
|
||||||
/* in preliminary tests 16x16 gave highest framerates */
|
/* in preliminary tests 16x16 gave highest framerates */
|
||||||
evas_common_tilebuf_set_tile_size(re->tb, 16, 16);
|
evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE);
|
||||||
return re;
|
return re;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -261,7 +261,7 @@ evas_engine_fb_output_resize(void *data, int w, int h)
|
||||||
evas_common_tilebuf_free(re->tb);
|
evas_common_tilebuf_free(re->tb);
|
||||||
re->tb = evas_common_tilebuf_new(w, h);
|
re->tb = evas_common_tilebuf_new(w, h);
|
||||||
if (re->tb)
|
if (re->tb)
|
||||||
evas_common_tilebuf_set_tile_size(re->tb, 16, 16);
|
evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -246,7 +246,7 @@ evas_engine_software_qtopia_output_setup(int w, int h, int rot, QWidget *target)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
/* in preliminary tests 16x16 gave highest framerates */
|
/* in preliminary tests 16x16 gave highest framerates */
|
||||||
evas_common_tilebuf_set_tile_size(re->tb, 16, 16);
|
evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE);
|
||||||
return re;
|
return re;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -278,7 +278,7 @@ evas_engine_software_qtopia_output_resize(void *data, int w, int h)
|
||||||
evas_common_tilebuf_free(re->tb);
|
evas_common_tilebuf_free(re->tb);
|
||||||
re->tb = evas_common_tilebuf_new(w, h);
|
re->tb = evas_common_tilebuf_new(w, h);
|
||||||
if (re->tb)
|
if (re->tb)
|
||||||
evas_common_tilebuf_set_tile_size(re->tb, 16, 16);
|
evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -289,7 +289,7 @@ evas_engine_software_x11_output_setup(int w, int h, int rot, Display *disp, Draw
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
/* in preliminary tests 16x16 gave highest framerates */
|
/* in preliminary tests 16x16 gave highest framerates */
|
||||||
evas_common_tilebuf_set_tile_size(re->tb, 16, 16);
|
evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE);
|
||||||
return re;
|
return re;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -321,7 +321,7 @@ evas_engine_software_x11_output_resize(void *data, int w, int h)
|
||||||
evas_common_tilebuf_free(re->tb);
|
evas_common_tilebuf_free(re->tb);
|
||||||
re->tb = evas_common_tilebuf_new(w, h);
|
re->tb = evas_common_tilebuf_new(w, h);
|
||||||
if (re->tb)
|
if (re->tb)
|
||||||
evas_common_tilebuf_set_tile_size(re->tb, 16, 16);
|
evas_common_tilebuf_set_tile_size(re->tb, TILESIZE, TILESIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
|
|
||||||
/* use exact rects for updates not tiles */
|
/* use exact rects for updates not tiles */
|
||||||
/* #define RECTUPDATE */
|
/* #define RECTUPDATE */
|
||||||
|
#define TILESIZE 8
|
||||||
|
|
||||||
#undef MIN
|
#undef MIN
|
||||||
#define MIN(_x, _y) \
|
#define MIN(_x, _y) \
|
||||||
|
|
Loading…
Reference in New Issue