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

Unified Diff: cc/input/page_scale_animation.h

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/layer_scroll_offset_delegate.h ('k') | cc/input/page_scale_animation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input/page_scale_animation.h
diff --git a/cc/input/page_scale_animation.h b/cc/input/page_scale_animation.h
index 4c30cdcbc523e0e5cb740ab43448aa50de5d0ca9..f2e315d0325fbdc1aa22d4e78cdafaf0eacb9553 100644
--- a/cc/input/page_scale_animation.h
+++ b/cc/input/page_scale_animation.h
@@ -27,8 +27,8 @@ class PageScaleAnimation {
static scoped_ptr<PageScaleAnimation> Create(
gfx::Vector2dF start_scroll_offset,
float start_page_scale_factor,
- gfx::SizeF viewport_size,
- gfx::SizeF root_layer_size,
+ const gfx::SizeF& viewport_size,
+ const gfx::SizeF& root_layer_size,
scoped_ptr<TimingFunction> timing_function);
~PageScaleAnimation();
@@ -71,8 +71,8 @@ class PageScaleAnimation {
protected:
PageScaleAnimation(gfx::Vector2dF start_scroll_offset,
float start_page_scale_factor,
- gfx::SizeF viewport_size,
- gfx::SizeF root_layer_size,
+ const gfx::SizeF& viewport_size,
+ const gfx::SizeF& root_layer_size,
scoped_ptr<TimingFunction> timing_function);
private:
« no previous file with comments | « cc/input/layer_scroll_offset_delegate.h ('k') | cc/input/page_scale_animation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698