| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 protected: | 302 protected: |
| 303 LayerTreeHost(LayerTreeHostClient* client, | 303 LayerTreeHost(LayerTreeHostClient* client, |
| 304 SharedBitmapManager* manager, | 304 SharedBitmapManager* manager, |
| 305 const LayerTreeSettings& settings); | 305 const LayerTreeSettings& settings); |
| 306 bool InitializeThreaded( | 306 void InitializeThreaded( |
| 307 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); | 307 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); |
| 308 bool InitializeSingleThreaded( | 308 void InitializeSingleThreaded( |
| 309 LayerTreeHostSingleThreadClient* single_thread_client); | 309 LayerTreeHostSingleThreadClient* single_thread_client); |
| 310 bool InitializeForTesting(scoped_ptr<Proxy> proxy_for_testing); | 310 void InitializeForTesting(scoped_ptr<Proxy> proxy_for_testing); |
| 311 void SetOutputSurfaceLostForTesting(bool is_lost) { | 311 void SetOutputSurfaceLostForTesting(bool is_lost) { |
| 312 output_surface_lost_ = is_lost; | 312 output_surface_lost_ = is_lost; |
| 313 } | 313 } |
| 314 | 314 |
| 315 MicroBenchmarkController micro_benchmark_controller_; | 315 MicroBenchmarkController micro_benchmark_controller_; |
| 316 | 316 |
| 317 private: | 317 private: |
| 318 bool InitializeProxy(scoped_ptr<Proxy> proxy); | 318 void InitializeProxy(scoped_ptr<Proxy> proxy); |
| 319 | 319 |
| 320 void PaintLayerContents( | 320 void PaintLayerContents( |
| 321 const RenderSurfaceLayerList& render_surface_layer_list, | 321 const RenderSurfaceLayerList& render_surface_layer_list, |
| 322 ResourceUpdateQueue* queue, | 322 ResourceUpdateQueue* queue, |
| 323 bool* did_paint_content, | 323 bool* did_paint_content, |
| 324 bool* need_more_updates); | 324 bool* need_more_updates); |
| 325 void PaintMasksForRenderSurface(Layer* render_surface_layer, | 325 void PaintMasksForRenderSurface(Layer* render_surface_layer, |
| 326 ResourceUpdateQueue* queue, | 326 ResourceUpdateQueue* queue, |
| 327 bool* did_paint_content, | 327 bool* did_paint_content, |
| 328 bool* need_more_updates); | 328 bool* need_more_updates); |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 | 448 |
| 449 ScopedPtrVector<SwapPromise> swap_promise_list_; | 449 ScopedPtrVector<SwapPromise> swap_promise_list_; |
| 450 std::set<SwapPromiseMonitor*> swap_promise_monitor_; | 450 std::set<SwapPromiseMonitor*> swap_promise_monitor_; |
| 451 | 451 |
| 452 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 452 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
| 453 }; | 453 }; |
| 454 | 454 |
| 455 } // namespace cc | 455 } // namespace cc |
| 456 | 456 |
| 457 #endif // CC_TREES_LAYER_TREE_HOST_H_ | 457 #endif // CC_TREES_LAYER_TREE_HOST_H_ |
| OLD | NEW |