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_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ | 5 #ifndef CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ |
6 #define CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ | 6 #define CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ |
7 | 7 |
| 8 #include <unordered_set> |
8 #include <vector> | 9 #include <vector> |
9 | 10 |
10 #include "base/containers/hash_tables.h" | |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
16 #include "cc/animation/animation_events.h" | 16 #include "cc/animation/animation_events.h" |
17 #include "cc/animation/layer_animation_event_observer.h" | 17 #include "cc/animation/layer_animation_event_observer.h" |
18 #include "cc/base/cc_export.h" | 18 #include "cc/base/cc_export.h" |
19 #include "ui/gfx/geometry/scroll_offset.h" | 19 #include "ui/gfx/geometry/scroll_offset.h" |
20 #include "ui/gfx/transform.h" | 20 #include "ui/gfx/transform.h" |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 return needs_to_start_animations_; | 171 return needs_to_start_animations_; |
172 } | 172 } |
173 | 173 |
174 protected: | 174 protected: |
175 friend class base::RefCounted<LayerAnimationController>; | 175 friend class base::RefCounted<LayerAnimationController>; |
176 | 176 |
177 explicit LayerAnimationController(int id); | 177 explicit LayerAnimationController(int id); |
178 virtual ~LayerAnimationController(); | 178 virtual ~LayerAnimationController(); |
179 | 179 |
180 private: | 180 private: |
181 typedef base::hash_set<int> TargetProperties; | 181 typedef std::unordered_set<int> TargetProperties; |
182 | 182 |
183 void PushNewAnimationsToImplThread( | 183 void PushNewAnimationsToImplThread( |
184 LayerAnimationController* controller_impl) const; | 184 LayerAnimationController* controller_impl) const; |
185 void MarkAbortedAnimationsForDeletion( | 185 void MarkAbortedAnimationsForDeletion( |
186 LayerAnimationController* controller_impl) const; | 186 LayerAnimationController* controller_impl) const; |
187 void RemoveAnimationsCompletedOnMainThread( | 187 void RemoveAnimationsCompletedOnMainThread( |
188 LayerAnimationController* controller_impl) const; | 188 LayerAnimationController* controller_impl) const; |
189 void PushPropertiesToImplThread(LayerAnimationController* controller_impl); | 189 void PushPropertiesToImplThread(LayerAnimationController* controller_impl); |
190 | 190 |
191 void StartAnimations(base::TimeTicks monotonic_time); | 191 void StartAnimations(base::TimeTicks monotonic_time); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 | 250 |
251 bool potentially_animating_transform_for_active_observers_; | 251 bool potentially_animating_transform_for_active_observers_; |
252 bool potentially_animating_transform_for_pending_observers_; | 252 bool potentially_animating_transform_for_pending_observers_; |
253 | 253 |
254 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); | 254 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); |
255 }; | 255 }; |
256 | 256 |
257 } // namespace cc | 257 } // namespace cc |
258 | 258 |
259 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ | 259 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ |
OLD | NEW |