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

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

Issue 1230203007: Re-land: cc: Use worker context for one-copy tile initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 4 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
« no previous file with comments | « cc/tiles/tile_manager.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 // ReadyToDraw. crbug.com/469175 551 // ReadyToDraw. crbug.com/469175
552 void SetRequiresHighResToDraw() { requires_high_res_to_draw_ = true; } 552 void SetRequiresHighResToDraw() { requires_high_res_to_draw_ = true; }
553 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; } 553 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; }
554 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; } 554 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; }
555 555
556 // Only valid for synchronous (non-scheduled) single-threaded case. 556 // Only valid for synchronous (non-scheduled) single-threaded case.
557 void SynchronouslyInitializeAllTiles(); 557 void SynchronouslyInitializeAllTiles();
558 558
559 virtual void CreateResourceAndTileTaskWorkerPool( 559 virtual void CreateResourceAndTileTaskWorkerPool(
560 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool, 560 scoped_ptr<TileTaskWorkerPool>* tile_task_worker_pool,
561 scoped_ptr<ResourcePool>* resource_pool, 561 scoped_ptr<ResourcePool>* resource_pool);
562 scoped_ptr<ResourcePool>* staging_resource_pool);
563 562
564 bool prepare_tiles_needed() const { return tile_priorities_dirty_; } 563 bool prepare_tiles_needed() const { return tile_priorities_dirty_; }
565 564
566 FrameTimingTracker* frame_timing_tracker() { 565 FrameTimingTracker* frame_timing_tracker() {
567 return frame_timing_tracker_.get(); 566 return frame_timing_tracker_.get();
568 } 567 }
569 568
570 gfx::Vector2dF ScrollLayer(LayerImpl* layer_impl, 569 gfx::Vector2dF ScrollLayer(LayerImpl* layer_impl,
571 const gfx::Vector2dF& delta, 570 const gfx::Vector2dF& delta,
572 const gfx::Point& viewport_point, 571 const gfx::Point& viewport_point,
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 704
706 scoped_ptr<ResourceProvider> resource_provider_; 705 scoped_ptr<ResourceProvider> resource_provider_;
707 bool content_is_suitable_for_gpu_rasterization_; 706 bool content_is_suitable_for_gpu_rasterization_;
708 bool has_gpu_rasterization_trigger_; 707 bool has_gpu_rasterization_trigger_;
709 bool use_gpu_rasterization_; 708 bool use_gpu_rasterization_;
710 bool use_msaa_; 709 bool use_msaa_;
711 GpuRasterizationStatus gpu_rasterization_status_; 710 GpuRasterizationStatus gpu_rasterization_status_;
712 bool tree_resources_for_gpu_rasterization_dirty_; 711 bool tree_resources_for_gpu_rasterization_dirty_;
713 scoped_ptr<TileTaskWorkerPool> tile_task_worker_pool_; 712 scoped_ptr<TileTaskWorkerPool> tile_task_worker_pool_;
714 scoped_ptr<ResourcePool> resource_pool_; 713 scoped_ptr<ResourcePool> resource_pool_;
715 scoped_ptr<ResourcePool> staging_resource_pool_;
716 scoped_ptr<Renderer> renderer_; 714 scoped_ptr<Renderer> renderer_;
717 715
718 GlobalStateThatImpactsTilePriority global_tile_state_; 716 GlobalStateThatImpactsTilePriority global_tile_state_;
719 717
720 // Tree currently being drawn. 718 // Tree currently being drawn.
721 scoped_ptr<LayerTreeImpl> active_tree_; 719 scoped_ptr<LayerTreeImpl> active_tree_;
722 720
723 // In impl-side painting mode, tree with possibly incomplete rasterized 721 // In impl-side painting mode, tree with possibly incomplete rasterized
724 // content. May be promoted to active by ActivatePendingTree(). 722 // content. May be promoted to active by ActivatePendingTree().
725 scoped_ptr<LayerTreeImpl> pending_tree_; 723 scoped_ptr<LayerTreeImpl> pending_tree_;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; 822 scoped_ptr<FrameTimingTracker> frame_timing_tracker_;
825 823
826 scoped_ptr<Viewport> viewport_; 824 scoped_ptr<Viewport> viewport_;
827 825
828 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 826 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
829 }; 827 };
830 828
831 } // namespace cc 829 } // namespace cc
832 830
833 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 831 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/tiles/tile_manager.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698