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