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

Side by Side Diff: cc/keyframed_animation_curve.h

Issue 12035029: Finish migrating cc/ from WebKit::WebTransformationMatrix to gfx::Transform (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix nits Created 7 years, 11 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
« no previous file with comments | « cc/animation_curve.h ('k') | cc/keyframed_animation_curve.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CC_KEYFRAMED_ANIMATION_CURVE_H_ 5 #ifndef CC_KEYFRAMED_ANIMATION_CURVE_H_
6 #define CC_KEYFRAMED_ANIMATION_CURVE_H_ 6 #define CC_KEYFRAMED_ANIMATION_CURVE_H_
7 7
8 #include "cc/animation_curve.h" 8 #include "cc/animation_curve.h"
9 #include "cc/cc_export.h" 9 #include "cc/cc_export.h"
10 #include "cc/scoped_ptr_vector.h" 10 #include "cc/scoped_ptr_vector.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 virtual ~KeyframedTransformAnimationCurve(); 93 virtual ~KeyframedTransformAnimationCurve();
94 94
95 void addKeyframe(scoped_ptr<TransformKeyframe>); 95 void addKeyframe(scoped_ptr<TransformKeyframe>);
96 96
97 // AnimationCurve implementation 97 // AnimationCurve implementation
98 virtual double duration() const OVERRIDE; 98 virtual double duration() const OVERRIDE;
99 virtual scoped_ptr<AnimationCurve> clone() const OVERRIDE; 99 virtual scoped_ptr<AnimationCurve> clone() const OVERRIDE;
100 100
101 // TransformAnimationCurve implementation 101 // TransformAnimationCurve implementation
102 virtual WebKit::WebTransformationMatrix getValue(double t) const OVERRIDE; 102 virtual gfx::Transform getValue(double t) const OVERRIDE;
103 103
104 private: 104 private:
105 KeyframedTransformAnimationCurve(); 105 KeyframedTransformAnimationCurve();
106 106
107 // Always sorted in order of increasing time. No two keyframes have the 107 // Always sorted in order of increasing time. No two keyframes have the
108 // same time. 108 // same time.
109 ScopedPtrVector<TransformKeyframe> m_keyframes; 109 ScopedPtrVector<TransformKeyframe> m_keyframes;
110 110
111 DISALLOW_COPY_AND_ASSIGN(KeyframedTransformAnimationCurve); 111 DISALLOW_COPY_AND_ASSIGN(KeyframedTransformAnimationCurve);
112 }; 112 };
113 113
114 } // namespace cc 114 } // namespace cc
115 115
116 #endif // CC_KEYFRAMED_ANIMATION_CURVE_H_ 116 #endif // CC_KEYFRAMED_ANIMATION_CURVE_H_
OLDNEW
« no previous file with comments | « cc/animation_curve.h ('k') | cc/keyframed_animation_curve.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698