| OLD | NEW |
| 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/animation.h" | 8 #include "cc/animation/animation.h" |
| 9 #include "cc/animation/animation_curve.h" | 9 #include "cc/animation/animation_curve.h" |
| 10 #include "cc/animation/layer_animation_controller.h" | 10 #include "cc/animation/layer_animation_controller.h" |
| 11 #include "cc/animation/layer_animation_value_observer.h" | 11 #include "cc/animation/layer_animation_value_observer.h" |
| 12 #include "cc/animation/layer_animation_value_provider.h" | 12 #include "cc/animation/layer_animation_value_provider.h" |
| 13 #include "cc/output/filter_operations.h" | 13 #include "cc/output/filter_operations.h" |
| 14 #include "cc/test/geometry_test_utils.h" | 14 #include "cc/test/geometry_test_utils.h" |
| 15 | 15 |
| 16 namespace cc { | 16 namespace cc { |
| 17 class AnimationPlayer; |
| 17 class LayerImpl; | 18 class LayerImpl; |
| 18 class Layer; | 19 class Layer; |
| 19 } | 20 } |
| 20 | 21 |
| 21 namespace cc { | 22 namespace cc { |
| 22 | 23 |
| 23 class FakeFloatAnimationCurve : public FloatAnimationCurve { | 24 class FakeFloatAnimationCurve : public FloatAnimationCurve { |
| 24 public: | 25 public: |
| 25 FakeFloatAnimationCurve(); | 26 FakeFloatAnimationCurve(); |
| 26 explicit FakeFloatAnimationCurve(double duration); | 27 explicit FakeFloatAnimationCurve(double duration); |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 int AddAnimatedFilterToLayer(Layer* layer, | 171 int AddAnimatedFilterToLayer(Layer* layer, |
| 171 double duration, | 172 double duration, |
| 172 float start_brightness, | 173 float start_brightness, |
| 173 float end_brightness); | 174 float end_brightness); |
| 174 | 175 |
| 175 int AddAnimatedFilterToLayer(LayerImpl* layer, | 176 int AddAnimatedFilterToLayer(LayerImpl* layer, |
| 176 double duration, | 177 double duration, |
| 177 float start_brightness, | 178 float start_brightness, |
| 178 float end_brightness); | 179 float end_brightness); |
| 179 | 180 |
| 181 int AddAnimatedTransformToPlayer(AnimationPlayer* player, |
| 182 double duration, |
| 183 int delta_x, |
| 184 int delta_y); |
| 185 |
| 186 int AddOpacityTransitionToPlayer(AnimationPlayer* player, |
| 187 double duration, |
| 188 float start_opacity, |
| 189 float end_opacity, |
| 190 bool use_timing_function); |
| 191 |
| 192 int AddAnimatedFilterToPlayer(AnimationPlayer* player, |
| 193 double duration, |
| 194 float start_brightness, |
| 195 float end_brightness); |
| 196 |
| 180 } // namespace cc | 197 } // namespace cc |
| 181 | 198 |
| 182 #endif // CC_TEST_ANIMATION_TEST_COMMON_H_ | 199 #endif // CC_TEST_ANIMATION_TEST_COMMON_H_ |
| OLD | NEW |