| 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 <list> | 9 #include <list> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 class LayerTreeHostSingleThreadClient; | 51 class LayerTreeHostSingleThreadClient; |
| 52 class PrioritizedResource; | 52 class PrioritizedResource; |
| 53 class PrioritizedResourceManager; | 53 class PrioritizedResourceManager; |
| 54 class Region; | 54 class Region; |
| 55 class RenderingStatsInstrumentation; | 55 class RenderingStatsInstrumentation; |
| 56 class ResourceProvider; | 56 class ResourceProvider; |
| 57 class ResourceUpdateQueue; | 57 class ResourceUpdateQueue; |
| 58 class SharedBitmapManager; | 58 class SharedBitmapManager; |
| 59 class TopControlsManager; | 59 class TopControlsManager; |
| 60 class UIResourceRequest; | 60 class UIResourceRequest; |
| 61 struct BeginFrameArgs; |
| 61 struct RenderingStats; | 62 struct RenderingStats; |
| 62 struct ScrollAndScaleSet; | 63 struct ScrollAndScaleSet; |
| 63 | 64 |
| 64 // Provides information on an Impl's rendering capabilities back to the | 65 // Provides information on an Impl's rendering capabilities back to the |
| 65 // LayerTreeHost. | 66 // LayerTreeHost. |
| 66 struct CC_EXPORT RendererCapabilities { | 67 struct CC_EXPORT RendererCapabilities { |
| 67 RendererCapabilities(ResourceFormat best_texture_format, | 68 RendererCapabilities(ResourceFormat best_texture_format, |
| 68 bool allow_partial_texture_updates, | 69 bool allow_partial_texture_updates, |
| 69 int max_texture_size, | 70 int max_texture_size, |
| 70 bool using_shared_memory_resources); | 71 bool using_shared_memory_resources); |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 // to unregister itself. | 292 // to unregister itself. |
| 292 void InsertSwapPromiseMonitor(SwapPromiseMonitor* monitor); | 293 void InsertSwapPromiseMonitor(SwapPromiseMonitor* monitor); |
| 293 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); | 294 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); |
| 294 | 295 |
| 295 // Call this function when you expect there to be a swap buffer. | 296 // Call this function when you expect there to be a swap buffer. |
| 296 // See swap_promise.h for how to use SwapPromise. | 297 // See swap_promise.h for how to use SwapPromise. |
| 297 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise); | 298 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise); |
| 298 | 299 |
| 299 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); | 300 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); |
| 300 | 301 |
| 302 void SetAuthoritativeVSyncInterval(base::TimeDelta interval); |
| 303 |
| 304 void SetChildrenNeedBeginFrames(bool need_begin_frame); |
| 305 |
| 306 void SendBeginFrameToChildren(const BeginFrameArgs& args); |
| 307 |
| 301 protected: | 308 protected: |
| 302 LayerTreeHost(LayerTreeHostClient* client, | 309 LayerTreeHost(LayerTreeHostClient* client, |
| 303 SharedBitmapManager* manager, | 310 SharedBitmapManager* manager, |
| 304 const LayerTreeSettings& settings); | 311 const LayerTreeSettings& settings); |
| 305 void InitializeThreaded( | 312 void InitializeThreaded( |
| 306 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 313 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
| 307 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); | 314 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); |
| 308 void InitializeSingleThreaded( | 315 void InitializeSingleThreaded( |
| 309 LayerTreeHostSingleThreadClient* single_thread_client, | 316 LayerTreeHostSingleThreadClient* single_thread_client, |
| 310 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); | 317 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 | 460 |
| 454 ScopedPtrVector<SwapPromise> swap_promise_list_; | 461 ScopedPtrVector<SwapPromise> swap_promise_list_; |
| 455 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 462 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 456 | 463 |
| 457 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 464 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 458 }; | 465 }; |
| 459 | 466 |
| 460 } // namespace cc | 467 } // namespace cc |
| 461 | 468 |
| 462 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 469 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |