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 1826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1837 } | 1837 } |
1838 | 1838 |
1839 bool LayerTreeImpl::TransformIsAnimatingOnImplOnly( | 1839 bool LayerTreeImpl::TransformIsAnimatingOnImplOnly( |
1840 const LayerImpl* layer) const { | 1840 const LayerImpl* layer) const { |
1841 return layer_tree_host_impl_->animation_host() | 1841 return layer_tree_host_impl_->animation_host() |
1842 ? layer_tree_host_impl_->animation_host() | 1842 ? layer_tree_host_impl_->animation_host() |
1843 ->TransformIsAnimatingOnImplOnly(layer->id()) | 1843 ->TransformIsAnimatingOnImplOnly(layer->id()) |
1844 : false; | 1844 : false; |
1845 } | 1845 } |
1846 | 1846 |
1847 bool LayerTreeImpl::AnimationsPreserveAxisAlignment( | |
1848 const LayerImpl* layer) const { | |
1849 return layer_tree_host_impl_->animation_host() | |
1850 ? layer_tree_host_impl_->animation_host() | |
1851 ->AnimationsPreserveAxisAlignment(layer->id()) | |
1852 : true; | |
1853 } | |
1854 | |
1855 bool LayerTreeImpl::HasOnlyTranslationTransforms(const LayerImpl* layer) const { | 1847 bool LayerTreeImpl::HasOnlyTranslationTransforms(const LayerImpl* layer) const { |
1856 LayerTreeType tree_type = | 1848 LayerTreeType tree_type = |
1857 IsActiveTree() ? LayerTreeType::ACTIVE : LayerTreeType::PENDING; | 1849 IsActiveTree() ? LayerTreeType::ACTIVE : LayerTreeType::PENDING; |
1858 return layer_tree_host_impl_->animation_host() | 1850 return layer_tree_host_impl_->animation_host() |
1859 ? layer_tree_host_impl_->animation_host() | 1851 ? layer_tree_host_impl_->animation_host() |
1860 ->HasOnlyTranslationTransforms(layer->id(), tree_type) | 1852 ->HasOnlyTranslationTransforms(layer->id(), tree_type) |
1861 : true; | 1853 : true; |
1862 } | 1854 } |
1863 | 1855 |
1864 bool LayerTreeImpl::MaximumTargetScale(const LayerImpl* layer, | 1856 bool LayerTreeImpl::MaximumTargetScale(const LayerImpl* layer, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1920 const gfx::BoxF& box, | 1912 const gfx::BoxF& box, |
1921 gfx::BoxF* bounds) const { | 1913 gfx::BoxF* bounds) const { |
1922 *bounds = gfx::BoxF(); | 1914 *bounds = gfx::BoxF(); |
1923 return layer_tree_host_impl_->animation_host() | 1915 return layer_tree_host_impl_->animation_host() |
1924 ? layer_tree_host_impl_->animation_host() | 1916 ? layer_tree_host_impl_->animation_host() |
1925 ->TransformAnimationBoundsForBox(layer->id(), box, bounds) | 1917 ->TransformAnimationBoundsForBox(layer->id(), box, bounds) |
1926 : true; | 1918 : true; |
1927 } | 1919 } |
1928 | 1920 |
1929 } // namespace cc | 1921 } // namespace cc |
OLD | NEW |