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 <limits> | 8 #include <limits> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 namespace cc { | 49 namespace cc { |
50 class AnimationRegistrar; | 50 class AnimationRegistrar; |
51 class BeginFrameSource; | 51 class BeginFrameSource; |
52 class HeadsUpDisplayLayer; | 52 class HeadsUpDisplayLayer; |
53 class Layer; | 53 class Layer; |
54 class LayerTreeHostImpl; | 54 class LayerTreeHostImpl; |
55 class LayerTreeHostImplClient; | 55 class LayerTreeHostImplClient; |
56 class LayerTreeHostSingleThreadClient; | 56 class LayerTreeHostSingleThreadClient; |
57 class PrioritizedResource; | 57 class PrioritizedResource; |
58 class PrioritizedResourceManager; | 58 class PrioritizedResourceManager; |
| 59 class PropertyTrees; |
59 class Region; | 60 class Region; |
60 class RenderingStatsInstrumentation; | 61 class RenderingStatsInstrumentation; |
61 class ResourceProvider; | 62 class ResourceProvider; |
62 class ResourceUpdateQueue; | 63 class ResourceUpdateQueue; |
63 class SharedBitmapManager; | 64 class SharedBitmapManager; |
64 class TaskGraphRunner; | 65 class TaskGraphRunner; |
65 class TopControlsManager; | 66 class TopControlsManager; |
66 class UIResourceRequest; | 67 class UIResourceRequest; |
67 struct PendingPageScaleAnimation; | 68 struct PendingPageScaleAnimation; |
68 struct RenderingStats; | 69 struct RenderingStats; |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 size_t num_queued_swap_promises() const { return swap_promise_list_.size(); } | 302 size_t num_queued_swap_promises() const { return swap_promise_list_.size(); } |
302 | 303 |
303 void set_surface_id_namespace(uint32_t id_namespace); | 304 void set_surface_id_namespace(uint32_t id_namespace); |
304 SurfaceSequence CreateSurfaceSequence(); | 305 SurfaceSequence CreateSurfaceSequence(); |
305 | 306 |
306 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) const; | 307 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) const; |
307 void SendBeginFramesToChildren(const BeginFrameArgs& args) const; | 308 void SendBeginFramesToChildren(const BeginFrameArgs& args) const; |
308 | 309 |
309 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval); | 310 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval); |
310 | 311 |
| 312 PropertyTrees* property_trees() { return &property_trees_; } |
| 313 |
311 protected: | 314 protected: |
312 LayerTreeHost(LayerTreeHostClient* client, | 315 LayerTreeHost(LayerTreeHostClient* client, |
313 SharedBitmapManager* shared_bitmap_manager, | 316 SharedBitmapManager* shared_bitmap_manager, |
314 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, | 317 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, |
315 TaskGraphRunner* task_graph_runner, | 318 TaskGraphRunner* task_graph_runner, |
316 const LayerTreeSettings& settings); | 319 const LayerTreeSettings& settings); |
317 void InitializeThreaded( | 320 void InitializeThreaded( |
318 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 321 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
319 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, | 322 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, |
320 scoped_ptr<BeginFrameSource> external_begin_frame_source); | 323 scoped_ptr<BeginFrameSource> external_begin_frame_source); |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 LayerSelectionBound selection_start_; | 447 LayerSelectionBound selection_start_; |
445 LayerSelectionBound selection_end_; | 448 LayerSelectionBound selection_end_; |
446 | 449 |
447 SharedBitmapManager* shared_bitmap_manager_; | 450 SharedBitmapManager* shared_bitmap_manager_; |
448 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; | 451 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; |
449 TaskGraphRunner* task_graph_runner_; | 452 TaskGraphRunner* task_graph_runner_; |
450 | 453 |
451 ScopedPtrVector<SwapPromise> swap_promise_list_; | 454 ScopedPtrVector<SwapPromise> swap_promise_list_; |
452 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 455 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
453 | 456 |
| 457 PropertyTrees property_trees_; |
| 458 |
454 uint32_t surface_id_namespace_; | 459 uint32_t surface_id_namespace_; |
455 uint32_t next_surface_sequence_; | 460 uint32_t next_surface_sequence_; |
456 | 461 |
457 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 462 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
458 }; | 463 }; |
459 | 464 |
460 } // namespace cc | 465 } // namespace cc |
461 | 466 |
462 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 467 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
OLD | NEW |