OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Alex Mathews <possessedpenguinbob@gmail.com> | 2 * Copyright (C) 2008 Alex Mathews <possessedpenguinbob@gmail.com> |
3 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 3 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 21 matching lines...) Expand all Loading... |
32 class SkPaint; | 32 class SkPaint; |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 class FloatRect; | 36 class FloatRect; |
37 class LayoutObject; | 37 class LayoutObject; |
38 class SVGFilterElement; | 38 class SVGFilterElement; |
39 | 39 |
40 // A map from LayoutObject -> FilterEffect and FilterEffect -> dependent (downst
ream) FilterEffects ("reverse DAG"). | 40 // A map from LayoutObject -> FilterEffect and FilterEffect -> dependent (downst
ream) FilterEffects ("reverse DAG"). |
41 // Used during invalidations from changes to the primitives (graph nodes). | 41 // Used during invalidations from changes to the primitives (graph nodes). |
42 class SVGFilterGraphNodeMap final : public GarbageCollectedFinalized<SVGFilterGr
aphNodeMap> { | 42 class SVGFilterGraphNodeMap final : public GarbageCollected<SVGFilterGraphNodeMa
p> { |
43 public: | 43 public: |
44 static SVGFilterGraphNodeMap* create() | 44 static SVGFilterGraphNodeMap* create() |
45 { | 45 { |
46 return new SVGFilterGraphNodeMap; | 46 return new SVGFilterGraphNodeMap; |
47 } | 47 } |
48 | 48 |
49 typedef HeapHashSet<Member<FilterEffect>> FilterEffectSet; | 49 typedef HeapHashSet<Member<FilterEffect>> FilterEffectSet; |
50 | 50 |
51 void addBuiltinEffect(FilterEffect*); | 51 void addBuiltinEffect(FilterEffect*); |
52 void addPrimitive(LayoutObject*, FilterEffect*); | 52 void addPrimitive(LayoutObject*, FilterEffect*); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 NamedFilterEffectMap m_builtinEffects; | 97 NamedFilterEffectMap m_builtinEffects; |
98 NamedFilterEffectMap m_namedEffects; | 98 NamedFilterEffectMap m_namedEffects; |
99 | 99 |
100 Member<FilterEffect> m_lastEffect; | 100 Member<FilterEffect> m_lastEffect; |
101 Member<SVGFilterGraphNodeMap> m_nodeMap; | 101 Member<SVGFilterGraphNodeMap> m_nodeMap; |
102 }; | 102 }; |
103 | 103 |
104 } // namespace blink | 104 } // namespace blink |
105 | 105 |
106 #endif // SVGFilterBuilder_h | 106 #endif // SVGFilterBuilder_h |
OLD | NEW |