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(); } |
299 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); } | 300 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); } |
300 // Returns the tree LTH synchronizes with. | 301 // Returns the tree LTH synchronizes with. |
301 LayerTreeImpl* sync_tree() { | 302 LayerTreeImpl* sync_tree() { |
302 return pending_tree_ ? pending_tree_.get() : active_tree_.get(); | 303 return pending_tree_ ? pending_tree_.get() : active_tree_.get(); |
303 } | 304 } |
304 virtual void CreatePendingTree(); | 305 virtual void CreatePendingTree(); |
305 virtual void UpdateVisibleTiles(); | 306 virtual void UpdateVisibleTiles(); |
306 virtual void ActivateSyncTree(); | 307 virtual void ActivateSyncTree(); |
307 | 308 |
308 // Shortcuts to layers on the active tree. | 309 // Shortcuts to layers on the active tree. |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 size_t transfer_buffer_memory_limit_; | 691 size_t transfer_buffer_memory_limit_; |
691 | 692 |
692 std::vector<PictureLayerImpl*> picture_layers_; | 693 std::vector<PictureLayerImpl*> picture_layers_; |
693 | 694 |
694 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 695 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
695 }; | 696 }; |
696 | 697 |
697 } // namespace cc | 698 } // namespace cc |
698 | 699 |
699 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 700 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |