| 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, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #ifndef SVGFilterBuilder_h | 21 #ifndef SVGFilterBuilder_h |
| 22 #define SVGFilterBuilder_h | 22 #define SVGFilterBuilder_h |
| 23 | 23 |
| 24 #include "core/style/SVGComputedStyleDefs.h" |
| 24 #include "platform/graphics/filters/FilterEffect.h" | 25 #include "platform/graphics/filters/FilterEffect.h" |
| 25 #include "platform/heap/Handle.h" | 26 #include "platform/heap/Handle.h" |
| 26 #include "wtf/HashMap.h" | 27 #include "wtf/HashMap.h" |
| 27 #include "wtf/HashSet.h" | 28 #include "wtf/HashSet.h" |
| 28 #include "wtf/PassRefPtr.h" | 29 #include "wtf/PassRefPtr.h" |
| 29 #include "wtf/text/AtomicStringHash.h" | 30 #include "wtf/text/AtomicStringHash.h" |
| 30 #include "wtf/text/WTFString.h" | 31 #include "wtf/text/WTFString.h" |
| 31 | 32 |
| 32 class SkPaint; | 33 class SkPaint; |
| 33 | 34 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 FilterEffect* sourceGraphic, | 82 FilterEffect* sourceGraphic, |
| 82 SVGFilterGraphNodeMap* = nullptr, | 83 SVGFilterGraphNodeMap* = nullptr, |
| 83 const SkPaint* fillPaint = nullptr, | 84 const SkPaint* fillPaint = nullptr, |
| 84 const SkPaint* strokePaint = nullptr); | 85 const SkPaint* strokePaint = nullptr); |
| 85 | 86 |
| 86 void buildGraph(Filter*, SVGFilterElement&, const FloatRect&); | 87 void buildGraph(Filter*, SVGFilterElement&, const FloatRect&); |
| 87 | 88 |
| 88 FilterEffect* getEffectById(const AtomicString& id) const; | 89 FilterEffect* getEffectById(const AtomicString& id) const; |
| 89 FilterEffect* lastEffect() const { return m_lastEffect.get(); } | 90 FilterEffect* lastEffect() const { return m_lastEffect.get(); } |
| 90 | 91 |
| 92 static ColorSpace resolveColorSpace(EColorInterpolation); |
| 93 |
| 91 private: | 94 private: |
| 92 void add(const AtomicString& id, FilterEffect*); | 95 void add(const AtomicString& id, FilterEffect*); |
| 93 void addBuiltinEffects(); | 96 void addBuiltinEffects(); |
| 94 | 97 |
| 95 typedef HeapHashMap<AtomicString, Member<FilterEffect>> NamedFilterEffectMap
; | 98 typedef HeapHashMap<AtomicString, Member<FilterEffect>> NamedFilterEffectMap
; |
| 96 | 99 |
| 97 NamedFilterEffectMap m_builtinEffects; | 100 NamedFilterEffectMap m_builtinEffects; |
| 98 NamedFilterEffectMap m_namedEffects; | 101 NamedFilterEffectMap m_namedEffects; |
| 99 | 102 |
| 100 Member<FilterEffect> m_lastEffect; | 103 Member<FilterEffect> m_lastEffect; |
| 101 Member<SVGFilterGraphNodeMap> m_nodeMap; | 104 Member<SVGFilterGraphNodeMap> m_nodeMap; |
| 102 }; | 105 }; |
| 103 | 106 |
| 104 } // namespace blink | 107 } // namespace blink |
| 105 | 108 |
| 106 #endif // SVGFilterBuilder_h | 109 #endif // SVGFilterBuilder_h |
| OLD | NEW |