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

Unified Diff: cc/base/tiling_data.cc

Issue 145313006: [#7] Pass gfx structs by const ref (gfx::Size) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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/base/tiling_data.h ('k') | cc/base/tiling_data_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/tiling_data.cc
diff --git a/cc/base/tiling_data.cc b/cc/base/tiling_data.cc
index 9cdf02765f754fbb46ecbae5d0729a97d5babd02..8b3ba62aecd6d5f3beeee29a69ee129e888e023a 100644
--- a/cc/base/tiling_data.cc
+++ b/cc/base/tiling_data.cc
@@ -29,8 +29,8 @@ TilingData::TilingData()
}
TilingData::TilingData(
- gfx::Size max_texture_size,
- gfx::Size total_size,
+ const gfx::Size& max_texture_size,
+ const gfx::Size& total_size,
bool has_border_texels)
: max_texture_size_(max_texture_size),
total_size_(total_size),
@@ -39,8 +39,8 @@ TilingData::TilingData(
}
TilingData::TilingData(
- gfx::Size max_texture_size,
- gfx::Size total_size,
+ const gfx::Size& max_texture_size,
+ const gfx::Size& total_size,
int border_texels)
: max_texture_size_(max_texture_size),
total_size_(total_size),
@@ -48,12 +48,12 @@ TilingData::TilingData(
RecomputeNumTiles();
}
-void TilingData::SetTotalSize(gfx::Size total_size) {
+void TilingData::SetTotalSize(const gfx::Size& total_size) {
total_size_ = total_size;
RecomputeNumTiles();
}
-void TilingData::SetMaxTextureSize(gfx::Size max_texture_size) {
+void TilingData::SetMaxTextureSize(const gfx::Size& max_texture_size) {
max_texture_size_ = max_texture_size;
RecomputeNumTiles();
}
« no previous file with comments | « cc/base/tiling_data.h ('k') | cc/base/tiling_data_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698