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 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 return tree->LayerById(id); | 711 return tree->LayerById(id); |
712 } | 712 } |
713 | 713 |
714 LayerImpl* LayerTreeImpl::FindPendingTreeLayerById(int id) { | 714 LayerImpl* LayerTreeImpl::FindPendingTreeLayerById(int id) { |
715 LayerTreeImpl* tree = layer_tree_host_impl_->pending_tree(); | 715 LayerTreeImpl* tree = layer_tree_host_impl_->pending_tree(); |
716 if (!tree) | 716 if (!tree) |
717 return NULL; | 717 return NULL; |
718 return tree->LayerById(id); | 718 return tree->LayerById(id); |
719 } | 719 } |
720 | 720 |
| 721 LayerImpl* LayerTreeImpl::FindRecycleTreeLayerById(int id) { |
| 722 LayerTreeImpl* tree = layer_tree_host_impl_->recycle_tree(); |
| 723 if (!tree) |
| 724 return NULL; |
| 725 return tree->LayerById(id); |
| 726 } |
| 727 |
721 int LayerTreeImpl::MaxTextureSize() const { | 728 int LayerTreeImpl::MaxTextureSize() const { |
722 return layer_tree_host_impl_->GetRendererCapabilities().max_texture_size; | 729 return layer_tree_host_impl_->GetRendererCapabilities().max_texture_size; |
723 } | 730 } |
724 | 731 |
725 bool LayerTreeImpl::PinchGestureActive() const { | 732 bool LayerTreeImpl::PinchGestureActive() const { |
726 return layer_tree_host_impl_->pinch_gesture_active(); | 733 return layer_tree_host_impl_->pinch_gesture_active(); |
727 } | 734 } |
728 | 735 |
729 base::TimeTicks LayerTreeImpl::CurrentFrameTimeTicks() const { | 736 base::TimeTicks LayerTreeImpl::CurrentFrameTimeTicks() const { |
730 return layer_tree_host_impl_->CurrentFrameTimeTicks(); | 737 return layer_tree_host_impl_->CurrentFrameTimeTicks(); |
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1375 | 1382 |
1376 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { | 1383 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { |
1377 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); | 1384 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); |
1378 } | 1385 } |
1379 | 1386 |
1380 void LayerTreeImpl::InputScrollAnimationFinished() { | 1387 void LayerTreeImpl::InputScrollAnimationFinished() { |
1381 layer_tree_host_impl_->ScrollEnd(); | 1388 layer_tree_host_impl_->ScrollEnd(); |
1382 } | 1389 } |
1383 | 1390 |
1384 } // namespace cc | 1391 } // namespace cc |
OLD | NEW |