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 #include "cc/test/animation_test_common.h" | 5 #include "cc/test/animation_test_common.h" |
6 | 6 |
7 #include "cc/animation/animation_id_provider.h" | 7 #include "cc/animation/animation_id_provider.h" |
8 #include "cc/animation/keyframed_animation_curve.h" | 8 #include "cc/animation/keyframed_animation_curve.h" |
9 #include "cc/animation/layer_animation_controller.h" | 9 #include "cc/animation/layer_animation_controller.h" |
10 #include "cc/animation/transform_operations.h" | 10 #include "cc/animation/transform_operations.h" |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 void FakeLayerAnimationValueObserver::OnOpacityAnimated(float opacity) { | 193 void FakeLayerAnimationValueObserver::OnOpacityAnimated(float opacity) { |
194 opacity_ = opacity; | 194 opacity_ = opacity; |
195 } | 195 } |
196 | 196 |
197 void FakeLayerAnimationValueObserver::OnTransformAnimated( | 197 void FakeLayerAnimationValueObserver::OnTransformAnimated( |
198 const gfx::Transform& transform) { | 198 const gfx::Transform& transform) { |
199 transform_ = transform; | 199 transform_ = transform; |
200 } | 200 } |
201 | 201 |
202 void FakeLayerAnimationValueObserver::OnScrollOffsetAnimated( | 202 void FakeLayerAnimationValueObserver::OnScrollOffsetAnimated( |
203 gfx::Vector2dF scroll_offset) { | 203 const gfx::Vector2dF& scroll_offset) { |
204 scroll_offset_ = scroll_offset; | 204 scroll_offset_ = scroll_offset; |
205 } | 205 } |
206 | 206 |
207 void FakeLayerAnimationValueObserver::OnAnimationWaitingForDeletion() { | 207 void FakeLayerAnimationValueObserver::OnAnimationWaitingForDeletion() { |
208 animation_waiting_for_deletion_ = true; | 208 animation_waiting_for_deletion_ = true; |
209 } | 209 } |
210 | 210 |
211 bool FakeLayerAnimationValueObserver::IsActive() const { | 211 bool FakeLayerAnimationValueObserver::IsActive() const { |
212 return true; | 212 return true; |
213 } | 213 } |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 double duration, | 308 double duration, |
309 float start_brightness, | 309 float start_brightness, |
310 float end_brightness) { | 310 float end_brightness) { |
311 return AddAnimatedFilter(layer->layer_animation_controller(), | 311 return AddAnimatedFilter(layer->layer_animation_controller(), |
312 duration, | 312 duration, |
313 start_brightness, | 313 start_brightness, |
314 end_brightness); | 314 end_brightness); |
315 } | 315 } |
316 | 316 |
317 } // namespace cc | 317 } // namespace cc |
OLD | NEW |