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

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

Issue 290573007: cc: Move gpu rasterization flag from tree-impl to tree-host-impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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/trees/layer_tree_host.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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 OutputSurface* output_surface() const { return output_surface_.get(); } 267 OutputSurface* output_surface() const { return output_surface_.get(); }
268 268
269 std::string LayerTreeAsJson() const; 269 std::string LayerTreeAsJson() const;
270 270
271 void FinishAllRendering(); 271 void FinishAllRendering();
272 int SourceAnimationFrameNumber() const; 272 int SourceAnimationFrameNumber() const;
273 273
274 virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface); 274 virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface);
275 bool IsContextLost(); 275 bool IsContextLost();
276 TileManager* tile_manager() { return tile_manager_.get(); } 276 TileManager* tile_manager() { return tile_manager_.get(); }
277 void SetUseGpuRasterization(bool use_gpu);
278 bool use_gpu_rasterization() const { return use_gpu_rasterization_; }
277 ResourcePool* resource_pool() { return resource_pool_.get(); } 279 ResourcePool* resource_pool() { return resource_pool_.get(); }
278 Renderer* renderer() { return renderer_.get(); } 280 Renderer* renderer() { return renderer_.get(); }
279 const RendererCapabilitiesImpl& GetRendererCapabilities() const; 281 const RendererCapabilitiesImpl& GetRendererCapabilities() const;
280 282
281 virtual bool SwapBuffers(const FrameData& frame); 283 virtual bool SwapBuffers(const FrameData& frame);
282 void SetNeedsBeginFrame(bool enable); 284 void SetNeedsBeginFrame(bool enable);
283 virtual void WillBeginImplFrame(const BeginFrameArgs& args); 285 virtual void WillBeginImplFrame(const BeginFrameArgs& args);
284 void DidModifyTilePriorities(); 286 void DidModifyTilePriorities();
285 287
286 LayerTreeImpl* active_tree() { return active_tree_.get(); } 288 LayerTreeImpl* active_tree() { return active_tree_.get(); }
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 // request queue. 554 // request queue.
553 std::set<UIResourceId> evicted_ui_resources_; 555 std::set<UIResourceId> evicted_ui_resources_;
554 556
555 scoped_ptr<OutputSurface> output_surface_; 557 scoped_ptr<OutputSurface> output_surface_;
556 scoped_refptr<ContextProvider> offscreen_context_provider_; 558 scoped_refptr<ContextProvider> offscreen_context_provider_;
557 559
558 // |resource_provider_| and |tile_manager_| can be NULL, e.g. when using tile- 560 // |resource_provider_| and |tile_manager_| can be NULL, e.g. when using tile-
559 // free rendering - see OutputSurface::ForcedDrawToSoftwareDevice(). 561 // free rendering - see OutputSurface::ForcedDrawToSoftwareDevice().
560 scoped_ptr<ResourceProvider> resource_provider_; 562 scoped_ptr<ResourceProvider> resource_provider_;
561 scoped_ptr<TileManager> tile_manager_; 563 scoped_ptr<TileManager> tile_manager_;
564 bool use_gpu_rasterization_;
562 scoped_ptr<RasterWorkerPool> raster_worker_pool_; 565 scoped_ptr<RasterWorkerPool> raster_worker_pool_;
563 scoped_ptr<RasterWorkerPool> direct_raster_worker_pool_; 566 scoped_ptr<RasterWorkerPool> direct_raster_worker_pool_;
564 scoped_ptr<ResourcePool> resource_pool_; 567 scoped_ptr<ResourcePool> resource_pool_;
565 scoped_ptr<ResourcePool> staging_resource_pool_; 568 scoped_ptr<ResourcePool> staging_resource_pool_;
566 scoped_ptr<Renderer> renderer_; 569 scoped_ptr<Renderer> renderer_;
567 570
568 GlobalStateThatImpactsTilePriority global_tile_state_; 571 GlobalStateThatImpactsTilePriority global_tile_state_;
569 572
570 // Tree currently being drawn. 573 // Tree currently being drawn.
571 scoped_ptr<LayerTreeImpl> active_tree_; 574 scoped_ptr<LayerTreeImpl> active_tree_;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 std::set<SwapPromiseMonitor*> swap_promise_monitor_; 682 std::set<SwapPromiseMonitor*> swap_promise_monitor_;
680 683
681 size_t transfer_buffer_memory_limit_; 684 size_t transfer_buffer_memory_limit_;
682 685
683 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 686 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
684 }; 687 };
685 688
686 } // namespace cc 689 } // namespace cc
687 690
688 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 691 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698