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_LAYER_TREE_IMPL_H_ | 5 #ifndef CC_LAYER_TREE_IMPL_H_ |
6 #define CC_LAYER_TREE_IMPL_H_ | 6 #define CC_LAYER_TREE_IMPL_H_ |
7 | 7 |
8 #include "base/hash_tables.h" | 8 #include "base/hash_tables.h" |
9 #include "cc/layer_impl.h" | 9 #include "cc/layer_impl.h" |
10 | 10 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 void set_currently_scrolling_layer(LayerImpl* layer_impl) { currently_scrollin
g_layer_ = layer_impl; } | 85 void set_currently_scrolling_layer(LayerImpl* layer_impl) { currently_scrollin
g_layer_ = layer_impl; } |
86 | 86 |
87 void ClearCurrentlyScrollingLayer(); | 87 void ClearCurrentlyScrollingLayer(); |
88 | 88 |
89 LayerImpl* LayerById(int id); | 89 LayerImpl* LayerById(int id); |
90 | 90 |
91 // These should be called by LayerImpl's ctor/dtor. | 91 // These should be called by LayerImpl's ctor/dtor. |
92 void RegisterLayer(LayerImpl* layer); | 92 void RegisterLayer(LayerImpl* layer); |
93 void UnregisterLayer(LayerImpl* layer); | 93 void UnregisterLayer(LayerImpl* layer); |
94 | 94 |
| 95 AnimationRegistrar* animationRegistrar() const; |
| 96 |
95 protected: | 97 protected: |
96 LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl); | 98 LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl); |
97 | 99 |
98 LayerTreeHostImpl* layer_tree_host_impl_; | 100 LayerTreeHostImpl* layer_tree_host_impl_; |
99 int source_frame_number_; | 101 int source_frame_number_; |
100 scoped_ptr<LayerImpl> root_layer_; | 102 scoped_ptr<LayerImpl> root_layer_; |
101 HeadsUpDisplayLayerImpl* hud_layer_; | 103 HeadsUpDisplayLayerImpl* hud_layer_; |
102 LayerImpl* root_scroll_layer_; | 104 LayerImpl* root_scroll_layer_; |
103 LayerImpl* currently_scrolling_layer_; | 105 LayerImpl* currently_scrolling_layer_; |
104 | 106 |
105 typedef base::hash_map<int, LayerImpl*> LayerIdMap; | 107 typedef base::hash_map<int, LayerImpl*> LayerIdMap; |
106 LayerIdMap layer_id_map_; | 108 LayerIdMap layer_id_map_; |
107 | 109 |
108 // Persisted state | 110 // Persisted state |
109 int scrolling_layer_id_from_previous_tree_; | 111 int scrolling_layer_id_from_previous_tree_; |
110 | 112 |
111 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 113 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
112 }; | 114 }; |
113 | 115 |
114 } | 116 } |
115 | 117 |
116 #endif // CC_LAYER_TREE_IMPL_H_ | 118 #endif // CC_LAYER_TREE_IMPL_H_ |
OLD | NEW |