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

Unified Diff: cc/base/region.h

Issue 93663004: [#2] Pass gfx structs by const ref (gfx::Rect, gfx::RectF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years 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
« cc/PRESUBMIT.py ('K') | « cc/PRESUBMIT.py ('k') | cc/base/region.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/region.h
diff --git a/cc/base/region.h b/cc/base/region.h
index 26c1d2b19900a9280af6159bfd85e997321d9ac7..2cf2f560807eb3fe1a4f03770f2f6ccb2a6af26d 100644
--- a/cc/base/region.h
+++ b/cc/base/region.h
@@ -24,10 +24,10 @@ class CC_EXPORT Region {
public:
Region();
Region(const Region& region);
- Region(gfx::Rect rect); // NOLINT(runtime/explicit)
+ Region(const gfx::Rect& rect); // NOLINT(runtime/explicit)
~Region();
- const Region& operator=(gfx::Rect rect);
+ const Region& operator=(const gfx::Rect& rect);
const Region& operator=(const Region& region);
void Swap(Region* region);
@@ -36,10 +36,10 @@ class CC_EXPORT Region {
int GetRegionComplexity() const;
bool Contains(gfx::Point point) const;
- bool Contains(gfx::Rect rect) const;
+ bool Contains(const gfx::Rect& rect) const;
bool Contains(const Region& region) const;
- bool Intersects(gfx::Rect rect) const;
+ bool Intersects(const gfx::Rect& rect) const;
bool Intersects(const Region& region) const;
void Subtract(gfx::Rect rect);
« cc/PRESUBMIT.py ('K') | « cc/PRESUBMIT.py ('k') | cc/base/region.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698