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