| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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.h" | 5 #include "cc/layers/layer.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 1513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1524 effect_node->has_potential_filter_animation = | 1524 effect_node->has_potential_filter_animation = |
| 1525 state.potentially_animating[property]; | 1525 state.potentially_animating[property]; |
| 1526 } | 1526 } |
| 1527 break; | 1527 break; |
| 1528 default: | 1528 default: |
| 1529 break; | 1529 break; |
| 1530 } | 1530 } |
| 1531 } | 1531 } |
| 1532 } | 1532 } |
| 1533 | 1533 |
| 1534 bool Layer::HasActiveAnimationForTesting() const { | 1534 bool Layer::HasTickingAnimationForTesting() const { |
| 1535 return layer_tree_host_ | 1535 return layer_tree_host_ |
| 1536 ? GetMutatorHost()->HasActiveAnimationForTesting(element_id()) | 1536 ? GetMutatorHost()->HasTickingAnimationForTesting(element_id()) |
| 1537 : false; | 1537 : false; |
| 1538 } | 1538 } |
| 1539 | 1539 |
| 1540 void Layer::SetHasWillChangeTransformHint(bool has_will_change) { | 1540 void Layer::SetHasWillChangeTransformHint(bool has_will_change) { |
| 1541 if (inputs_.has_will_change_transform_hint == has_will_change) | 1541 if (inputs_.has_will_change_transform_hint == has_will_change) |
| 1542 return; | 1542 return; |
| 1543 inputs_.has_will_change_transform_hint = has_will_change; | 1543 inputs_.has_will_change_transform_hint = has_will_change; |
| 1544 SetNeedsCommit(); | 1544 SetNeedsCommit(); |
| 1545 } | 1545 } |
| 1546 | 1546 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1664 | 1664 |
| 1665 LayerTree* Layer::GetLayerTree() const { | 1665 LayerTree* Layer::GetLayerTree() const { |
| 1666 return layer_tree_; | 1666 return layer_tree_; |
| 1667 } | 1667 } |
| 1668 | 1668 |
| 1669 void Layer::SetLayerIdForTesting(int id) { | 1669 void Layer::SetLayerIdForTesting(int id) { |
| 1670 inputs_.layer_id = id; | 1670 inputs_.layer_id = id; |
| 1671 } | 1671 } |
| 1672 | 1672 |
| 1673 } // namespace cc | 1673 } // namespace cc |
| OLD | NEW |