| 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_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 | 474 |
| 475 void SetTopControlsLayoutHeight(float height); | 475 void SetTopControlsLayoutHeight(float height); |
| 476 | 476 |
| 477 void SetRequiresHighResToDraw() { requires_high_res_to_draw_ = true; } | 477 void SetRequiresHighResToDraw() { requires_high_res_to_draw_ = true; } |
| 478 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; } | 478 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; } |
| 479 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; } | 479 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; } |
| 480 | 480 |
| 481 // Only valid for synchronous (non-scheduled) single-threaded case. | 481 // Only valid for synchronous (non-scheduled) single-threaded case. |
| 482 void SynchronouslyInitializeAllTiles(); | 482 void SynchronouslyInitializeAllTiles(); |
| 483 | 483 |
| 484 bool CanUseZeroCopyRasterizer() const; | |
| 485 bool CanUseOneCopyRasterizer() const; | |
| 486 virtual void CreateResourceAndRasterWorkerPool( | 484 virtual void CreateResourceAndRasterWorkerPool( |
| 487 scoped_ptr<RasterWorkerPool>* raster_worker_pool, | 485 scoped_ptr<RasterWorkerPool>* raster_worker_pool, |
| 488 scoped_ptr<ResourcePool>* resource_pool, | 486 scoped_ptr<ResourcePool>* resource_pool, |
| 489 scoped_ptr<ResourcePool>* staging_resource_pool); | 487 scoped_ptr<ResourcePool>* staging_resource_pool); |
| 490 | 488 |
| 491 protected: | 489 protected: |
| 492 LayerTreeHostImpl( | 490 LayerTreeHostImpl( |
| 493 const LayerTreeSettings& settings, | 491 const LayerTreeSettings& settings, |
| 494 LayerTreeHostImplClient* client, | 492 LayerTreeHostImplClient* client, |
| 495 Proxy* proxy, | 493 Proxy* proxy, |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 | 707 |
| 710 bool requires_high_res_to_draw_; | 708 bool requires_high_res_to_draw_; |
| 711 bool required_for_draw_tile_is_top_of_raster_queue_; | 709 bool required_for_draw_tile_is_top_of_raster_queue_; |
| 712 | 710 |
| 713 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 711 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 714 }; | 712 }; |
| 715 | 713 |
| 716 } // namespace cc | 714 } // namespace cc |
| 717 | 715 |
| 718 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 716 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |