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

Side by Side Diff: webkit/compositor_bindings/web_transform_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_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
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
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_solid_color_layer_impl.cc ('k') | webkit/compositor_bindings/web_video_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698