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

Unified Diff: cc/base/invalidation_region.cc

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: Rebase to ToT, fix builds on non-linux platforms! 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/invalidation_region.h ('k') | cc/base/math_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/invalidation_region.cc
diff --git a/cc/base/invalidation_region.cc b/cc/base/invalidation_region.cc
index 6a8f97f78fe14e7cdc40b63d62549cea305e7197..5fbca8d1d180d71c027505595b65a0c46cfa9ff7 100644
--- a/cc/base/invalidation_region.cc
+++ b/cc/base/invalidation_region.cc
@@ -26,7 +26,7 @@ void InvalidationRegion::Clear() {
region_.Clear();
}
-void InvalidationRegion::Union(gfx::Rect rect) {
+void InvalidationRegion::Union(const gfx::Rect& rect) {
region_.Union(rect);
SimplifyIfNeeded();
}
« no previous file with comments | « cc/base/invalidation_region.h ('k') | cc/base/math_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698