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

Unified Diff: cc/base/tiling_data.h

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/math_util.cc ('k') | cc/base/tiling_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/tiling_data.h
diff --git a/cc/base/tiling_data.h b/cc/base/tiling_data.h
index 96e6ae080384bb1472f2ecc56d09ef6348b76f07..9540c3896b1e3999522f5e34a626ad95cb327b27 100644
--- a/cc/base/tiling_data.h
+++ b/cc/base/tiling_data.h
@@ -23,19 +23,19 @@ class CC_EXPORT TilingData {
public:
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);
TilingData(
- gfx::Size max_texture_size,
- gfx::Size total_size,
+ const gfx::Size& max_texture_size,
+ const gfx::Size& total_size,
int border_texels);
gfx::Size total_size() const { return total_size_; }
- void SetTotalSize(const gfx::Size total_size);
+ void SetTotalSize(const gfx::Size& total_size);
gfx::Size max_texture_size() const { return max_texture_size_; }
- void SetMaxTextureSize(gfx::Size max_texture_size);
+ void SetMaxTextureSize(const gfx::Size& max_texture_size);
int border_texels() const { return border_texels_; }
void SetHasBorderTexels(bool has_border_texels);
« no previous file with comments | « cc/base/math_util.cc ('k') | cc/base/tiling_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698