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

Side by Side Diff: cc/test/animation_test_common.h

Issue 11348371: cc: Move WebCompositorOutputSurface and related classes into cc/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forlanding6 Created 8 years 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
« no previous file with comments | « cc/software_renderer_unittest.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/active_animation.h" 8 #include "cc/active_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"
11 11
12 namespace cc { 12 namespace cc {
13 class LayerImpl; 13 class LayerImpl;
14 class Layer; 14 class Layer;
15 } 15 }
16 16
17 namespace WebKitTests { 17 namespace cc {
18 18
19 class FakeFloatAnimationCurve : public cc::FloatAnimationCurve { 19 class FakeFloatAnimationCurve : public cc::FloatAnimationCurve {
20 public: 20 public:
21 FakeFloatAnimationCurve(); 21 FakeFloatAnimationCurve();
22 explicit FakeFloatAnimationCurve(double duration); 22 explicit FakeFloatAnimationCurve(double duration);
23 virtual ~FakeFloatAnimationCurve(); 23 virtual ~FakeFloatAnimationCurve();
24 24
25 virtual double duration() const OVERRIDE; 25 virtual double duration() const OVERRIDE;
26 virtual float getValue(double now) const OVERRIDE; 26 virtual float getValue(double now) const OVERRIDE;
27 virtual scoped_ptr<cc::AnimationCurve> clone() const OVERRIDE; 27 virtual scoped_ptr<cc::AnimationCurve> clone() const OVERRIDE;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 int addOpacityTransitionToController(cc::LayerAnimationController&, double durat ion, float startOpacity, float endOpacity, bool useTimingFunction); 63 int addOpacityTransitionToController(cc::LayerAnimationController&, double durat ion, float startOpacity, float endOpacity, bool useTimingFunction);
64 int addAnimatedTransformToController(cc::LayerAnimationController&, double durat ion, int deltaX, int deltaY); 64 int addAnimatedTransformToController(cc::LayerAnimationController&, double durat ion, int deltaX, int deltaY);
65 65
66 int addOpacityTransitionToLayer(cc::Layer&, double duration, float startOpacity, float endOpacity, bool useTimingFunction); 66 int addOpacityTransitionToLayer(cc::Layer&, double duration, float startOpacity, float endOpacity, bool useTimingFunction);
67 int addOpacityTransitionToLayer(cc::LayerImpl&, double duration, float startOpac ity, float endOpacity, bool useTimingFunction); 67 int addOpacityTransitionToLayer(cc::LayerImpl&, double duration, float startOpac ity, float endOpacity, bool useTimingFunction);
68 68
69 int addAnimatedTransformToLayer(cc::Layer&, double duration, int deltaX, int del taY); 69 int addAnimatedTransformToLayer(cc::Layer&, double duration, int deltaX, int del taY);
70 int addAnimatedTransformToLayer(cc::LayerImpl&, double duration, int deltaX, int deltaY); 70 int addAnimatedTransformToLayer(cc::LayerImpl&, double duration, int deltaX, int deltaY);
71 71
72 } // namespace WebKitTests 72 } // namespace cc
73 73
74 #endif // CC_TEST_ANIMATION_TEST_COMMON_H_ 74 #endif // CC_TEST_ANIMATION_TEST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/software_renderer_unittest.cc ('k') | cc/test/animation_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698