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

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: updated unittests 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
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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 OutputSurface* output_surface() const { return output_surface_.get(); } 265 OutputSurface* output_surface() const { return output_surface_.get(); }
266 266
267 std::string LayerTreeAsJson() const; 267 std::string LayerTreeAsJson() const;
268 268
269 void FinishAllRendering(); 269 void FinishAllRendering();
270 int SourceAnimationFrameNumber() const; 270 int SourceAnimationFrameNumber() const;
271 271
272 virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface); 272 virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface);
273 bool IsContextLost(); 273 bool IsContextLost();
274 TileManager* tile_manager() { return tile_manager_.get(); } 274 TileManager* tile_manager() { return tile_manager_.get(); }
275 void SetUseGpuRasterization(bool use_gpu);
276 bool use_gpu_rasterization() const { return use_gpu_rasterization_; }
275 ResourcePool* resource_pool() { return resource_pool_.get(); } 277 ResourcePool* resource_pool() { return resource_pool_.get(); }
276 Renderer* renderer() { return renderer_.get(); } 278 Renderer* renderer() { return renderer_.get(); }
277 const RendererCapabilitiesImpl& GetRendererCapabilities() const; 279 const RendererCapabilitiesImpl& GetRendererCapabilities() const;
278 280
279 virtual bool SwapBuffers(const FrameData& frame); 281 virtual bool SwapBuffers(const FrameData& frame);
280 void SetNeedsBeginFrame(bool enable); 282 void SetNeedsBeginFrame(bool enable);
281 virtual void WillBeginImplFrame(const BeginFrameArgs& args); 283 virtual void WillBeginImplFrame(const BeginFrameArgs& args);
282 void DidModifyTilePriorities(); 284 void DidModifyTilePriorities();
283 285
284 void Readback(void* pixels, const gfx::Rect& rect_in_device_viewport); 286 void Readback(void* pixels, const gfx::Rect& rect_in_device_viewport);
(...skipping 267 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

Powered by Google App Engine
This is Rietveld 408576698