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_transform_animation_curve_impl.h" | 5 #include "web_transform_animation_curve_impl.h" |
6 | 6 |
7 #include "cc/keyframed_animation_curve.h" | 7 #include "cc/keyframed_animation_curve.h" |
8 #include "cc/timing_function.h" | 8 #include "cc/timing_function.h" |
9 #include "web_animation_curve_common.h" | 9 #include "web_animation_curve_common.h" |
10 | 10 |
11 namespace WebKit { | 11 namespace WebKit { |
12 | 12 |
13 WebTransformAnimationCurve* WebTransformAnimationCurve::create() | |
14 { | |
15 return new WebTransformAnimationCurveImpl(); | |
16 } | |
17 | |
18 WebTransformAnimationCurveImpl::WebTransformAnimationCurveImpl() | 13 WebTransformAnimationCurveImpl::WebTransformAnimationCurveImpl() |
19 : m_curve(cc::KeyframedTransformAnimationCurve::create()) | 14 : m_curve(cc::KeyframedTransformAnimationCurve::create()) |
20 { | 15 { |
21 } | 16 } |
22 | 17 |
23 WebTransformAnimationCurveImpl::~WebTransformAnimationCurveImpl() | 18 WebTransformAnimationCurveImpl::~WebTransformAnimationCurveImpl() |
24 { | 19 { |
25 } | 20 } |
26 | 21 |
27 WebAnimationCurve::AnimationCurveType WebTransformAnimationCurveImpl::type() con
st | 22 WebAnimationCurve::AnimationCurveType WebTransformAnimationCurveImpl::type() con
st |
(...skipping 20 matching lines...) Expand all Loading... |
48 { | 43 { |
49 return m_curve->getValue(time); | 44 return m_curve->getValue(time); |
50 } | 45 } |
51 | 46 |
52 scoped_ptr<cc::AnimationCurve> WebTransformAnimationCurveImpl::cloneToAnimationC
urve() const | 47 scoped_ptr<cc::AnimationCurve> WebTransformAnimationCurveImpl::cloneToAnimationC
urve() const |
53 { | 48 { |
54 return m_curve->clone(); | 49 return m_curve->clone(); |
55 } | 50 } |
56 | 51 |
57 } // namespace WebKit | 52 } // namespace WebKit |
OLD | NEW |