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); | |
565 | 564 |
566 bool prepare_tiles_needed() const { return tile_priorities_dirty_; } | 565 bool prepare_tiles_needed() const { return tile_priorities_dirty_; } |
567 | 566 |
568 FrameTimingTracker* frame_timing_tracker() { | 567 FrameTimingTracker* frame_timing_tracker() { |
569 return frame_timing_tracker_.get(); | 568 return frame_timing_tracker_.get(); |
570 } | 569 } |
571 | 570 |
572 gfx::Vector2dF ScrollLayer(LayerImpl* layer_impl, | 571 gfx::Vector2dF ScrollLayer(LayerImpl* layer_impl, |
573 const gfx::Vector2dF& delta, | 572 const gfx::Vector2dF& delta, |
574 const gfx::Point& viewport_point, | 573 const gfx::Point& viewport_point, |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 | 706 |
708 scoped_ptr<ResourceProvider> resource_provider_; | 707 scoped_ptr<ResourceProvider> resource_provider_; |
709 bool content_is_suitable_for_gpu_rasterization_; | 708 bool content_is_suitable_for_gpu_rasterization_; |
710 bool has_gpu_rasterization_trigger_; | 709 bool has_gpu_rasterization_trigger_; |
711 bool use_gpu_rasterization_; | 710 bool use_gpu_rasterization_; |
712 bool use_msaa_; | 711 bool use_msaa_; |
713 GpuRasterizationStatus gpu_rasterization_status_; | 712 GpuRasterizationStatus gpu_rasterization_status_; |
714 bool tree_resources_for_gpu_rasterization_dirty_; | 713 bool tree_resources_for_gpu_rasterization_dirty_; |
715 scoped_ptr<TileTaskWorkerPool> tile_task_worker_pool_; | 714 scoped_ptr<TileTaskWorkerPool> tile_task_worker_pool_; |
716 scoped_ptr<ResourcePool> resource_pool_; | 715 scoped_ptr<ResourcePool> resource_pool_; |
717 scoped_ptr<ResourcePool> staging_resource_pool_; | |
718 scoped_ptr<Renderer> renderer_; | 716 scoped_ptr<Renderer> renderer_; |
719 | 717 |
720 GlobalStateThatImpactsTilePriority global_tile_state_; | 718 GlobalStateThatImpactsTilePriority global_tile_state_; |
721 | 719 |
722 // Tree currently being drawn. | 720 // Tree currently being drawn. |
723 scoped_ptr<LayerTreeImpl> active_tree_; | 721 scoped_ptr<LayerTreeImpl> active_tree_; |
724 | 722 |
725 // In impl-side painting mode, tree with possibly incomplete rasterized | 723 // In impl-side painting mode, tree with possibly incomplete rasterized |
726 // content. May be promoted to active by ActivatePendingTree(). | 724 // content. May be promoted to active by ActivatePendingTree(). |
727 scoped_ptr<LayerTreeImpl> pending_tree_; | 725 scoped_ptr<LayerTreeImpl> pending_tree_; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 824 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
827 | 825 |
828 scoped_ptr<Viewport> viewport_; | 826 scoped_ptr<Viewport> viewport_; |
829 | 827 |
830 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 828 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
831 }; | 829 }; |
832 | 830 |
833 } // namespace cc | 831 } // namespace cc |
834 | 832 |
835 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 833 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |