Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2067)

Unified Diff: cc/resources/layer_tiling_data.h

Issue 142863008: Revert of [#7] Pass gfx structs by const ref (gfx::Size) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/bitmap_content_layer_updater.cc ('k') | cc/resources/layer_tiling_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/layer_tiling_data.h
diff --git a/cc/resources/layer_tiling_data.h b/cc/resources/layer_tiling_data.h
index 94644d051b15f732e28d520efe4f5785404b6b22..500c753f1e4d3cc160781f6a1173ccfd6547ebaf 100644
--- a/cc/resources/layer_tiling_data.h
+++ b/cc/resources/layer_tiling_data.h
@@ -27,7 +27,7 @@
~LayerTilingData();
- static scoped_ptr<LayerTilingData> Create(const gfx::Size& tile_size,
+ static scoped_ptr<LayerTilingData> Create(gfx::Size tile_size,
BorderTexelOption option);
bool has_empty_bounds() const { return tiling_data_.has_empty_bounds(); }
@@ -41,7 +41,7 @@
}
// Change the tile size. This may invalidate all the existing tiles.
- void SetTileSize(const gfx::Size& size);
+ void SetTileSize(gfx::Size size);
gfx::Size tile_size() const;
// Change the border texel setting. This may invalidate all existing tiles.
void SetBorderTexelOption(BorderTexelOption option);
@@ -81,7 +81,7 @@
Tile* TileAt(int i, int j) const;
const TileMap& tiles() const { return tiles_; }
- void SetBounds(const gfx::Size& size);
+ void SetBounds(gfx::Size size);
gfx::Size bounds() const { return tiling_data_.total_size(); }
void ContentRectToTileIndices(const gfx::Rect& rect,
@@ -96,7 +96,7 @@
void reset() { tiles_.clear(); }
protected:
- LayerTilingData(const gfx::Size& tile_size, BorderTexelOption option);
+ LayerTilingData(gfx::Size tile_size, BorderTexelOption option);
TileMap tiles_;
TilingData tiling_data_;
« no previous file with comments | « cc/resources/bitmap_content_layer_updater.cc ('k') | cc/resources/layer_tiling_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698