| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 void DidModifyTilePriorities(); | 321 void DidModifyTilePriorities(); |
| 322 | 322 |
| 323 LayerTreeImpl* active_tree() { return active_tree_.get(); } | 323 LayerTreeImpl* active_tree() { return active_tree_.get(); } |
| 324 const LayerTreeImpl* active_tree() const { return active_tree_.get(); } | 324 const LayerTreeImpl* active_tree() const { return active_tree_.get(); } |
| 325 LayerTreeImpl* pending_tree() { return pending_tree_.get(); } | 325 LayerTreeImpl* pending_tree() { return pending_tree_.get(); } |
| 326 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); } | 326 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); } |
| 327 LayerTreeImpl* recycle_tree() { return recycle_tree_.get(); } | 327 LayerTreeImpl* recycle_tree() { return recycle_tree_.get(); } |
| 328 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); } | 328 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); } |
| 329 // Returns the tree LTH synchronizes with. | 329 // Returns the tree LTH synchronizes with. |
| 330 LayerTreeImpl* sync_tree() { | 330 LayerTreeImpl* sync_tree() { |
| 331 // TODO(enne): This is bogus. It should return based on the value of | |
| 332 // Proxy::CommitToActiveTree and not whether the pending tree exists. | |
| 333 return pending_tree_ ? pending_tree_.get() : active_tree_.get(); | 331 return pending_tree_ ? pending_tree_.get() : active_tree_.get(); |
| 334 } | 332 } |
| 335 virtual void CreatePendingTree(); | 333 virtual void CreatePendingTree(); |
| 336 virtual void ActivateSyncTree(); | 334 virtual void ActivateSyncTree(); |
| 337 | 335 |
| 338 // Shortcuts to layers on the active tree. | 336 // Shortcuts to layers on the active tree. |
| 339 LayerImpl* RootLayer() const; | 337 LayerImpl* RootLayer() const; |
| 340 LayerImpl* InnerViewportScrollLayer() const; | 338 LayerImpl* InnerViewportScrollLayer() const; |
| 341 LayerImpl* OuterViewportScrollLayer() const; | 339 LayerImpl* OuterViewportScrollLayer() const; |
| 342 LayerImpl* CurrentlyScrollingLayer() const; | 340 LayerImpl* CurrentlyScrollingLayer() const; |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 735 bool is_likely_to_require_a_draw_; | 733 bool is_likely_to_require_a_draw_; |
| 736 | 734 |
| 737 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 735 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
| 738 | 736 |
| 739 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 737 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 740 }; | 738 }; |
| 741 | 739 |
| 742 } // namespace cc | 740 } // namespace cc |
| 743 | 741 |
| 744 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 742 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |