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

Side by Side Diff: cc/test/animation_test_common.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/layer_animation_controller.cc ('k') | cc/test/animation_test_common.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_TEST_ANIMATION_TEST_COMMON_H_ 5 #ifndef CC_TEST_ANIMATION_TEST_COMMON_H_
6 #define CC_TEST_ANIMATION_TEST_COMMON_H_ 6 #define CC_TEST_ANIMATION_TEST_COMMON_H_
7 7
8 #include "cc/animation.h" 8 #include "cc/animation.h"
9 #include "cc/animation_curve.h" 9 #include "cc/animation_curve.h"
10 #include "cc/layer_animation_controller.h" 10 #include "cc/layer_animation_controller.h"
(...skipping 19 matching lines...) Expand all
30 private: 30 private:
31 double m_duration; 31 double m_duration;
32 }; 32 };
33 33
34 class FakeTransformTransition : public cc::TransformAnimationCurve { 34 class FakeTransformTransition : public cc::TransformAnimationCurve {
35 public: 35 public:
36 FakeTransformTransition(double duration); 36 FakeTransformTransition(double duration);
37 virtual ~FakeTransformTransition(); 37 virtual ~FakeTransformTransition();
38 38
39 virtual double duration() const OVERRIDE; 39 virtual double duration() const OVERRIDE;
40 virtual WebKit::WebTransformationMatrix getValue(double time) const OVERRIDE ; 40 virtual gfx::Transform getValue(double time) const OVERRIDE;
41 41
42 virtual scoped_ptr<cc::AnimationCurve> clone() const OVERRIDE; 42 virtual scoped_ptr<cc::AnimationCurve> clone() const OVERRIDE;
43 43
44 private: 44 private:
45 double m_duration; 45 double m_duration;
46 }; 46 };
47 47
48 class FakeFloatTransition : public cc::FloatAnimationCurve { 48 class FakeFloatTransition : public cc::FloatAnimationCurve {
49 public: 49 public:
50 FakeFloatTransition(double duration, float from, float to); 50 FakeFloatTransition(double duration, float from, float to);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 int addOpacityTransitionToLayer(cc::Layer&, double duration, float startOpacity, float endOpacity, bool useTimingFunction); 85 int addOpacityTransitionToLayer(cc::Layer&, double duration, float startOpacity, float endOpacity, bool useTimingFunction);
86 int addOpacityTransitionToLayer(cc::LayerImpl&, double duration, float startOpac ity, float endOpacity, bool useTimingFunction); 86 int addOpacityTransitionToLayer(cc::LayerImpl&, double duration, float startOpac ity, float endOpacity, bool useTimingFunction);
87 87
88 int addAnimatedTransformToLayer(cc::Layer&, double duration, int deltaX, int del taY); 88 int addAnimatedTransformToLayer(cc::Layer&, double duration, int deltaX, int del taY);
89 int addAnimatedTransformToLayer(cc::LayerImpl&, double duration, int deltaX, int deltaY); 89 int addAnimatedTransformToLayer(cc::LayerImpl&, double duration, int deltaX, int deltaY);
90 90
91 } // namespace cc 91 } // namespace cc
92 92
93 #endif // CC_TEST_ANIMATION_TEST_COMMON_H_ 93 #endif // CC_TEST_ANIMATION_TEST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/layer_animation_controller.cc ('k') | cc/test/animation_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698