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

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

Issue 2151433004: cc: Make LayerTreeHostImpl::SwapBuffers not virtual. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@removedidswap
Patch Set: novirtualswapbuffers: num_draws_ Created 4 years, 5 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
« no previous file with comments | « cc/test/test_hooks.h ('k') | cc/trees/layer_tree_host_unittest.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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <bitset> 10 #include <bitset>
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 bool create_low_res_tiling() const { 417 bool create_low_res_tiling() const {
418 return settings_.create_low_res_tiling && !use_gpu_rasterization_; 418 return settings_.create_low_res_tiling && !use_gpu_rasterization_;
419 } 419 }
420 ResourcePool* resource_pool() { return resource_pool_.get(); } 420 ResourcePool* resource_pool() { return resource_pool_.get(); }
421 Renderer* renderer() { return renderer_.get(); } 421 Renderer* renderer() { return renderer_.get(); }
422 ImageDecodeController* image_decode_controller() { 422 ImageDecodeController* image_decode_controller() {
423 return image_decode_controller_.get(); 423 return image_decode_controller_.get();
424 } 424 }
425 const RendererCapabilitiesImpl& GetRendererCapabilities() const; 425 const RendererCapabilitiesImpl& GetRendererCapabilities() const;
426 426
427 virtual bool SwapBuffers(const FrameData& frame); 427 bool SwapBuffers(const FrameData& frame);
428 virtual void WillBeginImplFrame(const BeginFrameArgs& args); 428 virtual void WillBeginImplFrame(const BeginFrameArgs& args);
429 virtual void DidFinishImplFrame(); 429 virtual void DidFinishImplFrame();
430 void DidModifyTilePriorities(); 430 void DidModifyTilePriorities();
431 431
432 LayerTreeImpl* active_tree() { return active_tree_.get(); } 432 LayerTreeImpl* active_tree() { return active_tree_.get(); }
433 const LayerTreeImpl* active_tree() const { return active_tree_.get(); } 433 const LayerTreeImpl* active_tree() const { return active_tree_.get(); }
434 LayerTreeImpl* pending_tree() { return pending_tree_.get(); } 434 LayerTreeImpl* pending_tree() { return pending_tree_.get(); }
435 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); } 435 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); }
436 LayerTreeImpl* recycle_tree() { return recycle_tree_.get(); } 436 LayerTreeImpl* recycle_tree() { return recycle_tree_.get(); }
437 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); } 437 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); }
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 849
850 std::unique_ptr<PendingTreeDurationHistogramTimer> 850 std::unique_ptr<PendingTreeDurationHistogramTimer>
851 pending_tree_duration_timer_; 851 pending_tree_duration_timer_;
852 852
853 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 853 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
854 }; 854 };
855 855
856 } // namespace cc 856 } // namespace cc
857 857
858 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 858 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/test_hooks.h ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698