Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 1910213005: cc: Refactor TileTaskWorkerPool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@task_states
Patch Set: feedback Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 class CompositorFrameMetadata; 58 class CompositorFrameMetadata;
59 class DebugRectHistory; 59 class DebugRectHistory;
60 class EvictionTilePriorityQueue; 60 class EvictionTilePriorityQueue;
61 class FrameRateCounter; 61 class FrameRateCounter;
62 class LayerImpl; 62 class LayerImpl;
63 class LayerTreeImpl; 63 class LayerTreeImpl;
64 class MemoryHistory; 64 class MemoryHistory;
65 class PageScaleAnimation; 65 class PageScaleAnimation;
66 class PictureLayerImpl; 66 class PictureLayerImpl;
67 class RasterTilePriorityQueue; 67 class RasterTilePriorityQueue;
68 class TileTaskWorkerPool; 68 class TileTaskManager;
69 class RasterBufferProvider;
69 class RenderPassDrawQuad; 70 class RenderPassDrawQuad;
70 class RenderingStatsInstrumentation; 71 class RenderingStatsInstrumentation;
71 class ResourcePool; 72 class ResourcePool;
72 class ScrollElasticityHelper; 73 class ScrollElasticityHelper;
73 class ScrollbarLayerImplBase; 74 class ScrollbarLayerImplBase;
74 class SwapPromise; 75 class SwapPromise;
75 class SwapPromiseMonitor; 76 class SwapPromiseMonitor;
76 class SynchronousTaskGraphRunner; 77 class SynchronousTaskGraphRunner;
77 class TaskGraphRunner; 78 class TaskGraphRunner;
78 class TextureMailboxDeleter; 79 class TextureMailboxDeleter;
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 void SetRequiresHighResToDraw() { requires_high_res_to_draw_ = true; } 573 void SetRequiresHighResToDraw() { requires_high_res_to_draw_ = true; }
573 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; } 574 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; }
574 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; } 575 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; }
575 576
576 // Only valid for synchronous (non-scheduled) single-threaded case. 577 // Only valid for synchronous (non-scheduled) single-threaded case.
577 void SynchronouslyInitializeAllTiles(); 578 void SynchronouslyInitializeAllTiles();
578 579
579 bool SupportsImplScrolling() const; 580 bool SupportsImplScrolling() const;
580 bool CommitToActiveTree() const; 581 bool CommitToActiveTree() const;
581 582
582 virtual void CreateResourceAndTileTaskWorkerPool( 583 virtual void CreateResourceAndRasterBufferProvider(
583 std::unique_ptr<TileTaskWorkerPool>* tile_task_worker_pool, 584 std::unique_ptr<RasterBufferProvider>* raster_buffer_provider,
584 std::unique_ptr<ResourcePool>* resource_pool); 585 std::unique_ptr<ResourcePool>* resource_pool);
585 586
586 bool prepare_tiles_needed() const { return tile_priorities_dirty_; } 587 bool prepare_tiles_needed() const { return tile_priorities_dirty_; }
587 588
588 FrameTimingTracker* frame_timing_tracker() { 589 FrameTimingTracker* frame_timing_tracker() {
589 return frame_timing_tracker_.get(); 590 return frame_timing_tracker_.get();
590 } 591 }
591 592
592 gfx::Vector2dF ScrollSingleNode(ScrollNode* scroll_node, 593 gfx::Vector2dF ScrollSingleNode(ScrollNode* scroll_node,
593 const gfx::Vector2dF& delta, 594 const gfx::Vector2dF& delta,
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 752
752 OutputSurface* output_surface_; 753 OutputSurface* output_surface_;
753 754
754 std::unique_ptr<ResourceProvider> resource_provider_; 755 std::unique_ptr<ResourceProvider> resource_provider_;
755 bool content_is_suitable_for_gpu_rasterization_; 756 bool content_is_suitable_for_gpu_rasterization_;
756 bool has_gpu_rasterization_trigger_; 757 bool has_gpu_rasterization_trigger_;
757 bool use_gpu_rasterization_; 758 bool use_gpu_rasterization_;
758 bool use_msaa_; 759 bool use_msaa_;
759 GpuRasterizationStatus gpu_rasterization_status_; 760 GpuRasterizationStatus gpu_rasterization_status_;
760 bool tree_resources_for_gpu_rasterization_dirty_; 761 bool tree_resources_for_gpu_rasterization_dirty_;
761 std::unique_ptr<TileTaskWorkerPool> tile_task_worker_pool_; 762 std::unique_ptr<TileTaskManager> tile_task_manager_;
762 std::unique_ptr<ResourcePool> resource_pool_; 763 std::unique_ptr<ResourcePool> resource_pool_;
763 std::unique_ptr<Renderer> renderer_; 764 std::unique_ptr<Renderer> renderer_;
764 std::unique_ptr<ImageDecodeController> image_decode_controller_; 765 std::unique_ptr<ImageDecodeController> image_decode_controller_;
765 766
766 GlobalStateThatImpactsTilePriority global_tile_state_; 767 GlobalStateThatImpactsTilePriority global_tile_state_;
767 768
768 // Tree currently being drawn. 769 // Tree currently being drawn.
769 std::unique_ptr<LayerTreeImpl> active_tree_; 770 std::unique_ptr<LayerTreeImpl> active_tree_;
770 771
771 // In impl-side painting mode, tree with possibly incomplete rasterized 772 // In impl-side painting mode, tree with possibly incomplete rasterized
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 std::unique_ptr<Viewport> viewport_; 872 std::unique_ptr<Viewport> viewport_;
872 873
873 LayerTreeMutator* mutator_; 874 LayerTreeMutator* mutator_;
874 875
875 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 876 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
876 }; 877 };
877 878
878 } // namespace cc 879 } // namespace cc
879 880
880 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 881 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698