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

Unified Diff: cc/base/region.cc

Issue 185653013: [#8] Pass gfx::Point by const ref. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed build errors on other platforms Created 6 years, 10 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/region.h ('k') | cc/input/input_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/region.cc
diff --git a/cc/base/region.cc b/cc/base/region.cc
index 4b89f999c52c7b1902be520ad9b595f522a63670..906bc6e3c9d1e6f0ccce6445e078015e4754b78a 100644
--- a/cc/base/region.cc
+++ b/cc/base/region.cc
@@ -47,7 +47,7 @@ int Region::GetRegionComplexity() const {
return skregion_.computeRegionComplexity();
}
-bool Region::Contains(gfx::Point point) const {
+bool Region::Contains(const gfx::Point& point) const {
return skregion_.contains(point.x(), point.y());
}
« no previous file with comments | « cc/base/region.h ('k') | cc/input/input_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698