| 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 | |
| 728 int LayerTreeImpl::MaxTextureSize() const { | 721 int LayerTreeImpl::MaxTextureSize() const { |
| 729 return layer_tree_host_impl_->GetRendererCapabilities().max_texture_size; | 722 return layer_tree_host_impl_->GetRendererCapabilities().max_texture_size; |
| 730 } | 723 } |
| 731 | 724 |
| 732 bool LayerTreeImpl::PinchGestureActive() const { | 725 bool LayerTreeImpl::PinchGestureActive() const { |
| 733 return layer_tree_host_impl_->pinch_gesture_active(); | 726 return layer_tree_host_impl_->pinch_gesture_active(); |
| 734 } | 727 } |
| 735 | 728 |
| 736 base::TimeTicks LayerTreeImpl::CurrentFrameTimeTicks() const { | 729 base::TimeTicks LayerTreeImpl::CurrentFrameTimeTicks() const { |
| 737 return layer_tree_host_impl_->CurrentFrameTimeTicks(); | 730 return layer_tree_host_impl_->CurrentFrameTimeTicks(); |
| (...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1382 | 1375 |
| 1383 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { | 1376 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { |
| 1384 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); | 1377 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); |
| 1385 } | 1378 } |
| 1386 | 1379 |
| 1387 void LayerTreeImpl::InputScrollAnimationFinished() { | 1380 void LayerTreeImpl::InputScrollAnimationFinished() { |
| 1388 layer_tree_host_impl_->ScrollEnd(); | 1381 layer_tree_host_impl_->ScrollEnd(); |
| 1389 } | 1382 } |
| 1390 | 1383 |
| 1391 } // namespace cc | 1384 } // namespace cc |
| OLD | NEW |