12010-10-24 Dirk Schulze <krit@webkit.org>
2
3 Reviewed by NOBODY (OOPS!).
4
5 Filter example Chiseled from SVG Wow! is slow
6 https://bugs.webkit.org/show_bug.cgi?id=48174
7
8 Use a pointer to the ByteArray instead of the ref counted CanvasPixelArray or ImageData directly
9 to access the data for pixel manipulation on SVG Filters or SVG Masker. This is a
10 performance increase since the recurring use of the -> operator can be avoided.
11 FEConvolveMatrix and FELighting still need to change in a followup patch.
12
13 No functionality was changed. So, no new tests.
14
15 * platform/graphics/filters/FEBlend.cpp:
16 (WebCore::FEBlend::apply):
17 * platform/graphics/filters/FEColorMatrix.cpp:
18 (WebCore::luminance):
19 (WebCore::effectType):
20 (WebCore::FEColorMatrix::apply):
21 * platform/graphics/filters/FEComponentTransfer.cpp:
22 (WebCore::FEComponentTransfer::apply):
23 * platform/graphics/filters/FEComposite.cpp:
24 (WebCore::arithmetic):
25 (WebCore::FEComposite::apply):
26 * platform/graphics/filters/FEDisplacementMap.cpp:
27 (WebCore::FEDisplacementMap::apply):
28 * platform/graphics/filters/FEGaussianBlur.cpp:
29 (WebCore::boxBlur):
30 (WebCore::FEGaussianBlur::apply):
31 * platform/graphics/filters/FEMorphology.cpp:
32 (WebCore::FEMorphology::apply):
33 * platform/graphics/filters/FETurbulence.cpp:
34 (WebCore::FETurbulence::apply):
35 * rendering/RenderSVGResourceMasker.cpp:
36 (WebCore::RenderSVGResourceMasker::drawContentIntoMaskImage):
37