| 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 <list> | 8 #include <list> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 | 289 |
| 290 virtual bool SwapBuffers(const FrameData& frame); | 290 virtual bool SwapBuffers(const FrameData& frame); |
| 291 void SetNeedsBeginFrame(bool enable); | 291 void SetNeedsBeginFrame(bool enable); |
| 292 virtual void WillBeginImplFrame(const BeginFrameArgs& args); | 292 virtual void WillBeginImplFrame(const BeginFrameArgs& args); |
| 293 void DidModifyTilePriorities(); | 293 void DidModifyTilePriorities(); |
| 294 | 294 |
| 295 LayerTreeImpl* active_tree() { return active_tree_.get(); } | 295 LayerTreeImpl* active_tree() { return active_tree_.get(); } |
| 296 const LayerTreeImpl* active_tree() const { return active_tree_.get(); } | 296 const LayerTreeImpl* active_tree() const { return active_tree_.get(); } |
| 297 LayerTreeImpl* pending_tree() { return pending_tree_.get(); } | 297 LayerTreeImpl* pending_tree() { return pending_tree_.get(); } |
| 298 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); } | 298 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); } |
| 299 LayerTreeImpl* recycle_tree() { return recycle_tree_.get(); } | |
| 300 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); } | 299 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); } |
| 301 // Returns the tree LTH synchronizes with. | 300 // Returns the tree LTH synchronizes with. |
| 302 LayerTreeImpl* sync_tree() { | 301 LayerTreeImpl* sync_tree() { |
| 303 return pending_tree_ ? pending_tree_.get() : active_tree_.get(); | 302 return pending_tree_ ? pending_tree_.get() : active_tree_.get(); |
| 304 } | 303 } |
| 305 virtual void CreatePendingTree(); | 304 virtual void CreatePendingTree(); |
| 306 virtual void UpdateVisibleTiles(); | 305 virtual void UpdateVisibleTiles(); |
| 307 virtual void ActivateSyncTree(); | 306 virtual void ActivateSyncTree(); |
| 308 | 307 |
| 309 // Shortcuts to layers on the active tree. | 308 // Shortcuts to layers on the active tree. |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 size_t transfer_buffer_memory_limit_; | 690 size_t transfer_buffer_memory_limit_; |
| 692 | 691 |
| 693 std::vector<PictureLayerImpl*> picture_layers_; | 692 std::vector<PictureLayerImpl*> picture_layers_; |
| 694 | 693 |
| 695 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 694 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 696 }; | 695 }; |
| 697 | 696 |
| 698 } // namespace cc | 697 } // namespace cc |
| 699 | 698 |
| 700 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 699 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |