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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 bool need_valid_tile_priorities) const; | 495 bool need_valid_tile_priorities) const; |
496 | 496 |
497 void SetRequiresHighResToDraw() { requires_high_res_to_draw_ = true; } | 497 void SetRequiresHighResToDraw() { requires_high_res_to_draw_ = true; } |
498 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; } | 498 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; } |
499 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; } | 499 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; } |
500 | 500 |
501 // Only valid for synchronous (non-scheduled) single-threaded case. | 501 // Only valid for synchronous (non-scheduled) single-threaded case. |
502 void SynchronouslyInitializeAllTiles(); | 502 void SynchronouslyInitializeAllTiles(); |
503 | 503 |
504 virtual scoped_ptr<Rasterizer> CreateRasterizer(); | 504 virtual scoped_ptr<Rasterizer> CreateRasterizer(); |
505 virtual void CreateResourceAndTileTaskWorkerPool( | 505 virtual ResourceFormat CreateResourceAndTileTaskWorkerPool( |
506 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool, | 506 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool, |
507 scoped_ptr<ResourcePool>* resource_pool, | 507 scoped_ptr<ResourcePool>* resource_pool, |
508 scoped_ptr<ResourcePool>* staging_resource_pool); | 508 scoped_ptr<ResourcePool>* staging_resource_pool); |
509 | 509 |
510 bool prepare_tiles_needed() const { return tile_priorities_dirty_; } | 510 bool prepare_tiles_needed() const { return tile_priorities_dirty_; } |
511 | 511 |
512 protected: | 512 protected: |
513 LayerTreeHostImpl( | 513 LayerTreeHostImpl( |
514 const LayerTreeSettings& settings, | 514 const LayerTreeSettings& settings, |
515 LayerTreeHostImplClient* client, | 515 LayerTreeHostImplClient* client, |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 | 730 |
731 bool requires_high_res_to_draw_; | 731 bool requires_high_res_to_draw_; |
732 bool required_for_draw_tile_is_top_of_raster_queue_; | 732 bool required_for_draw_tile_is_top_of_raster_queue_; |
733 | 733 |
734 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 734 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
735 }; | 735 }; |
736 | 736 |
737 } // namespace cc | 737 } // namespace cc |
738 | 738 |
739 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 739 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |