| 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 "base/containers/scoped_ptr_hash_map.h" | 8 #include "base/containers/scoped_ptr_hash_map.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "cc/animation/animation.h" | 10 #include "cc/animation/animation.h" |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 void GetImplTimelineAndPlayerByID(); | 167 void GetImplTimelineAndPlayerByID(); |
| 168 | 168 |
| 169 void ReleaseRefPtrs(); | 169 void ReleaseRefPtrs(); |
| 170 | 170 |
| 171 void AnimateLayersTransferEvents(base::TimeTicks time, | 171 void AnimateLayersTransferEvents(base::TimeTicks time, |
| 172 unsigned expect_events); | 172 unsigned expect_events); |
| 173 | 173 |
| 174 AnimationPlayer* GetPlayerForLayerId(int layer_id); | 174 AnimationPlayer* GetPlayerForLayerId(int layer_id); |
| 175 AnimationPlayer* GetImplPlayerForLayerId(int layer_id); | 175 AnimationPlayer* GetImplPlayerForLayerId(int layer_id); |
| 176 | 176 |
| 177 int NextTestLayerId(); |
| 178 |
| 177 TestHostClient client_; | 179 TestHostClient client_; |
| 178 TestHostClient client_impl_; | 180 TestHostClient client_impl_; |
| 179 | 181 |
| 180 AnimationHost* host_; | 182 AnimationHost* host_; |
| 181 AnimationHost* host_impl_; | 183 AnimationHost* host_impl_; |
| 182 | 184 |
| 183 const int timeline_id_; | 185 const int timeline_id_; |
| 184 const int player_id_; | 186 const int player_id_; |
| 185 const int layer_id_; | 187 int layer_id_; |
| 188 |
| 189 int next_test_layer_id_; |
| 186 | 190 |
| 187 scoped_refptr<AnimationTimeline> timeline_; | 191 scoped_refptr<AnimationTimeline> timeline_; |
| 188 scoped_refptr<AnimationPlayer> player_; | 192 scoped_refptr<AnimationPlayer> player_; |
| 189 | 193 |
| 190 scoped_refptr<AnimationTimeline> timeline_impl_; | 194 scoped_refptr<AnimationTimeline> timeline_impl_; |
| 191 scoped_refptr<AnimationPlayer> player_impl_; | 195 scoped_refptr<AnimationPlayer> player_impl_; |
| 192 }; | 196 }; |
| 193 | 197 |
| 194 } // namespace cc | 198 } // namespace cc |
| 195 | 199 |
| 196 #endif // CC_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_ | 200 #endif // CC_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_ |
| OLD | NEW |