| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); | 296 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); |
| 297 | 297 |
| 298 size_t num_queued_swap_promises() const { return swap_promise_list_.size(); } | 298 size_t num_queued_swap_promises() const { return swap_promise_list_.size(); } |
| 299 | 299 |
| 300 void set_surface_id_namespace(uint32_t id_namespace); | 300 void set_surface_id_namespace(uint32_t id_namespace); |
| 301 SurfaceSequence CreateSurfaceSequence(); | 301 SurfaceSequence CreateSurfaceSequence(); |
| 302 | 302 |
| 303 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) const; | 303 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) const; |
| 304 void SendBeginFramesToChildren(const BeginFrameArgs& args) const; | 304 void SendBeginFramesToChildren(const BeginFrameArgs& args) const; |
| 305 | 305 |
| 306 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval); |
| 307 |
| 306 protected: | 308 protected: |
| 307 LayerTreeHost(LayerTreeHostClient* client, | 309 LayerTreeHost(LayerTreeHostClient* client, |
| 308 SharedBitmapManager* shared_bitmap_manager, | 310 SharedBitmapManager* shared_bitmap_manager, |
| 309 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, | 311 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, |
| 310 const LayerTreeSettings& settings); | 312 const LayerTreeSettings& settings); |
| 311 void InitializeThreaded( | 313 void InitializeThreaded( |
| 312 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 314 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
| 313 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, | 315 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, |
| 314 scoped_ptr<BeginFrameSource> external_begin_frame_source); | 316 scoped_ptr<BeginFrameSource> external_begin_frame_source); |
| 315 void InitializeSingleThreaded( | 317 void InitializeSingleThreaded( |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 | 448 |
| 447 uint32_t surface_id_namespace_; | 449 uint32_t surface_id_namespace_; |
| 448 uint32_t next_surface_sequence_; | 450 uint32_t next_surface_sequence_; |
| 449 | 451 |
| 450 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 452 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 451 }; | 453 }; |
| 452 | 454 |
| 453 } // namespace cc | 455 } // namespace cc |
| 454 | 456 |
| 455 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 457 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |