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

Unified Diff: cc/layers/layer_impl_unittest.cc

Issue 139173004: [#3] Pass gfx structs by const ref (gfx::SizeF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT and fixed build error for Android platform! 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/input/page_scale_animation.cc ('k') | cc/output/render_surface_filters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl_unittest.cc
diff --git a/cc/layers/layer_impl_unittest.cc b/cc/layers/layer_impl_unittest.cc
index 9d90c04928e70527b32e3b3e4b328874106cd638..ecedaec74a150c1be553094a9e8d7ebffe83e46e 100644
--- a/cc/layers/layer_impl_unittest.cc
+++ b/cc/layers/layer_impl_unittest.cc
@@ -402,7 +402,7 @@ class ScrollDelegateIgnore : public LayerScrollOffsetDelegate {
}
virtual void SetTotalPageScaleFactor(float page_scale_factor) OVERRIDE {}
- virtual void SetScrollableSize(gfx::SizeF scrollable_size) OVERRIDE {}
+ virtual void SetScrollableSize(const gfx::SizeF& scrollable_size) OVERRIDE {}
private:
gfx::Vector2dF fixed_offset_;
@@ -454,7 +454,7 @@ class ScrollDelegateAccept : public LayerScrollOffsetDelegate {
}
virtual bool IsExternalFlingActive() const OVERRIDE { return false; }
virtual void SetTotalPageScaleFactor(float page_scale_factor) OVERRIDE {}
- virtual void SetScrollableSize(gfx::SizeF scrollable_size) OVERRIDE {}
+ virtual void SetScrollableSize(const gfx::SizeF& scrollable_size) OVERRIDE {}
private:
gfx::Vector2dF current_offset_;
« no previous file with comments | « cc/input/page_scale_animation.cc ('k') | cc/output/render_surface_filters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698