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

Side by Side Diff: webkit/compositor_bindings/WebTransformAnimationCurveImpl.cpp

Issue 11142031: Remove WTF dependencies from webkit_compositor_bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "WebTransformAnimationCurveImpl.h"
8 8
9 #include "CCKeyframedAnimationCurve.h"
10 #include "CCTimingFunction.h"
11 #include "WebAnimationCurveCommon.h" 9 #include "WebAnimationCurveCommon.h"
12 #include <wtf/OwnPtr.h> 10 #include "cc/keyframed_animation_curve.h"
13 #include <wtf/PassOwnPtr.h> 11 #include "cc/timing_function.h"
14 12
15 namespace WebKit { 13 namespace WebKit {
16 14
17 WebTransformAnimationCurve* WebTransformAnimationCurve::create() 15 WebTransformAnimationCurve* WebTransformAnimationCurve::create()
18 { 16 {
19 return new WebTransformAnimationCurveImpl(); 17 return new WebTransformAnimationCurveImpl();
20 } 18 }
21 19
22 WebTransformAnimationCurveImpl::WebTransformAnimationCurveImpl() 20 WebTransformAnimationCurveImpl::WebTransformAnimationCurveImpl()
23 : m_curve(cc::CCKeyframedTransformAnimationCurve::create()) 21 : m_curve(cc::CCKeyframedTransformAnimationCurve::create())
(...skipping 28 matching lines...) Expand all
52 { 50 {
53 return m_curve->getValue(time); 51 return m_curve->getValue(time);
54 } 52 }
55 53
56 scoped_ptr<cc::CCAnimationCurve> WebTransformAnimationCurveImpl::cloneToCCAnimat ionCurve() const 54 scoped_ptr<cc::CCAnimationCurve> WebTransformAnimationCurveImpl::cloneToCCAnimat ionCurve() const
57 { 55 {
58 return m_curve->clone(); 56 return m_curve->clone();
59 } 57 }
60 58
61 } // namespace WebKit 59 } // namespace WebKit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698