OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_TIMELINES_TEST_COMMON_H_ | 5 #ifndef CC_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_ |
6 #define CC_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_ | 6 #define CC_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <unordered_map> | 9 #include <unordered_map> |
10 | 10 |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 void ReleaseRefPtrs(); | 287 void ReleaseRefPtrs(); |
288 | 288 |
289 void AnimateLayersTransferEvents(base::TimeTicks time, | 289 void AnimateLayersTransferEvents(base::TimeTicks time, |
290 unsigned expect_events); | 290 unsigned expect_events); |
291 | 291 |
292 AnimationPlayer* GetPlayerForElementId(ElementId element_id); | 292 AnimationPlayer* GetPlayerForElementId(ElementId element_id); |
293 AnimationPlayer* GetImplPlayerForLayerId(ElementId element_id); | 293 AnimationPlayer* GetImplPlayerForLayerId(ElementId element_id); |
294 | 294 |
295 int NextTestLayerId(); | 295 int NextTestLayerId(); |
296 | 296 |
| 297 bool CheckPlayerTimelineNeedsPushProperties(bool needs_push_properties) const; |
| 298 |
297 TestHostClient client_; | 299 TestHostClient client_; |
298 TestHostClient client_impl_; | 300 TestHostClient client_impl_; |
299 | 301 |
300 AnimationHost* host_; | 302 AnimationHost* host_; |
301 AnimationHost* host_impl_; | 303 AnimationHost* host_impl_; |
302 | 304 |
303 const int timeline_id_; | 305 const int timeline_id_; |
304 const int player_id_; | 306 const int player_id_; |
305 ElementId element_id_; | 307 ElementId element_id_; |
306 | 308 |
307 int next_test_layer_id_; | 309 int next_test_layer_id_; |
308 | 310 |
309 scoped_refptr<AnimationTimeline> timeline_; | 311 scoped_refptr<AnimationTimeline> timeline_; |
310 scoped_refptr<AnimationPlayer> player_; | 312 scoped_refptr<AnimationPlayer> player_; |
311 | 313 |
312 scoped_refptr<AnimationTimeline> timeline_impl_; | 314 scoped_refptr<AnimationTimeline> timeline_impl_; |
313 scoped_refptr<AnimationPlayer> player_impl_; | 315 scoped_refptr<AnimationPlayer> player_impl_; |
314 }; | 316 }; |
315 | 317 |
316 } // namespace cc | 318 } // namespace cc |
317 | 319 |
318 #endif // CC_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_ | 320 #endif // CC_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_ |
OLD | NEW |