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 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 IntRect absolutePaintRect() const { return m_absolutePaintRect; } | 81 IntRect absolutePaintRect() const { return m_absolutePaintRect; } |
82 void setAbsolutePaintRect(const IntRect& absolutePaintRect) { m_absolutePain
tRect = absolutePaintRect; } | 82 void setAbsolutePaintRect(const IntRect& absolutePaintRect) { m_absolutePain
tRect = absolutePaintRect; } |
83 | 83 |
84 FloatRect maxEffectRect() const { return m_maxEffectRect; } | 84 FloatRect maxEffectRect() const { return m_maxEffectRect; } |
85 void setMaxEffectRect(const FloatRect& maxEffectRect) { m_maxEffectRect = ma
xEffectRect; } | 85 void setMaxEffectRect(const FloatRect& maxEffectRect) { m_maxEffectRect = ma
xEffectRect; } |
86 | 86 |
87 void apply(); | 87 void apply(); |
88 | 88 |
89 virtual void platformApplySoftware() = 0; | 89 virtual void platformApplySoftware() = 0; |
90 #if USE(SKIA) | |
91 virtual bool platformApplySkia() { return false; } | |
92 #endif | |
93 virtual void dump() = 0; | 90 virtual void dump() = 0; |
94 | 91 |
95 virtual void determineAbsolutePaintRect(); | 92 virtual void determineAbsolutePaintRect(); |
96 | 93 |
97 virtual FilterEffectType filterEffectType() const { return FilterEffectTypeU
nknown; } | 94 virtual FilterEffectType filterEffectType() const { return FilterEffectTypeU
nknown; } |
98 | 95 |
99 virtual TextStream& externalRepresentation(TextStream&, int indention = 0) c
onst; | 96 virtual TextStream& externalRepresentation(TextStream&, int indention = 0) c
onst; |
100 | 97 |
101 public: | 98 public: |
102 // The following functions are SVG specific and will move to RenderSVGResour
ceFilterPrimitive. | 99 // The following functions are SVG specific and will move to RenderSVGResour
ceFilterPrimitive. |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 | 163 |
167 // Should the effect clip to its primitive region, or expand to use the comb
ined region of its inputs. | 164 // Should the effect clip to its primitive region, or expand to use the comb
ined region of its inputs. |
168 bool m_clipsToBounds; | 165 bool m_clipsToBounds; |
169 }; | 166 }; |
170 | 167 |
171 } // namespace WebCore | 168 } // namespace WebCore |
172 | 169 |
173 #endif // ENABLE(FILTERS) | 170 #endif // ENABLE(FILTERS) |
174 | 171 |
175 #endif // FilterEffect_h | 172 #endif // FilterEffect_h |
OLD | NEW |