| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef PropertyTreeState_h | 5 #ifndef PropertyTreeState_h |
| 6 #define PropertyTreeState_h | 6 #define PropertyTreeState_h |
| 7 | 7 |
| 8 #include "platform/graphics/paint/ClipPaintPropertyNode.h" | 8 #include "platform/graphics/paint/ClipPaintPropertyNode.h" |
| 9 #include "platform/graphics/paint/EffectPaintPropertyNode.h" | 9 #include "platform/graphics/paint/EffectPaintPropertyNode.h" |
| 10 #include "platform/graphics/paint/TransformPaintPropertyNode.h" | 10 #include "platform/graphics/paint/TransformPaintPropertyNode.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 } | 55 } |
| 56 void SetEffect(RefPtr<const EffectPaintPropertyNode> node) { | 56 void SetEffect(RefPtr<const EffectPaintPropertyNode> node) { |
| 57 effect_ = std::move(node); | 57 effect_ = std::move(node); |
| 58 } | 58 } |
| 59 | 59 |
| 60 static const PropertyTreeState& Root(); | 60 static const PropertyTreeState& Root(); |
| 61 | 61 |
| 62 // Returns the compositor element id, if any, for this property state. If | 62 // Returns the compositor element id, if any, for this property state. If |
| 63 // neither the effect nor transform nodes have a compositor element id then a | 63 // neither the effect nor transform nodes have a compositor element id then a |
| 64 // default instance is returned. | 64 // default instance is returned. |
| 65 const CompositorElementId GetCompositorElementId() const; | 65 const CompositorElementId GetCompositorElementId( |
| 66 const CompositorElementIdSet& element_ids) const; |
| 66 | 67 |
| 67 enum InnermostNode { | 68 enum InnermostNode { |
| 68 kNone, // None means that all nodes are their root values | 69 kNone, // None means that all nodes are their root values |
| 69 kTransform, | 70 kTransform, |
| 70 kClip, | 71 kClip, |
| 71 kEffect, | 72 kEffect, |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 // There is always a well-defined order in which the transform, clip | 75 // There is always a well-defined order in which the transform, clip |
| 75 // and effects of a PropertyTreeState apply. This method returns which | 76 // and effects of a PropertyTreeState apply. This method returns which |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 } | 181 } |
| 181 | 182 |
| 182 HashMap<const PropertyTreeNode*, String> node_to_debug_string_; | 183 HashMap<const PropertyTreeNode*, String> node_to_debug_string_; |
| 183 }; | 184 }; |
| 184 | 185 |
| 185 #endif | 186 #endif |
| 186 | 187 |
| 187 } // namespace blink | 188 } // namespace blink |
| 188 | 189 |
| 189 #endif // PropertyTreeState_h | 190 #endif // PropertyTreeState_h |
| OLD | NEW |