| 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_ANIMATION_ANIMATION_HOST_H_ | 5 #ifndef CC_ANIMATION_ANIMATION_HOST_H_ |
| 6 #define CC_ANIMATION_ANIMATION_HOST_H_ | 6 #define CC_ANIMATION_ANIMATION_HOST_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <unordered_map> | 9 #include <unordered_map> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "cc/animation/animation.h" | 15 #include "cc/animation/animation.h" |
| 16 #include "cc/base/cc_export.h" | 16 #include "cc/base/cc_export.h" |
| 17 #include "cc/trees/mutator_host_client.h" | |
| 18 #include "ui/gfx/geometry/box_f.h" | 17 #include "ui/gfx/geometry/box_f.h" |
| 19 #include "ui/gfx/geometry/vector2d_f.h" | 18 #include "ui/gfx/geometry/vector2d_f.h" |
| 20 | 19 |
| 21 namespace gfx { | 20 namespace gfx { |
| 22 class ScrollOffset; | 21 class ScrollOffset; |
| 23 } | 22 } |
| 24 | 23 |
| 25 namespace cc { | 24 namespace cc { |
| 26 | 25 |
| 27 class AnimationEvents; | 26 class AnimationEvents; |
| 28 class AnimationPlayer; | 27 class AnimationPlayer; |
| 29 class AnimationTimeline; | 28 class AnimationTimeline; |
| 30 class ElementAnimations; | 29 class ElementAnimations; |
| 31 class LayerTreeHost; | 30 class LayerTreeHost; |
| 31 class MutatorHostClient; |
| 32 enum class LayerTreeType; |
| 32 | 33 |
| 33 enum class ThreadInstance { MAIN, IMPL }; | 34 enum class ThreadInstance { MAIN, IMPL }; |
| 34 | 35 |
| 35 // An AnimationHost contains all the state required to play animations. | 36 // An AnimationHost contains all the state required to play animations. |
| 36 // Specifically, it owns all the AnimationTimelines objects. | 37 // Specifically, it owns all the AnimationTimelines objects. |
| 37 // There is just one AnimationHost for LayerTreeHost on main renderer thread | 38 // There is just one AnimationHost for LayerTreeHost on main renderer thread |
| 38 // and just one AnimationHost for LayerTreeHostImpl on impl thread. | 39 // and just one AnimationHost for LayerTreeHostImpl on impl thread. |
| 39 // We synchronize them during the commit process in a one-way data flow process | 40 // We synchronize them during the commit process in a one-way data flow process |
| 40 // (PushPropertiesTo). | 41 // (PushPropertiesTo). |
| 41 // An AnimationHost talks to its correspondent LayerTreeHost via | 42 // An AnimationHost talks to its correspondent LayerTreeHost via |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 194 |
| 194 bool supports_scroll_animations_; | 195 bool supports_scroll_animations_; |
| 195 bool animation_waiting_for_deletion_; | 196 bool animation_waiting_for_deletion_; |
| 196 | 197 |
| 197 DISALLOW_COPY_AND_ASSIGN(AnimationHost); | 198 DISALLOW_COPY_AND_ASSIGN(AnimationHost); |
| 198 }; | 199 }; |
| 199 | 200 |
| 200 } // namespace cc | 201 } // namespace cc |
| 201 | 202 |
| 202 #endif // CC_ANIMATION_ANIMATION_HOST_H_ | 203 #endif // CC_ANIMATION_ANIMATION_HOST_H_ |
| OLD | NEW |