| 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 |
| 11 #include "base/trace_event/trace_event.h" | 11 #include "base/trace_event/trace_event.h" |
| 12 #include "base/trace_event/trace_event_argument.h" | 12 #include "base/trace_event/trace_event_argument.h" |
| 13 #include "cc/animation/animation_host.h" | 13 #include "cc/animation/animation_host.h" |
| 14 #include "cc/animation/keyframed_animation_curve.h" | |
| 15 #include "cc/animation/scrollbar_animation_controller.h" | 14 #include "cc/animation/scrollbar_animation_controller.h" |
| 16 #include "cc/animation/scrollbar_animation_controller_linear_fade.h" | 15 #include "cc/animation/scrollbar_animation_controller_linear_fade.h" |
| 17 #include "cc/animation/scrollbar_animation_controller_thinning.h" | 16 #include "cc/animation/scrollbar_animation_controller_thinning.h" |
| 18 #include "cc/base/math_util.h" | 17 #include "cc/base/math_util.h" |
| 19 #include "cc/base/synced_property.h" | 18 #include "cc/base/synced_property.h" |
| 20 #include "cc/base/util.h" | 19 #include "cc/base/util.h" |
| 21 #include "cc/debug/devtools_instrumentation.h" | 20 #include "cc/debug/devtools_instrumentation.h" |
| 22 #include "cc/debug/traced_value.h" | 21 #include "cc/debug/traced_value.h" |
| 23 #include "cc/input/layer_scroll_offset_delegate.h" | 22 #include "cc/input/layer_scroll_offset_delegate.h" |
| 24 #include "cc/input/page_scale_animation.h" | 23 #include "cc/input/page_scale_animation.h" |
| (...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 } | 951 } |
| 953 | 952 |
| 954 bool LayerTreeImpl::create_low_res_tiling() const { | 953 bool LayerTreeImpl::create_low_res_tiling() const { |
| 955 return layer_tree_host_impl_->create_low_res_tiling(); | 954 return layer_tree_host_impl_->create_low_res_tiling(); |
| 956 } | 955 } |
| 957 | 956 |
| 958 void LayerTreeImpl::SetNeedsRedraw() { | 957 void LayerTreeImpl::SetNeedsRedraw() { |
| 959 layer_tree_host_impl_->SetNeedsRedraw(); | 958 layer_tree_host_impl_->SetNeedsRedraw(); |
| 960 } | 959 } |
| 961 | 960 |
| 962 AnimationRegistrar* LayerTreeImpl::GetAnimationRegistrar() const { | |
| 963 return layer_tree_host_impl_->animation_registrar(); | |
| 964 } | |
| 965 | |
| 966 void LayerTreeImpl::GetAllTilesAndPrioritiesForTracing( | 961 void LayerTreeImpl::GetAllTilesAndPrioritiesForTracing( |
| 967 std::map<const Tile*, TilePriority>* tile_map) const { | 962 std::map<const Tile*, TilePriority>* tile_map) const { |
| 968 typedef LayerIterator<LayerImpl> LayerIteratorType; | 963 typedef LayerIterator<LayerImpl> LayerIteratorType; |
| 969 LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list_); | 964 LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list_); |
| 970 for (LayerIteratorType it = | 965 for (LayerIteratorType it = |
| 971 LayerIteratorType::Begin(&render_surface_layer_list_); | 966 LayerIteratorType::Begin(&render_surface_layer_list_); |
| 972 it != end; | 967 it != end; |
| 973 ++it) { | 968 ++it) { |
| 974 if (!it.represents_itself()) | 969 if (!it.represents_itself()) |
| 975 continue; | 970 continue; |
| (...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1691 const gfx::BoxF& box, | 1686 const gfx::BoxF& box, |
| 1692 gfx::BoxF* bounds) const { | 1687 gfx::BoxF* bounds) const { |
| 1693 *bounds = gfx::BoxF(); | 1688 *bounds = gfx::BoxF(); |
| 1694 return layer_tree_host_impl_->animation_host() | 1689 return layer_tree_host_impl_->animation_host() |
| 1695 ? layer_tree_host_impl_->animation_host() | 1690 ? layer_tree_host_impl_->animation_host() |
| 1696 ->TransformAnimationBoundsForBox(layer->id(), box, bounds) | 1691 ->TransformAnimationBoundsForBox(layer->id(), box, bounds) |
| 1697 : true; | 1692 : true; |
| 1698 } | 1693 } |
| 1699 | 1694 |
| 1700 } // namespace cc | 1695 } // namespace cc |
| OLD | NEW |