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

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

Issue 916723002: cc: Add threaded GPU rasterization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implement ContextProviderInProcess::DetachFromThread(). Created 5 years, 10 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
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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 void set_gpu_rasterization_status( 306 void set_gpu_rasterization_status(
307 GpuRasterizationStatus gpu_rasterization_status) { 307 GpuRasterizationStatus gpu_rasterization_status) {
308 gpu_rasterization_status_ = gpu_rasterization_status; 308 gpu_rasterization_status_ = gpu_rasterization_status;
309 } 309 }
310 310
311 bool create_low_res_tiling() const { 311 bool create_low_res_tiling() const {
312 return settings_.create_low_res_tiling && !use_gpu_rasterization_; 312 return settings_.create_low_res_tiling && !use_gpu_rasterization_;
313 } 313 }
314 ResourcePool* resource_pool() { return resource_pool_.get(); } 314 ResourcePool* resource_pool() { return resource_pool_.get(); }
315 Renderer* renderer() { return renderer_.get(); } 315 Renderer* renderer() { return renderer_.get(); }
316 Rasterizer* rasterizer() { return rasterizer_.get(); }
316 const RendererCapabilitiesImpl& GetRendererCapabilities() const; 317 const RendererCapabilitiesImpl& GetRendererCapabilities() const;
317 318
318 virtual bool SwapBuffers(const FrameData& frame); 319 virtual bool SwapBuffers(const FrameData& frame);
319 virtual void WillBeginImplFrame(const BeginFrameArgs& args); 320 virtual void WillBeginImplFrame(const BeginFrameArgs& args);
320 void DidModifyTilePriorities(); 321 void DidModifyTilePriorities();
321 322
322 LayerTreeImpl* active_tree() { return active_tree_.get(); } 323 LayerTreeImpl* active_tree() { return active_tree_.get(); }
323 const LayerTreeImpl* active_tree() const { return active_tree_.get(); } 324 const LayerTreeImpl* active_tree() const { return active_tree_.get(); }
324 LayerTreeImpl* pending_tree() { return pending_tree_.get(); } 325 LayerTreeImpl* pending_tree() { return pending_tree_.get(); }
325 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); } 326 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); }
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 bool is_likely_to_require_a_draw_; 734 bool is_likely_to_require_a_draw_;
734 735
735 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; 736 scoped_ptr<FrameTimingTracker> frame_timing_tracker_;
736 737
737 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 738 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
738 }; 739 };
739 740
740 } // namespace cc 741 } // namespace cc
741 742
742 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 743 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698