| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/layers/layer_utils.h" | 5 #include "cc/layers/layer_utils.h" |
| 6 | 6 |
| 7 #include "cc/layers/layer_impl.h" | 7 #include "cc/layers/layer_impl.h" |
| 8 #include "cc/trees/layer_tree_host_common.h" | 8 #include "cc/trees/layer_tree_host_common.h" |
| 9 #include "ui/gfx/box_f.h" | 9 #include "ui/gfx/geometry/box_f.h" |
| 10 | 10 |
| 11 namespace cc { | 11 namespace cc { |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 bool HasAnimationThatInflatesBounds(const LayerImpl& layer) { | 15 bool HasAnimationThatInflatesBounds(const LayerImpl& layer) { |
| 16 return layer.layer_animation_controller()->HasAnimationThatInflatesBounds(); | 16 return layer.layer_animation_controller()->HasAnimationThatInflatesBounds(); |
| 17 } | 17 } |
| 18 | 18 |
| 19 bool HasFilterAnimationThatInflatesBounds(const LayerImpl& layer) { | 19 bool HasFilterAnimationThatInflatesBounds(const LayerImpl& layer) { |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 // be applied. | 137 // be applied. |
| 138 if (!coalesced_transform.IsIdentity()) | 138 if (!coalesced_transform.IsIdentity()) |
| 139 coalesced_transform.TransformBox(&box); | 139 coalesced_transform.TransformBox(&box); |
| 140 | 140 |
| 141 *out = box; | 141 *out = box; |
| 142 | 142 |
| 143 return true; | 143 return true; |
| 144 } | 144 } |
| 145 | 145 |
| 146 } // namespace cc | 146 } // namespace cc |
| OLD | NEW |