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 1905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1916 IsActiveTree() ? LayerTreeType::ACTIVE : LayerTreeType::PENDING; | 1916 IsActiveTree() ? LayerTreeType::ACTIVE : LayerTreeType::PENDING; |
1917 return layer_tree_host_impl_->animation_host() | 1917 return layer_tree_host_impl_->animation_host() |
1918 ? layer_tree_host_impl_->animation_host() | 1918 ? layer_tree_host_impl_->animation_host() |
1919 ->HasPotentiallyRunningTransformAnimation(layer->id(), | 1919 ->HasPotentiallyRunningTransformAnimation(layer->id(), |
1920 tree_type) | 1920 tree_type) |
1921 : false; | 1921 : false; |
1922 } | 1922 } |
1923 | 1923 |
1924 bool LayerTreeImpl::HasAnyAnimationTargetingProperty( | 1924 bool LayerTreeImpl::HasAnyAnimationTargetingProperty( |
1925 const LayerImpl* layer, | 1925 const LayerImpl* layer, |
1926 Animation::TargetProperty property) const { | 1926 TargetProperty::Type property) const { |
1927 return layer_tree_host_impl_->animation_host() | 1927 return layer_tree_host_impl_->animation_host() |
1928 ? layer_tree_host_impl_->animation_host() | 1928 ? layer_tree_host_impl_->animation_host() |
1929 ->HasAnyAnimationTargetingProperty(layer->id(), property) | 1929 ->HasAnyAnimationTargetingProperty(layer->id(), property) |
1930 : false; | 1930 : false; |
1931 } | 1931 } |
1932 | 1932 |
1933 bool LayerTreeImpl::FilterIsAnimatingOnImplOnly(const LayerImpl* layer) const { | 1933 bool LayerTreeImpl::FilterIsAnimatingOnImplOnly(const LayerImpl* layer) const { |
1934 return layer_tree_host_impl_->animation_host() | 1934 return layer_tree_host_impl_->animation_host() |
1935 ? layer_tree_host_impl_->animation_host() | 1935 ? layer_tree_host_impl_->animation_host() |
1936 ->FilterIsAnimatingOnImplOnly(layer->id()) | 1936 ->FilterIsAnimatingOnImplOnly(layer->id()) |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2028 const gfx::BoxF& box, | 2028 const gfx::BoxF& box, |
2029 gfx::BoxF* bounds) const { | 2029 gfx::BoxF* bounds) const { |
2030 *bounds = gfx::BoxF(); | 2030 *bounds = gfx::BoxF(); |
2031 return layer_tree_host_impl_->animation_host() | 2031 return layer_tree_host_impl_->animation_host() |
2032 ? layer_tree_host_impl_->animation_host() | 2032 ? layer_tree_host_impl_->animation_host() |
2033 ->TransformAnimationBoundsForBox(layer->id(), box, bounds) | 2033 ->TransformAnimationBoundsForBox(layer->id(), box, bounds) |
2034 : true; | 2034 : true; |
2035 } | 2035 } |
2036 | 2036 |
2037 } // namespace cc | 2037 } // namespace cc |
OLD | NEW |