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

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: 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 void set_gpu_rasterization_status( 310 void set_gpu_rasterization_status(
311 GpuRasterizationStatus gpu_rasterization_status) { 311 GpuRasterizationStatus gpu_rasterization_status) {
312 gpu_rasterization_status_ = gpu_rasterization_status; 312 gpu_rasterization_status_ = gpu_rasterization_status;
313 } 313 }
314 314
315 bool create_low_res_tiling() const { 315 bool create_low_res_tiling() const {
316 return settings_.create_low_res_tiling && !use_gpu_rasterization_; 316 return settings_.create_low_res_tiling && !use_gpu_rasterization_;
317 } 317 }
318 ResourcePool* resource_pool() { return resource_pool_.get(); } 318 ResourcePool* resource_pool() { return resource_pool_.get(); }
319 Renderer* renderer() { return renderer_.get(); } 319 Renderer* renderer() { return renderer_.get(); }
320 Rasterizer* rasterizer() { return rasterizer_.get(); }
320 const RendererCapabilitiesImpl& GetRendererCapabilities() const; 321 const RendererCapabilitiesImpl& GetRendererCapabilities() const;
321 322
322 virtual bool SwapBuffers(const FrameData& frame); 323 virtual bool SwapBuffers(const FrameData& frame);
323 virtual void WillBeginImplFrame(const BeginFrameArgs& args); 324 virtual void WillBeginImplFrame(const BeginFrameArgs& args);
324 void DidModifyTilePriorities(); 325 void DidModifyTilePriorities();
325 326
326 LayerTreeImpl* active_tree() { return active_tree_.get(); } 327 LayerTreeImpl* active_tree() { return active_tree_.get(); }
327 const LayerTreeImpl* active_tree() const { return active_tree_.get(); } 328 const LayerTreeImpl* active_tree() const { return active_tree_.get(); }
328 LayerTreeImpl* pending_tree() { return pending_tree_.get(); } 329 LayerTreeImpl* pending_tree() { return pending_tree_.get(); }
329 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); } 330 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); }
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 bool is_likely_to_require_a_draw_; 743 bool is_likely_to_require_a_draw_;
743 744
744 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; 745 scoped_ptr<FrameTimingTracker> frame_timing_tracker_;
745 746
746 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 747 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
747 }; 748 };
748 749
749 } // namespace cc 750 } // namespace cc
750 751
751 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 752 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698