| 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "WebTransformAnimationCurveImpl.h" | 7 #include "web_transform_animation_curve_impl.h" |
| 8 | 8 |
| 9 #include "WebAnimationCurveCommon.h" | |
| 10 #include "cc/keyframed_animation_curve.h" | 9 #include "cc/keyframed_animation_curve.h" |
| 11 #include "cc/timing_function.h" | 10 #include "cc/timing_function.h" |
| 11 #include "web_animation_curve_common.h" |
| 12 | 12 |
| 13 namespace WebKit { | 13 namespace WebKit { |
| 14 | 14 |
| 15 WebTransformAnimationCurve* WebTransformAnimationCurve::create() | 15 WebTransformAnimationCurve* WebTransformAnimationCurve::create() |
| 16 { | 16 { |
| 17 return new WebTransformAnimationCurveImpl(); | 17 return new WebTransformAnimationCurveImpl(); |
| 18 } | 18 } |
| 19 | 19 |
| 20 WebTransformAnimationCurveImpl::WebTransformAnimationCurveImpl() | 20 WebTransformAnimationCurveImpl::WebTransformAnimationCurveImpl() |
| 21 : m_curve(cc::CCKeyframedTransformAnimationCurve::create()) | 21 : m_curve(cc::CCKeyframedTransformAnimationCurve::create()) |
| (...skipping 28 matching lines...) Expand all Loading... |
| 50 { | 50 { |
| 51 return m_curve->getValue(time); | 51 return m_curve->getValue(time); |
| 52 } | 52 } |
| 53 | 53 |
| 54 scoped_ptr<cc::CCAnimationCurve> WebTransformAnimationCurveImpl::cloneToCCAnimat
ionCurve() const | 54 scoped_ptr<cc::CCAnimationCurve> WebTransformAnimationCurveImpl::cloneToCCAnimat
ionCurve() const |
| 55 { | 55 { |
| 56 return m_curve->clone(); | 56 return m_curve->clone(); |
| 57 } | 57 } |
| 58 | 58 |
| 59 } // namespace WebKit | 59 } // namespace WebKit |
| OLD | NEW |