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

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

Issue 1336703002: Revert of Re-land: cc: Use worker context for one-copy tile initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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);
562 563
563 bool prepare_tiles_needed() const { return tile_priorities_dirty_; } 564 bool prepare_tiles_needed() const { return tile_priorities_dirty_; }
564 565
565 FrameTimingTracker* frame_timing_tracker() { 566 FrameTimingTracker* frame_timing_tracker() {
566 return frame_timing_tracker_.get(); 567 return frame_timing_tracker_.get();
567 } 568 }
568 569
569 gfx::Vector2dF ScrollLayer(LayerImpl* layer_impl, 570 gfx::Vector2dF ScrollLayer(LayerImpl* layer_impl,
570 const gfx::Vector2dF& delta, 571 const gfx::Vector2dF& delta,
571 const gfx::Point& viewport_point, 572 const gfx::Point& viewport_point,
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 705
705 scoped_ptr<ResourceProvider> resource_provider_; 706 scoped_ptr<ResourceProvider> resource_provider_;
706 bool content_is_suitable_for_gpu_rasterization_; 707 bool content_is_suitable_for_gpu_rasterization_;
707 bool has_gpu_rasterization_trigger_; 708 bool has_gpu_rasterization_trigger_;
708 bool use_gpu_rasterization_; 709 bool use_gpu_rasterization_;
709 bool use_msaa_; 710 bool use_msaa_;
710 GpuRasterizationStatus gpu_rasterization_status_; 711 GpuRasterizationStatus gpu_rasterization_status_;
711 bool tree_resources_for_gpu_rasterization_dirty_; 712 bool tree_resources_for_gpu_rasterization_dirty_;
712 scoped_ptr<TileTaskWorkerPool> tile_task_worker_pool_; 713 scoped_ptr<TileTaskWorkerPool> tile_task_worker_pool_;
713 scoped_ptr<ResourcePool> resource_pool_; 714 scoped_ptr<ResourcePool> resource_pool_;
715 scoped_ptr<ResourcePool> staging_resource_pool_;
714 scoped_ptr<Renderer> renderer_; 716 scoped_ptr<Renderer> renderer_;
715 717
716 GlobalStateThatImpactsTilePriority global_tile_state_; 718 GlobalStateThatImpactsTilePriority global_tile_state_;
717 719
718 // Tree currently being drawn. 720 // Tree currently being drawn.
719 scoped_ptr<LayerTreeImpl> active_tree_; 721 scoped_ptr<LayerTreeImpl> active_tree_;
720 722
721 // In impl-side painting mode, tree with possibly incomplete rasterized 723 // In impl-side painting mode, tree with possibly incomplete rasterized
722 // content. May be promoted to active by ActivatePendingTree(). 724 // content. May be promoted to active by ActivatePendingTree().
723 scoped_ptr<LayerTreeImpl> pending_tree_; 725 scoped_ptr<LayerTreeImpl> pending_tree_;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; 824 scoped_ptr<FrameTimingTracker> frame_timing_tracker_;
823 825
824 scoped_ptr<Viewport> viewport_; 826 scoped_ptr<Viewport> viewport_;
825 827
826 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 828 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
827 }; 829 };
828 830
829 } // namespace cc 831 } // namespace cc
830 832
831 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 833 #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