OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_HOST_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_ |
6 #define CC_TREES_LAYER_TREE_HOST_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 class AnimationEvents; | 55 class AnimationEvents; |
56 class AnimationHost; | 56 class AnimationHost; |
57 class BeginFrameSource; | 57 class BeginFrameSource; |
58 class HeadsUpDisplayLayer; | 58 class HeadsUpDisplayLayer; |
59 class ImageSerializationProcessor; | 59 class ImageSerializationProcessor; |
60 class Layer; | 60 class Layer; |
61 class LayerTreeHostImpl; | 61 class LayerTreeHostImpl; |
62 class LayerTreeHostImplClient; | 62 class LayerTreeHostImplClient; |
63 class LayerTreeHostSingleThreadClient; | 63 class LayerTreeHostSingleThreadClient; |
| 64 class LayerTreeMutator; |
64 class PropertyTrees; | 65 class PropertyTrees; |
65 class Region; | 66 class Region; |
66 class RemoteProtoChannel; | 67 class RemoteProtoChannel; |
67 class RenderingStatsInstrumentation; | 68 class RenderingStatsInstrumentation; |
68 class ResourceProvider; | 69 class ResourceProvider; |
69 class ResourceUpdateQueue; | 70 class ResourceUpdateQueue; |
70 class SharedBitmapManager; | 71 class SharedBitmapManager; |
71 class TaskGraphRunner; | 72 class TaskGraphRunner; |
72 class TopControlsManager; | 73 class TopControlsManager; |
73 class UIResourceRequest; | 74 class UIResourceRequest; |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 size_t num_queued_swap_promises() const { return swap_promise_list_.size(); } | 339 size_t num_queued_swap_promises() const { return swap_promise_list_.size(); } |
339 | 340 |
340 void set_surface_id_namespace(uint32_t id_namespace); | 341 void set_surface_id_namespace(uint32_t id_namespace); |
341 SurfaceSequence CreateSurfaceSequence(); | 342 SurfaceSequence CreateSurfaceSequence(); |
342 | 343 |
343 PropertyTrees* property_trees() { return &property_trees_; } | 344 PropertyTrees* property_trees() { return &property_trees_; } |
344 bool needs_meta_info_recomputation() { | 345 bool needs_meta_info_recomputation() { |
345 return needs_meta_info_recomputation_; | 346 return needs_meta_info_recomputation_; |
346 } | 347 } |
347 | 348 |
| 349 void SetLayerTreeMutator(std::unique_ptr<LayerTreeMutator> mutator); |
| 350 |
348 Layer* LayerById(int id) const; | 351 Layer* LayerById(int id) const; |
349 | 352 |
350 void AddLayerShouldPushProperties(Layer* layer); | 353 void AddLayerShouldPushProperties(Layer* layer); |
351 void RemoveLayerShouldPushProperties(Layer* layer); | 354 void RemoveLayerShouldPushProperties(Layer* layer); |
352 std::unordered_set<Layer*>& LayersThatShouldPushProperties(); | 355 std::unordered_set<Layer*>& LayersThatShouldPushProperties(); |
353 bool LayerNeedsPushPropertiesForTesting(Layer* layer); | 356 bool LayerNeedsPushPropertiesForTesting(Layer* layer); |
354 | 357 |
355 void RegisterLayer(Layer* layer); | 358 void RegisterLayer(Layer* layer); |
356 void UnregisterLayer(Layer* layer); | 359 void UnregisterLayer(Layer* layer); |
357 // MutatorHostClient implementation. | 360 // MutatorHostClient implementation. |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 | 598 |
596 uint32_t surface_id_namespace_; | 599 uint32_t surface_id_namespace_; |
597 uint32_t next_surface_sequence_; | 600 uint32_t next_surface_sequence_; |
598 | 601 |
599 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 602 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
600 }; | 603 }; |
601 | 604 |
602 } // namespace cc | 605 } // namespace cc |
603 | 606 |
604 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 607 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |