| 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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 // ReadyToDraw. crbug.com/469175 | 553 // ReadyToDraw. crbug.com/469175 |
| 554 void SetRequiresHighResToDraw() { requires_high_res_to_draw_ = true; } | 554 void SetRequiresHighResToDraw() { requires_high_res_to_draw_ = true; } |
| 555 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; } | 555 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; } |
| 556 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; } | 556 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; } |
| 557 | 557 |
| 558 // Only valid for synchronous (non-scheduled) single-threaded case. | 558 // Only valid for synchronous (non-scheduled) single-threaded case. |
| 559 void SynchronouslyInitializeAllTiles(); | 559 void SynchronouslyInitializeAllTiles(); |
| 560 | 560 |
| 561 virtual void CreateResourceAndTileTaskWorkerPool( | 561 virtual void CreateResourceAndTileTaskWorkerPool( |
| 562 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool, | 562 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool, |
| 563 scoped_ptr<ResourcePool>* resource_pool); | 563 scoped_ptr<ResourcePool>* resource_pool, |
| 564 scoped_ptr<ResourcePool>* staging_resource_pool); |
| 564 | 565 |
| 565 bool prepare_tiles_needed() const { return tile_priorities_dirty_; } | 566 bool prepare_tiles_needed() const { return tile_priorities_dirty_; } |
| 566 | 567 |
| 567 FrameTimingTracker* frame_timing_tracker() { | 568 FrameTimingTracker* frame_timing_tracker() { |
| 568 return frame_timing_tracker_.get(); | 569 return frame_timing_tracker_.get(); |
| 569 } | 570 } |
| 570 | 571 |
| 571 gfx::Vector2dF ScrollLayer(LayerImpl* layer_impl, | 572 gfx::Vector2dF ScrollLayer(LayerImpl* layer_impl, |
| 572 const gfx::Vector2dF& delta, | 573 const gfx::Vector2dF& delta, |
| 573 const gfx::Point& viewport_point, | 574 const gfx::Point& viewport_point, |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 | 707 |
| 707 scoped_ptr<ResourceProvider> resource_provider_; | 708 scoped_ptr<ResourceProvider> resource_provider_; |
| 708 bool content_is_suitable_for_gpu_rasterization_; | 709 bool content_is_suitable_for_gpu_rasterization_; |
| 709 bool has_gpu_rasterization_trigger_; | 710 bool has_gpu_rasterization_trigger_; |
| 710 bool use_gpu_rasterization_; | 711 bool use_gpu_rasterization_; |
| 711 bool use_msaa_; | 712 bool use_msaa_; |
| 712 GpuRasterizationStatus gpu_rasterization_status_; | 713 GpuRasterizationStatus gpu_rasterization_status_; |
| 713 bool tree_resources_for_gpu_rasterization_dirty_; | 714 bool tree_resources_for_gpu_rasterization_dirty_; |
| 714 scoped_ptr<TileTaskWorkerPool> tile_task_worker_pool_; | 715 scoped_ptr<TileTaskWorkerPool> tile_task_worker_pool_; |
| 715 scoped_ptr<ResourcePool> resource_pool_; | 716 scoped_ptr<ResourcePool> resource_pool_; |
| 717 scoped_ptr<ResourcePool> staging_resource_pool_; |
| 716 scoped_ptr<Renderer> renderer_; | 718 scoped_ptr<Renderer> renderer_; |
| 717 | 719 |
| 718 GlobalStateThatImpactsTilePriority global_tile_state_; | 720 GlobalStateThatImpactsTilePriority global_tile_state_; |
| 719 | 721 |
| 720 // Tree currently being drawn. | 722 // Tree currently being drawn. |
| 721 scoped_ptr<LayerTreeImpl> active_tree_; | 723 scoped_ptr<LayerTreeImpl> active_tree_; |
| 722 | 724 |
| 723 // In impl-side painting mode, tree with possibly incomplete rasterized | 725 // In impl-side painting mode, tree with possibly incomplete rasterized |
| 724 // content. May be promoted to active by ActivatePendingTree(). | 726 // content. May be promoted to active by ActivatePendingTree(). |
| 725 scoped_ptr<LayerTreeImpl> pending_tree_; | 727 scoped_ptr<LayerTreeImpl> pending_tree_; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 824 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 826 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
| 825 | 827 |
| 826 scoped_ptr<Viewport> viewport_; | 828 scoped_ptr<Viewport> viewport_; |
| 827 | 829 |
| 828 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 830 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 829 }; | 831 }; |
| 830 | 832 |
| 831 } // namespace cc | 833 } // namespace cc |
| 832 | 834 |
| 833 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 835 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |