OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_TREES_LAYER_TREE_H_ | 5 #ifndef CC_TREES_LAYER_TREE_H_ |
6 #define CC_TREES_LAYER_TREE_H_ | 6 #define CC_TREES_LAYER_TREE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <unordered_map> | 9 #include <unordered_map> |
10 #include <unordered_set> | 10 #include <unordered_set> |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 void UpdateHudLayer(bool show_hud_info); | 176 void UpdateHudLayer(bool show_hud_info); |
177 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } | 177 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } |
178 | 178 |
179 virtual void SetNeedsFullTreeSync(); | 179 virtual void SetNeedsFullTreeSync(); |
180 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } | 180 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } |
181 | 181 |
182 void SetPropertyTreesNeedRebuild(); | 182 void SetPropertyTreesNeedRebuild(); |
183 | 183 |
184 void PushPropertiesTo(LayerTreeImpl* tree_impl); | 184 void PushPropertiesTo(LayerTreeImpl* tree_impl); |
185 | 185 |
186 void ToProtobuf(proto::LayerTree* proto); | 186 void ToProtobuf(proto::LayerTree* proto, bool inputs_only); |
187 void FromProtobuf(const proto::LayerTree& proto); | 187 void FromProtobuf(const proto::LayerTree& proto); |
188 | 188 |
189 AnimationHost* animation_host() const { return animation_host_.get(); } | 189 AnimationHost* animation_host() const { return animation_host_.get(); } |
190 | 190 |
191 Layer* LayerByElementId(ElementId element_id) const; | 191 Layer* LayerByElementId(ElementId element_id) const; |
192 void RegisterElement(ElementId element_id, | 192 void RegisterElement(ElementId element_id, |
193 ElementListType list_type, | 193 ElementListType list_type, |
194 Layer* layer); | 194 Layer* layer); |
195 void UnregisterElement(ElementId element_id, | 195 void UnregisterElement(ElementId element_id, |
196 ElementListType list_type, | 196 ElementListType list_type, |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 // external embedder. | 305 // external embedder. |
306 EnginePictureCache* engine_picture_cache_; | 306 EnginePictureCache* engine_picture_cache_; |
307 ClientPictureCache* client_picture_cache_; | 307 ClientPictureCache* client_picture_cache_; |
308 | 308 |
309 DISALLOW_COPY_AND_ASSIGN(LayerTree); | 309 DISALLOW_COPY_AND_ASSIGN(LayerTree); |
310 }; | 310 }; |
311 | 311 |
312 } // namespace cc | 312 } // namespace cc |
313 | 313 |
314 #endif // CC_TREES_LAYER_TREE_H_ | 314 #endif // CC_TREES_LAYER_TREE_H_ |
OLD | NEW |