| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |