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