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