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 <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
977 } | 977 } |
978 | 978 |
979 bool LayerTreeImpl::create_low_res_tiling() const { | 979 bool LayerTreeImpl::create_low_res_tiling() const { |
980 return layer_tree_host_impl_->create_low_res_tiling(); | 980 return layer_tree_host_impl_->create_low_res_tiling(); |
981 } | 981 } |
982 | 982 |
983 void LayerTreeImpl::SetNeedsRedraw() { | 983 void LayerTreeImpl::SetNeedsRedraw() { |
984 layer_tree_host_impl_->SetNeedsRedraw(); | 984 layer_tree_host_impl_->SetNeedsRedraw(); |
985 } | 985 } |
986 | 986 |
987 AnimationRegistrar* LayerTreeImpl::animationRegistrar() const { | 987 AnimationRegistrar* LayerTreeImpl::GetAnimationRegistrar() const { |
988 return layer_tree_host_impl_->animation_registrar(); | 988 return layer_tree_host_impl_->animation_registrar(); |
989 } | 989 } |
990 | 990 |
991 void LayerTreeImpl::GetAllTilesForTracing(std::set<const Tile*>* tiles) const { | 991 void LayerTreeImpl::GetAllTilesForTracing(std::set<const Tile*>* tiles) const { |
992 typedef LayerIterator<LayerImpl> LayerIteratorType; | 992 typedef LayerIterator<LayerImpl> LayerIteratorType; |
993 LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list_); | 993 LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list_); |
994 for (LayerIteratorType it = | 994 for (LayerIteratorType it = |
995 LayerIteratorType::Begin(&render_surface_layer_list_); | 995 LayerIteratorType::Begin(&render_surface_layer_list_); |
996 it != end; | 996 it != end; |
997 ++it) { | 997 ++it) { |
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1654 scoped_ptr<PendingPageScaleAnimation> pending_animation) { | 1654 scoped_ptr<PendingPageScaleAnimation> pending_animation) { |
1655 pending_page_scale_animation_ = pending_animation.Pass(); | 1655 pending_page_scale_animation_ = pending_animation.Pass(); |
1656 } | 1656 } |
1657 | 1657 |
1658 scoped_ptr<PendingPageScaleAnimation> | 1658 scoped_ptr<PendingPageScaleAnimation> |
1659 LayerTreeImpl::TakePendingPageScaleAnimation() { | 1659 LayerTreeImpl::TakePendingPageScaleAnimation() { |
1660 return pending_page_scale_animation_.Pass(); | 1660 return pending_page_scale_animation_.Pass(); |
1661 } | 1661 } |
1662 | 1662 |
1663 } // namespace cc | 1663 } // namespace cc |
OLD | NEW |