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

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

Issue 786583002: cc: Renaming Rasterizer and RasterWorkerPool interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 class DebugRectHistory; 44 class DebugRectHistory;
45 class EvictionTilePriorityQueue; 45 class EvictionTilePriorityQueue;
46 class FrameRateCounter; 46 class FrameRateCounter;
47 class LayerImpl; 47 class LayerImpl;
48 class LayerTreeImpl; 48 class LayerTreeImpl;
49 class MemoryHistory; 49 class MemoryHistory;
50 class PageScaleAnimation; 50 class PageScaleAnimation;
51 class PaintTimeCounter; 51 class PaintTimeCounter;
52 class PictureLayerImpl; 52 class PictureLayerImpl;
53 class RasterTilePriorityQueue; 53 class RasterTilePriorityQueue;
54 class RasterWorkerPool; 54 class TileTaskWorkerPool;
55 class RenderPassDrawQuad; 55 class RenderPassDrawQuad;
56 class RenderingStatsInstrumentation; 56 class RenderingStatsInstrumentation;
57 class ResourcePool; 57 class ResourcePool;
58 class ScrollElasticityHelper; 58 class ScrollElasticityHelper;
59 class ScrollbarLayerImplBase; 59 class ScrollbarLayerImplBase;
60 class TextureMailboxDeleter; 60 class TextureMailboxDeleter;
61 class TopControlsManager; 61 class TopControlsManager;
62 class UIResourceBitmap; 62 class UIResourceBitmap;
63 class UIResourceRequest; 63 class UIResourceRequest;
64 struct RendererCapabilitiesImpl; 64 struct RendererCapabilitiesImpl;
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 void GetPictureLayerImplPairs(std::vector<PictureLayerImpl::Pair>* layers, 492 void GetPictureLayerImplPairs(std::vector<PictureLayerImpl::Pair>* layers,
493 bool need_valid_tile_priorities) const; 493 bool need_valid_tile_priorities) const;
494 494
495 void SetRequiresHighResToDraw() { requires_high_res_to_draw_ = true; } 495 void SetRequiresHighResToDraw() { requires_high_res_to_draw_ = true; }
496 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; } 496 void ResetRequiresHighResToDraw() { requires_high_res_to_draw_ = false; }
497 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; } 497 bool RequiresHighResToDraw() const { return requires_high_res_to_draw_; }
498 498
499 // Only valid for synchronous (non-scheduled) single-threaded case. 499 // Only valid for synchronous (non-scheduled) single-threaded case.
500 void SynchronouslyInitializeAllTiles(); 500 void SynchronouslyInitializeAllTiles();
501 501
502 virtual void CreateResourceAndRasterWorkerPool( 502 virtual void CreateResourceAndTileTaskWorkerPool(
503 scoped_ptr<RasterWorkerPool>* raster_worker_pool, 503 scoped_ptr<TileTaskWorkerPool>* raster_worker_pool,
504 scoped_ptr<ResourcePool>* resource_pool, 504 scoped_ptr<ResourcePool>* resource_pool,
505 scoped_ptr<ResourcePool>* staging_resource_pool); 505 scoped_ptr<ResourcePool>* staging_resource_pool);
506 506
507 protected: 507 protected:
508 LayerTreeHostImpl( 508 LayerTreeHostImpl(
509 const LayerTreeSettings& settings, 509 const LayerTreeSettings& settings,
510 LayerTreeHostImplClient* client, 510 LayerTreeHostImplClient* client,
511 Proxy* proxy, 511 Proxy* proxy,
512 RenderingStatsInstrumentation* rendering_stats_instrumentation, 512 RenderingStatsInstrumentation* rendering_stats_instrumentation,
513 SharedBitmapManager* shared_bitmap_manager, 513 SharedBitmapManager* shared_bitmap_manager,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 std::set<UIResourceId> evicted_ui_resources_; 603 std::set<UIResourceId> evicted_ui_resources_;
604 604
605 scoped_ptr<OutputSurface> output_surface_; 605 scoped_ptr<OutputSurface> output_surface_;
606 606
607 // |resource_provider_| and |tile_manager_| can be NULL, e.g. when using tile- 607 // |resource_provider_| and |tile_manager_| can be NULL, e.g. when using tile-
608 // free rendering - see OutputSurface::ForcedDrawToSoftwareDevice(). 608 // free rendering - see OutputSurface::ForcedDrawToSoftwareDevice().
609 scoped_ptr<ResourceProvider> resource_provider_; 609 scoped_ptr<ResourceProvider> resource_provider_;
610 scoped_ptr<TileManager> tile_manager_; 610 scoped_ptr<TileManager> tile_manager_;
611 bool use_gpu_rasterization_; 611 bool use_gpu_rasterization_;
612 GpuRasterizationStatus gpu_rasterization_status_; 612 GpuRasterizationStatus gpu_rasterization_status_;
613 scoped_ptr<RasterWorkerPool> raster_worker_pool_; 613 scoped_ptr<TileTaskWorkerPool> raster_worker_pool_;
614 scoped_ptr<ResourcePool> resource_pool_; 614 scoped_ptr<ResourcePool> resource_pool_;
615 scoped_ptr<ResourcePool> staging_resource_pool_; 615 scoped_ptr<ResourcePool> staging_resource_pool_;
616 scoped_ptr<Renderer> renderer_; 616 scoped_ptr<Renderer> renderer_;
617 617
618 GlobalStateThatImpactsTilePriority global_tile_state_; 618 GlobalStateThatImpactsTilePriority global_tile_state_;
619 619
620 // Tree currently being drawn. 620 // Tree currently being drawn.
621 scoped_ptr<LayerTreeImpl> active_tree_; 621 scoped_ptr<LayerTreeImpl> active_tree_;
622 622
623 // In impl-side painting mode, tree with possibly incomplete rasterized 623 // In impl-side painting mode, tree with possibly incomplete rasterized
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 726
727 bool requires_high_res_to_draw_; 727 bool requires_high_res_to_draw_;
728 bool required_for_draw_tile_is_top_of_raster_queue_; 728 bool required_for_draw_tile_is_top_of_raster_queue_;
729 729
730 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 730 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
731 }; 731 };
732 732
733 } // namespace cc 733 } // namespace cc
734 734
735 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 735 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698