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