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

Side by Side Diff: webkit/compositor_bindings/web_float_animation_curve_impl.cc

Issue 11231017: Remove ::create factory functions from objects created via WebCompositorSupport (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes Created 8 years, 1 month 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 "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
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
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_external_texture_layer_impl.cc ('k') | webkit/compositor_bindings/web_image_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698