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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 PropertyTrees* property_trees() { return &property_trees_; } | 351 PropertyTrees* property_trees() { return &property_trees_; } |
351 bool needs_meta_info_recomputation() { | 352 bool needs_meta_info_recomputation() { |
352 return needs_meta_info_recomputation_; | 353 return needs_meta_info_recomputation_; |
353 } | 354 } |
354 | 355 |
355 void RecordFrameTimingEvents( | 356 void RecordFrameTimingEvents( |
356 std::unique_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, | 357 std::unique_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, |
357 std::unique_ptr<FrameTimingTracker::MainFrameTimingSet> | 358 std::unique_ptr<FrameTimingTracker::MainFrameTimingSet> |
358 main_frame_events); | 359 main_frame_events); |
359 | 360 |
| 361 void SetLayerTreeMutator(std::unique_ptr<LayerTreeMutator> mutator); |
| 362 |
360 Layer* LayerById(int id) const; | 363 Layer* LayerById(int id) const; |
361 | 364 |
362 void AddLayerShouldPushProperties(Layer* layer); | 365 void AddLayerShouldPushProperties(Layer* layer); |
363 void RemoveLayerShouldPushProperties(Layer* layer); | 366 void RemoveLayerShouldPushProperties(Layer* layer); |
364 std::unordered_set<Layer*>& LayersThatShouldPushProperties(); | 367 std::unordered_set<Layer*>& LayersThatShouldPushProperties(); |
365 bool LayerNeedsPushPropertiesForTesting(Layer* layer); | 368 bool LayerNeedsPushPropertiesForTesting(Layer* layer); |
366 | 369 |
367 void RegisterLayer(Layer* layer); | 370 void RegisterLayer(Layer* layer); |
368 void UnregisterLayer(Layer* layer); | 371 void UnregisterLayer(Layer* layer); |
369 // LayerTreeMutatorsClient implementation. | 372 // LayerTreeMutatorsClient implementation. |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 | 596 |
594 uint32_t surface_id_namespace_; | 597 uint32_t surface_id_namespace_; |
595 uint32_t next_surface_sequence_; | 598 uint32_t next_surface_sequence_; |
596 | 599 |
597 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 600 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
598 }; | 601 }; |
599 | 602 |
600 } // namespace cc | 603 } // namespace cc |
601 | 604 |
602 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 605 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |