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. |
331 return pending_tree_ ? pending_tree_.get() : active_tree_.get(); | 333 return pending_tree_ ? pending_tree_.get() : active_tree_.get(); |
332 } | 334 } |
333 virtual void CreatePendingTree(); | 335 virtual void CreatePendingTree(); |
334 virtual void ActivateSyncTree(); | 336 virtual void ActivateSyncTree(); |
335 | 337 |
336 // Shortcuts to layers on the active tree. | 338 // Shortcuts to layers on the active tree. |
337 LayerImpl* RootLayer() const; | 339 LayerImpl* RootLayer() const; |
338 LayerImpl* InnerViewportScrollLayer() const; | 340 LayerImpl* InnerViewportScrollLayer() const; |
339 LayerImpl* OuterViewportScrollLayer() const; | 341 LayerImpl* OuterViewportScrollLayer() const; |
340 LayerImpl* CurrentlyScrollingLayer() const; | 342 LayerImpl* CurrentlyScrollingLayer() const; |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
733 bool is_likely_to_require_a_draw_; | 735 bool is_likely_to_require_a_draw_; |
734 | 736 |
735 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; | 737 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; |
736 | 738 |
737 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 739 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
738 }; | 740 }; |
739 | 741 |
740 } // namespace cc | 742 } // namespace cc |
741 | 743 |
742 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 744 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |