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

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

Issue 362073002: cc: Remove all traces of SkPicture cloning. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « cc/test/pixel_test.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 <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 const gfx::Rect ViewportRectForTilePriority() const; 228 const gfx::Rect ViewportRectForTilePriority() const;
229 229
230 // Viewport size for scrolling and fixed-position compensation. This value 230 // Viewport size for scrolling and fixed-position compensation. This value
231 // excludes the URL bar and non-overlay scrollbars and is in DIP (and 231 // excludes the URL bar and non-overlay scrollbars and is in DIP (and
232 // invariant relative to page scale). 232 // invariant relative to page scale).
233 gfx::SizeF UnscaledScrollableViewportSize() const; 233 gfx::SizeF UnscaledScrollableViewportSize() const;
234 float VerticalAdjust() const; 234 float VerticalAdjust() const;
235 235
236 // RendererClient implementation. 236 // RendererClient implementation.
237 virtual void SetFullRootLayerDamage() OVERRIDE; 237 virtual void SetFullRootLayerDamage() OVERRIDE;
238 virtual void RunOnDemandRasterTask(Task* on_demand_raster_task) OVERRIDE;
239 238
240 // TileManagerClient implementation. 239 // TileManagerClient implementation.
241 virtual const std::vector<PictureLayerImpl*>& GetPictureLayers() 240 virtual const std::vector<PictureLayerImpl*>& GetPictureLayers()
242 const OVERRIDE; 241 const OVERRIDE;
243 virtual void NotifyReadyToActivate() OVERRIDE; 242 virtual void NotifyReadyToActivate() OVERRIDE;
244 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE; 243 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE;
245 virtual void BuildRasterQueue(RasterTilePriorityQueue* queue, 244 virtual void BuildRasterQueue(RasterTilePriorityQueue* queue,
246 TreePriority tree_priority) OVERRIDE; 245 TreePriority tree_priority) OVERRIDE;
247 virtual void BuildEvictionQueue(EvictionTilePriorityQueue* queue, 246 virtual void BuildEvictionQueue(EvictionTilePriorityQueue* queue,
248 TreePriority tree_priority) OVERRIDE; 247 TreePriority tree_priority) OVERRIDE;
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 // |resource_provider_| and |tile_manager_| can be NULL, e.g. when using tile- 593 // |resource_provider_| and |tile_manager_| can be NULL, e.g. when using tile-
595 // free rendering - see OutputSurface::ForcedDrawToSoftwareDevice(). 594 // free rendering - see OutputSurface::ForcedDrawToSoftwareDevice().
596 scoped_ptr<ResourceProvider> resource_provider_; 595 scoped_ptr<ResourceProvider> resource_provider_;
597 scoped_ptr<TileManager> tile_manager_; 596 scoped_ptr<TileManager> tile_manager_;
598 bool use_gpu_rasterization_; 597 bool use_gpu_rasterization_;
599 scoped_ptr<RasterWorkerPool> raster_worker_pool_; 598 scoped_ptr<RasterWorkerPool> raster_worker_pool_;
600 scoped_ptr<ResourcePool> resource_pool_; 599 scoped_ptr<ResourcePool> resource_pool_;
601 scoped_ptr<ResourcePool> staging_resource_pool_; 600 scoped_ptr<ResourcePool> staging_resource_pool_;
602 scoped_ptr<Renderer> renderer_; 601 scoped_ptr<Renderer> renderer_;
603 602
604 TaskGraphRunner synchronous_task_graph_runner_;
605 TaskGraphRunner* on_demand_task_graph_runner_;
606 NamespaceToken on_demand_task_namespace_;
607
608 GlobalStateThatImpactsTilePriority global_tile_state_; 603 GlobalStateThatImpactsTilePriority global_tile_state_;
609 604
610 // Tree currently being drawn. 605 // Tree currently being drawn.
611 scoped_ptr<LayerTreeImpl> active_tree_; 606 scoped_ptr<LayerTreeImpl> active_tree_;
612 607
613 // In impl-side painting mode, tree with possibly incomplete rasterized 608 // In impl-side painting mode, tree with possibly incomplete rasterized
614 // content. May be promoted to active by ActivatePendingTree(). 609 // content. May be promoted to active by ActivatePendingTree().
615 scoped_ptr<LayerTreeImpl> pending_tree_; 610 scoped_ptr<LayerTreeImpl> pending_tree_;
616 611
617 // In impl-side painting mode, inert tree with layers that can be recycled 612 // In impl-side painting mode, inert tree with layers that can be recycled
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 716
722 std::vector<PictureLayerImpl*> picture_layers_; 717 std::vector<PictureLayerImpl*> picture_layers_;
723 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; 718 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_;
724 719
725 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 720 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
726 }; 721 };
727 722
728 } // namespace cc 723 } // namespace cc
729 724
730 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 725 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/pixel_test.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698