| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef GeometryPropertyTreeState_h | |
| 6 #define GeometryPropertyTreeState_h | |
| 7 | |
| 8 #include "platform/graphics/paint/ClipPaintPropertyNode.h" | |
| 9 #include "platform/graphics/paint/EffectPaintPropertyNode.h" | |
| 10 #include "platform/graphics/paint/TransformPaintPropertyNode.h" | |
| 11 #include "wtf/HashFunctions.h" | |
| 12 #include "wtf/HashTraits.h" | |
| 13 | |
| 14 namespace blink { | |
| 15 | |
| 16 // Represents the combination of transform, clip and effect nodes for a particul
ar coordinate space. | |
| 17 // See GeometryMapper. Scroll nodes (ScrollPaintPropertyNode) are not needed for
mapping geometry | |
| 18 // and have been left off of this structure. | |
| 19 struct GeometryPropertyTreeState { | |
| 20 GeometryPropertyTreeState() | |
| 21 : GeometryPropertyTreeState(nullptr, nullptr, nullptr) {} | |
| 22 | |
| 23 GeometryPropertyTreeState(const TransformPaintPropertyNode* transform, | |
| 24 const ClipPaintPropertyNode* clip, | |
| 25 const EffectPaintPropertyNode* effect) | |
| 26 : transform(transform), clip(clip), effect(effect) {} | |
| 27 | |
| 28 RefPtr<const TransformPaintPropertyNode> transform; | |
| 29 RefPtr<const ClipPaintPropertyNode> clip; | |
| 30 RefPtr<const EffectPaintPropertyNode> effect; | |
| 31 }; | |
| 32 | |
| 33 } // namespace blink | |
| 34 | |
| 35 #endif // GeometryPropertyTreeState_h | |
| OLD | NEW |