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 #include "cc/trees/layer_tree_impl.h" | 5 #include "cc/trees/layer_tree_impl.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 return tree->LayerById(id); | 743 return tree->LayerById(id); |
744 } | 744 } |
745 | 745 |
746 LayerImpl* LayerTreeImpl::FindPendingTreeLayerById(int id) { | 746 LayerImpl* LayerTreeImpl::FindPendingTreeLayerById(int id) { |
747 LayerTreeImpl* tree = layer_tree_host_impl_->pending_tree(); | 747 LayerTreeImpl* tree = layer_tree_host_impl_->pending_tree(); |
748 if (!tree) | 748 if (!tree) |
749 return NULL; | 749 return NULL; |
750 return tree->LayerById(id); | 750 return tree->LayerById(id); |
751 } | 751 } |
752 | 752 |
| 753 LayerImpl* LayerTreeImpl::FindRecycleTreeLayerById(int id) { |
| 754 LayerTreeImpl* tree = layer_tree_host_impl_->recycle_tree(); |
| 755 if (!tree) |
| 756 return NULL; |
| 757 return tree->LayerById(id); |
| 758 } |
| 759 |
753 bool LayerTreeImpl::PinchGestureActive() const { | 760 bool LayerTreeImpl::PinchGestureActive() const { |
754 return layer_tree_host_impl_->pinch_gesture_active(); | 761 return layer_tree_host_impl_->pinch_gesture_active(); |
755 } | 762 } |
756 | 763 |
757 BeginFrameArgs LayerTreeImpl::CurrentBeginFrameArgs() const { | 764 BeginFrameArgs LayerTreeImpl::CurrentBeginFrameArgs() const { |
758 return layer_tree_host_impl_->CurrentBeginFrameArgs(); | 765 return layer_tree_host_impl_->CurrentBeginFrameArgs(); |
759 } | 766 } |
760 | 767 |
761 base::TimeDelta LayerTreeImpl::begin_impl_frame_interval() const { | 768 base::TimeDelta LayerTreeImpl::begin_impl_frame_interval() const { |
762 return layer_tree_host_impl_->begin_impl_frame_interval(); | 769 return layer_tree_host_impl_->begin_impl_frame_interval(); |
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1515 page_scale, | 1522 page_scale, |
1516 duration.InSecondsF()); | 1523 duration.InSecondsF()); |
1517 } | 1524 } |
1518 } | 1525 } |
1519 | 1526 |
1520 scoped_ptr<PageScaleAnimation> LayerTreeImpl::TakePageScaleAnimation() { | 1527 scoped_ptr<PageScaleAnimation> LayerTreeImpl::TakePageScaleAnimation() { |
1521 return page_scale_animation_.Pass(); | 1528 return page_scale_animation_.Pass(); |
1522 } | 1529 } |
1523 | 1530 |
1524 } // namespace cc | 1531 } // namespace cc |
OLD | NEW |