namespace {
int NumTiles(
- gfx::Size max_texture_size,
- gfx::Size total_size,
+ const gfx::Size& max_texture_size,
+ const gfx::Size& total_size,
bool has_border_texels) {
TilingData tiling(max_texture_size, total_size, has_border_texels);
int num_tiles = tiling.num_tiles_x() * tiling.num_tiles_y();
}
int XIndex(
- gfx::Size max_texture_size,
- gfx::Size total_size,
+ const gfx::Size& max_texture_size,
+ const gfx::Size& total_size,
bool has_border_texels,
int x_coord) {
TilingData tiling(max_texture_size, total_size, has_border_texels);
}
int YIndex(
- gfx::Size max_texture_size,
- gfx::Size total_size,
+ const gfx::Size& max_texture_size,
+ const gfx::Size& total_size,
bool has_border_texels,
int y_coord) {
TilingData tiling(max_texture_size, total_size, has_border_texels);
}
int MinBorderXIndex(
- gfx::Size max_texture_size,
- gfx::Size total_size,
+ const gfx::Size& max_texture_size,
+ const gfx::Size& total_size,
bool has_border_texels,
int x_coord) {
TilingData tiling(max_texture_size, total_size, has_border_texels);
}
int MinBorderYIndex(
- gfx::Size max_texture_size,
- gfx::Size total_size,
+ const gfx::Size& max_texture_size,
+ const gfx::Size& total_size,
bool has_border_texels,
int y_coord) {
TilingData tiling(max_texture_size, total_size, has_border_texels);
}
int MaxBorderXIndex(
- gfx::Size max_texture_size,
- gfx::Size total_size,
+ const gfx::Size& max_texture_size,
+ const gfx::Size& total_size,
bool has_border_texels,
int x_coord) {
TilingData tiling(max_texture_size, total_size, has_border_texels);
}
int MaxBorderYIndex(
- gfx::Size max_texture_size,
- gfx::Size total_size,
+ const gfx::Size& max_texture_size,
+ const gfx::Size& total_size,
bool has_border_texels,
int y_coord) {
TilingData tiling(max_texture_size, total_size, has_border_texels);
}
int PosX(
- gfx::Size max_texture_size,
- gfx::Size total_size,
+ const gfx::Size& max_texture_size,
+ const gfx::Size& total_size,
bool has_border_texels,
int x_index) {
TilingData tiling(max_texture_size, total_size, has_border_texels);
}
int PosY(
- gfx::Size max_texture_size,
- gfx::Size total_size,
+ const gfx::Size& max_texture_size,
+ const gfx::Size& total_size,
bool has_border_texels,
int y_index) {
TilingData tiling(max_texture_size, total_size, has_border_texels);
}
int SizeX(
- gfx::Size max_texture_size,
- gfx::Size total_size,
+ const gfx::Size& max_texture_size,
+ const gfx::Size& total_size,
bool has_border_texels,
int x_index) {
TilingData tiling(max_texture_size, total_size, has_border_texels);
}
int SizeY(
- gfx::Size max_texture_size,
- gfx::Size total_size,
+ const gfx::Size& max_texture_size,
+ const gfx::Size& total_size,
bool has_border_texels,
int y_index) {
TilingData tiling(max_texture_size, total_size, has_border_texels);