OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> |
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 static void platformApplyWorker(PlatformApplyParameters*); | 68 static void platformApplyWorker(PlatformApplyParameters*); |
69 | 69 |
70 FEGaussianBlur(Filter*, float, float); | 70 FEGaussianBlur(Filter*, float, float); |
71 | 71 |
72 static inline void kernelPosition(int boxBlur, unsigned& std, int& dLeft, in
t& dRight); | 72 static inline void kernelPosition(int boxBlur, unsigned& std, int& dLeft, in
t& dRight); |
73 inline void platformApply(ByteArray* srcPixelArray, ByteArray* tmpPixelArray
, unsigned kernelSizeX, unsigned kernelSizeY, IntSize& paintSize); | 73 inline void platformApply(ByteArray* srcPixelArray, ByteArray* tmpPixelArray
, unsigned kernelSizeX, unsigned kernelSizeY, IntSize& paintSize); |
74 | 74 |
75 inline void platformApplyGeneric(ByteArray* srcPixelArray, ByteArray* tmpPix
elArray, unsigned kernelSizeX, unsigned kernelSizeY, IntSize& paintSize); | 75 inline void platformApplyGeneric(ByteArray* srcPixelArray, ByteArray* tmpPix
elArray, unsigned kernelSizeX, unsigned kernelSizeY, IntSize& paintSize); |
76 inline void platformApplyNeon(ByteArray* srcPixelArray, ByteArray* tmpPixelA
rray, unsigned kernelSizeX, unsigned kernelSizeY, IntSize& paintSize); | 76 inline void platformApplyNeon(ByteArray* srcPixelArray, ByteArray* tmpPixelA
rray, unsigned kernelSizeX, unsigned kernelSizeY, IntSize& paintSize); |
77 #if USE(SKIA) | 77 void platformApplySkia(); |
78 virtual bool platformApplySkia(); | |
79 #endif | |
80 | 78 |
81 float m_stdX; | 79 float m_stdX; |
82 float m_stdY; | 80 float m_stdY; |
83 }; | 81 }; |
84 | 82 |
85 inline void FEGaussianBlur::kernelPosition(int boxBlur, unsigned& std, int& dLef
t, int& dRight) | 83 inline void FEGaussianBlur::kernelPosition(int boxBlur, unsigned& std, int& dLef
t, int& dRight) |
86 { | 84 { |
87 // check http://www.w3.org/TR/SVG/filters.html#feGaussianBlurElement for det
ails | 85 // check http://www.w3.org/TR/SVG/filters.html#feGaussianBlurElement for det
ails |
88 switch (boxBlur) { | 86 switch (boxBlur) { |
89 case 0: | 87 case 0: |
(...skipping 18 matching lines...) Expand all Loading... |
108 } | 106 } |
109 break; | 107 break; |
110 } | 108 } |
111 } | 109 } |
112 | 110 |
113 } // namespace WebCore | 111 } // namespace WebCore |
114 | 112 |
115 #endif // ENABLE(FILTERS) | 113 #endif // ENABLE(FILTERS) |
116 | 114 |
117 #endif // FEGaussianBlur_h | 115 #endif // FEGaussianBlur_h |
OLD | NEW |