| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "web_float_animation_curve_impl.h" | 5 #include "web_float_animation_curve_impl.h" |
| 6 | 6 |
| 7 #include "cc/animation_curve.h" | 7 #include "cc/animation_curve.h" |
| 8 #include "cc/keyframed_animation_curve.h" | 8 #include "cc/keyframed_animation_curve.h" |
| 9 #include "cc/timing_function.h" | 9 #include "cc/timing_function.h" |
| 10 #include "web_animation_curve_common.h" | 10 #include "web_animation_curve_common.h" |
| 11 | 11 |
| 12 namespace WebKit { | 12 namespace WebKit { |
| 13 | 13 |
| 14 WebFloatAnimationCurve* WebFloatAnimationCurve::create() | |
| 15 { | |
| 16 return new WebFloatAnimationCurveImpl(); | |
| 17 } | |
| 18 | |
| 19 WebFloatAnimationCurveImpl::WebFloatAnimationCurveImpl() | 14 WebFloatAnimationCurveImpl::WebFloatAnimationCurveImpl() |
| 20 : m_curve(cc::KeyframedFloatAnimationCurve::create()) | 15 : m_curve(cc::KeyframedFloatAnimationCurve::create()) |
| 21 { | 16 { |
| 22 } | 17 } |
| 23 | 18 |
| 24 WebFloatAnimationCurveImpl::~WebFloatAnimationCurveImpl() | 19 WebFloatAnimationCurveImpl::~WebFloatAnimationCurveImpl() |
| 25 { | 20 { |
| 26 } | 21 } |
| 27 | 22 |
| 28 WebAnimationCurve::AnimationCurveType WebFloatAnimationCurveImpl::type() const | 23 WebAnimationCurve::AnimationCurveType WebFloatAnimationCurveImpl::type() const |
| (...skipping 20 matching lines...) Expand all Loading... |
| 49 { | 44 { |
| 50 return m_curve->getValue(time); | 45 return m_curve->getValue(time); |
| 51 } | 46 } |
| 52 | 47 |
| 53 scoped_ptr<cc::AnimationCurve> WebFloatAnimationCurveImpl::cloneToAnimationCurve
() const | 48 scoped_ptr<cc::AnimationCurve> WebFloatAnimationCurveImpl::cloneToAnimationCurve
() const |
| 54 { | 49 { |
| 55 return m_curve->clone(); | 50 return m_curve->clone(); |
| 56 } | 51 } |
| 57 | 52 |
| 58 } // namespace WebKit | 53 } // namespace WebKit |
| OLD | NEW |