| 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 1926 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1937 : false; | 1937 : false; |
| 1938 } | 1938 } |
| 1939 | 1939 |
| 1940 bool LayerTreeImpl::OpacityIsAnimatingOnImplOnly(const LayerImpl* layer) const { | 1940 bool LayerTreeImpl::OpacityIsAnimatingOnImplOnly(const LayerImpl* layer) const { |
| 1941 return layer_tree_host_impl_->animation_host() | 1941 return layer_tree_host_impl_->animation_host() |
| 1942 ? layer_tree_host_impl_->animation_host() | 1942 ? layer_tree_host_impl_->animation_host() |
| 1943 ->OpacityIsAnimatingOnImplOnly(layer->id()) | 1943 ->OpacityIsAnimatingOnImplOnly(layer->id()) |
| 1944 : false; | 1944 : false; |
| 1945 } | 1945 } |
| 1946 | 1946 |
| 1947 bool LayerTreeImpl::ScrollOffsetIsAnimatingOnImplOnly( |
| 1948 const LayerImpl* layer) const { |
| 1949 return layer_tree_host_impl_->animation_host() |
| 1950 ? layer_tree_host_impl_->animation_host() |
| 1951 ->ScrollOffsetIsAnimatingOnImplOnly(layer->id()) |
| 1952 : false; |
| 1953 } |
| 1954 |
| 1947 bool LayerTreeImpl::TransformIsAnimatingOnImplOnly( | 1955 bool LayerTreeImpl::TransformIsAnimatingOnImplOnly( |
| 1948 const LayerImpl* layer) const { | 1956 const LayerImpl* layer) const { |
| 1949 return layer_tree_host_impl_->animation_host() | 1957 return layer_tree_host_impl_->animation_host() |
| 1950 ? layer_tree_host_impl_->animation_host() | 1958 ? layer_tree_host_impl_->animation_host() |
| 1951 ->TransformIsAnimatingOnImplOnly(layer->id()) | 1959 ->TransformIsAnimatingOnImplOnly(layer->id()) |
| 1952 : false; | 1960 : false; |
| 1953 } | 1961 } |
| 1954 | 1962 |
| 1955 bool LayerTreeImpl::AnimationsPreserveAxisAlignment( | 1963 bool LayerTreeImpl::AnimationsPreserveAxisAlignment( |
| 1956 const LayerImpl* layer) const { | 1964 const LayerImpl* layer) const { |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2028 const gfx::BoxF& box, | 2036 const gfx::BoxF& box, |
| 2029 gfx::BoxF* bounds) const { | 2037 gfx::BoxF* bounds) const { |
| 2030 *bounds = gfx::BoxF(); | 2038 *bounds = gfx::BoxF(); |
| 2031 return layer_tree_host_impl_->animation_host() | 2039 return layer_tree_host_impl_->animation_host() |
| 2032 ? layer_tree_host_impl_->animation_host() | 2040 ? layer_tree_host_impl_->animation_host() |
| 2033 ->TransformAnimationBoundsForBox(layer->id(), box, bounds) | 2041 ->TransformAnimationBoundsForBox(layer->id(), box, bounds) |
| 2034 : true; | 2042 : true; |
| 2035 } | 2043 } |
| 2036 | 2044 |
| 2037 } // namespace cc | 2045 } // namespace cc |
| OLD | NEW |