Chromium Code Reviews| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 122 gfx::Size ContentSize() const; | 122 gfx::Size ContentSize() const; |
| 123 | 123 |
| 124 LayerImpl* LayerById(int id); | 124 LayerImpl* LayerById(int id); |
| 125 | 125 |
| 126 // These should be called by LayerImpl's ctor/dtor. | 126 // These should be called by LayerImpl's ctor/dtor. |
| 127 void RegisterLayer(LayerImpl* layer); | 127 void RegisterLayer(LayerImpl* layer); |
| 128 void UnregisterLayer(LayerImpl* layer); | 128 void UnregisterLayer(LayerImpl* layer); |
| 129 | 129 |
| 130 AnimationRegistrar* animationRegistrar() const; | 130 AnimationRegistrar* animationRegistrar() const; |
| 131 | 131 |
| 132 void PushPersistedState(LayerTreeImpl* pendingTree); | |
| 133 | |
| 132 protected: | 134 protected: |
| 133 LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl); | 135 LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl); |
| 134 | 136 |
| 135 LayerTreeHostImpl* layer_tree_host_impl_; | 137 LayerTreeHostImpl* layer_tree_host_impl_; |
| 136 int source_frame_number_; | 138 int source_frame_number_; |
| 137 scoped_ptr<LayerImpl> root_layer_; | 139 scoped_ptr<LayerImpl> root_layer_; |
| 138 HeadsUpDisplayLayerImpl* hud_layer_; | 140 HeadsUpDisplayLayerImpl* hud_layer_; |
| 139 LayerImpl* root_scroll_layer_; | 141 LayerImpl* root_scroll_layer_; |
| 140 LayerImpl* currently_scrolling_layer_; | 142 LayerImpl* currently_scrolling_layer_; |
| 141 SkColor background_color_; | 143 SkColor background_color_; |
| 142 bool has_transparent_background_; | 144 bool has_transparent_background_; |
| 143 | 145 |
| 144 typedef base::hash_map<int, LayerImpl*> LayerIdMap; | 146 typedef base::hash_map<int, LayerImpl*> LayerIdMap; |
| 145 LayerIdMap layer_id_map_; | 147 LayerIdMap layer_id_map_; |
| 146 | 148 |
| 147 // Persisted state | 149 // Persisted state for non-impl-side-painting |
|
danakj
2013/01/09 02:08:30
nit: period :)
| |
| 148 int scrolling_layer_id_from_previous_tree_; | 150 int scrolling_layer_id_from_previous_tree_; |
| 149 | 151 |
| 150 // List of visible layers for the most recently prepared frame. Used for | 152 // List of visible layers for the most recently prepared frame. Used for |
| 151 // rendering and input event hit testing. | 153 // rendering and input event hit testing. |
| 152 LayerList render_surface_layer_list_; | 154 LayerList render_surface_layer_list_; |
| 153 | 155 |
| 154 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 156 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 155 }; | 157 }; |
| 156 | 158 |
| 157 } | 159 } |
| 158 | 160 |
| 159 #endif // CC_LAYER_TREE_IMPL_H_ | 161 #endif // CC_LAYER_TREE_IMPL_H_ |
| OLD | NEW |