Index: cc/animation/scroll_offset_animation_curve.h |
diff --git a/cc/animation/scroll_offset_animation_curve.h b/cc/animation/scroll_offset_animation_curve.h |
index ba4661518e89017cf7a9e9c894933ed071b2d8f2..0d45cf2f7b83e1e493afd3a79ea80f4a76949fb1 100644 |
--- a/cc/animation/scroll_offset_animation_curve.h |
+++ b/cc/animation/scroll_offset_animation_curve.h |
@@ -16,12 +16,12 @@ class TimingFunction; |
class CC_EXPORT ScrollOffsetAnimationCurve : public AnimationCurve { |
public: |
static scoped_ptr<ScrollOffsetAnimationCurve> Create( |
- gfx::Vector2dF target_value, |
+ const gfx::Vector2dF& target_value, |
scoped_ptr<TimingFunction> timing_function); |
virtual ~ScrollOffsetAnimationCurve(); |
- void SetInitialValue(gfx::Vector2dF initial_value); |
+ void SetInitialValue(const gfx::Vector2dF& initial_value); |
gfx::Vector2dF GetValue(double t) const; |
// AnimationCurve implementation |
@@ -30,7 +30,7 @@ class CC_EXPORT ScrollOffsetAnimationCurve : public AnimationCurve { |
virtual scoped_ptr<AnimationCurve> Clone() const OVERRIDE; |
private: |
- ScrollOffsetAnimationCurve(gfx::Vector2dF target_value, |
+ ScrollOffsetAnimationCurve(const gfx::Vector2dF& target_value, |
scoped_ptr <TimingFunction> timing_function); |
gfx::Vector2dF initial_value_; |