Chromium Code Reviews| 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 292 // to unregister itself. | 292 // to unregister itself. |
| 293 void InsertSwapPromiseMonitor(SwapPromiseMonitor* monitor); | 293 void InsertSwapPromiseMonitor(SwapPromiseMonitor* monitor); |
| 294 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); | 294 void RemoveSwapPromiseMonitor(SwapPromiseMonitor* monitor); |
| 295 | 295 |
| 296 // 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. |
| 297 // See swap_promise.h for how to use SwapPromise. | 297 // See swap_promise.h for how to use SwapPromise. |
| 298 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise); | 298 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise); |
| 299 | 299 |
| 300 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); | 300 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); |
| 301 | 301 |
| 302 void SendBeginFrame(const BeginFrameArgs& args); | |
|
brianderson
2014/08/21 00:13:59
SendBeginFrameToChildren?
simonhong
2014/08/26 08:24:47
Removed this and RequestBeginFrame().
Changed Sche
| |
| 303 | |
| 304 void RequestBeginFrame(); | |
| 305 | |
| 302 protected: | 306 protected: |
| 303 LayerTreeHost(LayerTreeHostClient* client, | 307 LayerTreeHost(LayerTreeHostClient* client, |
| 304 SharedBitmapManager* manager, | 308 SharedBitmapManager* manager, |
| 305 const LayerTreeSettings& settings); | 309 const LayerTreeSettings& settings); |
| 306 void InitializeThreaded( | 310 void InitializeThreaded( |
| 307 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 311 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
| 308 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); | 312 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); |
| 309 void InitializeSingleThreaded( | 313 void InitializeSingleThreaded( |
| 310 LayerTreeHostSingleThreadClient* single_thread_client, | 314 LayerTreeHostSingleThreadClient* single_thread_client, |
| 311 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); | 315 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 448 scoped_refptr<Layer> outer_viewport_scroll_layer_; | 452 scoped_refptr<Layer> outer_viewport_scroll_layer_; |
| 449 | 453 |
| 450 LayerSelectionBound selection_start_; | 454 LayerSelectionBound selection_start_; |
| 451 LayerSelectionBound selection_end_; | 455 LayerSelectionBound selection_end_; |
| 452 | 456 |
| 453 SharedBitmapManager* shared_bitmap_manager_; | 457 SharedBitmapManager* shared_bitmap_manager_; |
| 454 | 458 |
| 455 ScopedPtrVector<SwapPromise> swap_promise_list_; | 459 ScopedPtrVector<SwapPromise> swap_promise_list_; |
| 456 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 460 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 457 | 461 |
| 462 // true if new BeginFrame is requested from compositor. | |
| 463 bool begin_frame_requested_; | |
|
brianderson
2014/08/21 00:13:59
I don't think LTH needs to store this. If early ou
simonhong
2014/08/26 08:24:48
Removed.
| |
| 464 | |
| 458 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 465 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 459 }; | 466 }; |
| 460 | 467 |
| 461 } // namespace cc | 468 } // namespace cc |
| 462 | 469 |
| 463 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 470 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |