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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 float opacity_; | 62 float opacity_; |
63 float brightness_; | 63 float brightness_; |
64 gfx::ScrollOffset scroll_offset_; | 64 gfx::ScrollOffset scroll_offset_; |
65 | 65 |
66 bool mutated_properties_[Animation::LAST_TARGET_PROPERTY + 1]; | 66 bool mutated_properties_[Animation::LAST_TARGET_PROPERTY + 1]; |
67 }; | 67 }; |
68 | 68 |
69 class TestHostClient : public MutatorHostClient { | 69 class TestHostClient : public MutatorHostClient { |
70 public: | 70 public: |
71 explicit TestHostClient(ThreadInstance thread_instance); | 71 TestHostClient(); |
72 ~TestHostClient(); | 72 ~TestHostClient(); |
73 | 73 |
74 void ClearMutatedProperties(); | 74 void ClearMutatedProperties(); |
75 | 75 |
76 bool IsLayerInTree(int layer_id, LayerTreeType tree_type) const override; | 76 bool IsLayerInTree(int layer_id, LayerTreeType tree_type) const override; |
77 | 77 |
78 void SetMutatorsNeedCommit() override; | 78 void SetMutatorsNeedCommit() override; |
79 | 79 |
80 void SetLayerFilterMutated(int layer_id, | 80 void SetLayerFilterMutated(int layer_id, |
81 LayerTreeType tree_type, | 81 LayerTreeType tree_type, |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 scoped_refptr<AnimationTimeline> timeline_; | 181 scoped_refptr<AnimationTimeline> timeline_; |
182 scoped_refptr<AnimationPlayer> player_; | 182 scoped_refptr<AnimationPlayer> player_; |
183 | 183 |
184 scoped_refptr<AnimationTimeline> timeline_impl_; | 184 scoped_refptr<AnimationTimeline> timeline_impl_; |
185 scoped_refptr<AnimationPlayer> player_impl_; | 185 scoped_refptr<AnimationPlayer> player_impl_; |
186 }; | 186 }; |
187 | 187 |
188 } // namespace cc | 188 } // namespace cc |
189 | 189 |
190 #endif // CC_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_ | 190 #endif // CC_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_ |
OLD | NEW |