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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 302 // Call this function when you expect there to be a swap buffer. | 302 // Call this function when you expect there to be a swap buffer. |
| 303 // See swap_promise.h for how to use SwapPromise. | 303 // See swap_promise.h for how to use SwapPromise. |
| 304 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise); | 304 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise); |
| 305 | 305 |
| 306 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); | 306 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); |
| 307 | 307 |
| 308 protected: | 308 protected: |
| 309 LayerTreeHost(LayerTreeHostClient* client, | 309 LayerTreeHost(LayerTreeHostClient* client, |
| 310 SharedBitmapManager* manager, | 310 SharedBitmapManager* manager, |
| 311 const LayerTreeSettings& settings); | 311 const LayerTreeSettings& settings); |
| 312 void InitializeThreaded( | 312 // virtual for test. |
|
danakj
2014/04/24 16:03:15
drop the comment.
simonhong
2014/04/25 00:42:35
Done.
| |
| 313 virtual void InitializeThreaded( | |
| 313 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); | 314 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); |
| 314 void InitializeSingleThreaded( | 315 void InitializeSingleThreaded( |
| 315 LayerTreeHostSingleThreadClient* single_thread_client); | 316 LayerTreeHostSingleThreadClient* single_thread_client); |
| 316 void InitializeForTesting(scoped_ptr<Proxy> proxy_for_testing); | 317 void InitializeForTesting(scoped_ptr<Proxy> proxy_for_testing); |
| 317 void SetOutputSurfaceLostForTesting(bool is_lost) { | 318 void SetOutputSurfaceLostForTesting(bool is_lost) { |
| 318 output_surface_lost_ = is_lost; | 319 output_surface_lost_ = is_lost; |
| 319 } | 320 } |
| 321 void InitializeProxy(scoped_ptr<Proxy> proxy); | |
| 320 | 322 |
| 321 MicroBenchmarkController micro_benchmark_controller_; | 323 MicroBenchmarkController micro_benchmark_controller_; |
| 322 | 324 |
| 323 private: | 325 private: |
| 324 void InitializeProxy(scoped_ptr<Proxy> proxy); | |
| 325 | |
| 326 void PaintLayerContents( | 326 void PaintLayerContents( |
| 327 const RenderSurfaceLayerList& render_surface_layer_list, | 327 const RenderSurfaceLayerList& render_surface_layer_list, |
| 328 ResourceUpdateQueue* queue, | 328 ResourceUpdateQueue* queue, |
| 329 bool* did_paint_content, | 329 bool* did_paint_content, |
| 330 bool* need_more_updates); | 330 bool* need_more_updates); |
| 331 void PaintMasksForRenderSurface(Layer* render_surface_layer, | 331 void PaintMasksForRenderSurface(Layer* render_surface_layer, |
| 332 ResourceUpdateQueue* queue, | 332 ResourceUpdateQueue* queue, |
| 333 bool* did_paint_content, | 333 bool* did_paint_content, |
| 334 bool* need_more_updates); | 334 bool* need_more_updates); |
| 335 bool UpdateLayers(Layer* root_layer, ResourceUpdateQueue* queue); | 335 bool UpdateLayers(Layer* root_layer, ResourceUpdateQueue* queue); |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 453 | 453 |
| 454 ScopedPtrVector<SwapPromise> swap_promise_list_; | 454 ScopedPtrVector<SwapPromise> swap_promise_list_; |
| 455 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 455 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 456 | 456 |
| 457 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 457 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 458 }; | 458 }; |
| 459 | 459 |
| 460 } // namespace cc | 460 } // namespace cc |
| 461 | 461 |
| 462 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 462 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |