| 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); | 316 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); |
| 317 | 317 |
| 318 size_t num_queued_swap_promises() const { return swap_promise_list_.size(); } | 318 size_t num_queued_swap_promises() const { return swap_promise_list_.size(); } |
| 319 | 319 |
| 320 void set_surface_id_namespace(uint32_t id_namespace); | 320 void set_surface_id_namespace(uint32_t id_namespace); |
| 321 SurfaceSequence CreateSurfaceSequence(); | 321 SurfaceSequence CreateSurfaceSequence(); |
| 322 | 322 |
| 323 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) const; | 323 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) const; |
| 324 void SendBeginFramesToChildren(const BeginFrameArgs& args) const; | 324 void SendBeginFramesToChildren(const BeginFrameArgs& args) const; |
| 325 | 325 |
| 326 void SetAuthoritativeVSyncInterval(const base::TimeDelta& interval); |
| 327 |
| 326 protected: | 328 protected: |
| 327 LayerTreeHost(LayerTreeHostClient* client, | 329 LayerTreeHost(LayerTreeHostClient* client, |
| 328 SharedBitmapManager* shared_bitmap_manager, | 330 SharedBitmapManager* shared_bitmap_manager, |
| 329 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, | 331 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, |
| 330 const LayerTreeSettings& settings); | 332 const LayerTreeSettings& settings); |
| 331 void InitializeThreaded( | 333 void InitializeThreaded( |
| 332 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 334 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
| 333 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, | 335 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, |
| 334 scoped_ptr<BeginFrameSource> external_begin_frame_source); | 336 scoped_ptr<BeginFrameSource> external_begin_frame_source); |
| 335 void InitializeSingleThreaded( | 337 void InitializeSingleThreaded( |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 | 468 |
| 467 uint32_t surface_id_namespace_; | 469 uint32_t surface_id_namespace_; |
| 468 uint32_t next_surface_sequence_; | 470 uint32_t next_surface_sequence_; |
| 469 | 471 |
| 470 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 472 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 471 }; | 473 }; |
| 472 | 474 |
| 473 } // namespace cc | 475 } // namespace cc |
| 474 | 476 |
| 475 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 477 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |