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 <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 1953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1964 IsActiveTree() ? LayerTreeType::ACTIVE : LayerTreeType::PENDING; | 1964 IsActiveTree() ? LayerTreeType::ACTIVE : LayerTreeType::PENDING; |
1965 return layer_tree_host_impl_->animation_host() | 1965 return layer_tree_host_impl_->animation_host() |
1966 ? layer_tree_host_impl_->animation_host() | 1966 ? layer_tree_host_impl_->animation_host() |
1967 ->HasPotentiallyRunningTransformAnimation(layer->id(), | 1967 ->HasPotentiallyRunningTransformAnimation(layer->id(), |
1968 tree_type) | 1968 tree_type) |
1969 : false; | 1969 : false; |
1970 } | 1970 } |
1971 | 1971 |
1972 bool LayerTreeImpl::HasAnyAnimationTargetingProperty( | 1972 bool LayerTreeImpl::HasAnyAnimationTargetingProperty( |
1973 const LayerImpl* layer, | 1973 const LayerImpl* layer, |
1974 Animation::TargetProperty property) const { | 1974 AnimationTargetProperty property) const { |
1975 return layer_tree_host_impl_->animation_host() | 1975 return layer_tree_host_impl_->animation_host() |
1976 ? layer_tree_host_impl_->animation_host() | 1976 ? layer_tree_host_impl_->animation_host() |
1977 ->HasAnyAnimationTargetingProperty(layer->id(), property) | 1977 ->HasAnyAnimationTargetingProperty(layer->id(), property) |
1978 : false; | 1978 : false; |
1979 } | 1979 } |
1980 | 1980 |
1981 bool LayerTreeImpl::FilterIsAnimatingOnImplOnly(const LayerImpl* layer) const { | 1981 bool LayerTreeImpl::FilterIsAnimatingOnImplOnly(const LayerImpl* layer) const { |
1982 return layer_tree_host_impl_->animation_host() | 1982 return layer_tree_host_impl_->animation_host() |
1983 ? layer_tree_host_impl_->animation_host() | 1983 ? layer_tree_host_impl_->animation_host() |
1984 ->FilterIsAnimatingOnImplOnly(layer->id()) | 1984 ->FilterIsAnimatingOnImplOnly(layer->id()) |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2076 const gfx::BoxF& box, | 2076 const gfx::BoxF& box, |
2077 gfx::BoxF* bounds) const { | 2077 gfx::BoxF* bounds) const { |
2078 *bounds = gfx::BoxF(); | 2078 *bounds = gfx::BoxF(); |
2079 return layer_tree_host_impl_->animation_host() | 2079 return layer_tree_host_impl_->animation_host() |
2080 ? layer_tree_host_impl_->animation_host() | 2080 ? layer_tree_host_impl_->animation_host() |
2081 ->TransformAnimationBoundsForBox(layer->id(), box, bounds) | 2081 ->TransformAnimationBoundsForBox(layer->id(), box, bounds) |
2082 : true; | 2082 : true; |
2083 } | 2083 } |
2084 | 2084 |
2085 } // namespace cc | 2085 } // namespace cc |
OLD | NEW |