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

Unified Diff: cc/input/page_scale_animation.h

Issue 2710593003: cc: Fix const value pattern by replacing it by non-const or reference. (Closed)
Patch Set: Created 3 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
Index: cc/input/page_scale_animation.h
diff --git a/cc/input/page_scale_animation.h b/cc/input/page_scale_animation.h
index 488409894c50c4e71079132f568d5d20de14d74d..d610e2cbd8d923d5db26a707ad7d393e5e71f7b8 100644
--- a/cc/input/page_scale_animation.h
+++ b/cc/input/page_scale_animation.h
@@ -20,11 +20,10 @@ namespace cc {
// Used in the CC to pass around a scale animation that hasn't yet been
// initialized.
struct PendingPageScaleAnimation {
- PendingPageScaleAnimation(
- const gfx::Vector2d _target_offset,
- bool _use_anchor,
- float _scale,
- const base::TimeDelta& _duration)
+ PendingPageScaleAnimation(const gfx::Vector2d& _target_offset,
+ bool _use_anchor,
danakj 2017/02/21 20:20:29 these variable names tho.. can fix them
vmpstr 2017/02/21 20:29:42 Done.
+ float _scale,
+ const base::TimeDelta& _duration)
: target_offset(_target_offset),
use_anchor(_use_anchor),
scale(_scale),

Powered by Google App Engine
This is Rietveld 408576698