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 void platformApplySkia(); | |
78 | 77 |
79 float m_stdX; | 78 float m_stdX; |
80 float m_stdY; | 79 float m_stdY; |
81 }; | 80 }; |
82 | 81 |
83 inline void FEGaussianBlur::kernelPosition(int boxBlur, unsigned& std, int& dLef
t, int& dRight) | 82 inline void FEGaussianBlur::kernelPosition(int boxBlur, unsigned& std, int& dLef
t, int& dRight) |
84 { | 83 { |
85 // check http://www.w3.org/TR/SVG/filters.html#feGaussianBlurElement for det
ails | 84 // check http://www.w3.org/TR/SVG/filters.html#feGaussianBlurElement for det
ails |
86 switch (boxBlur) { | 85 switch (boxBlur) { |
87 case 0: | 86 case 0: |
(...skipping 18 matching lines...) Expand all Loading... |
106 } | 105 } |
107 break; | 106 break; |
108 } | 107 } |
109 } | 108 } |
110 | 109 |
111 } // namespace WebCore | 110 } // namespace WebCore |
112 | 111 |
113 #endif // ENABLE(FILTERS) | 112 #endif // ENABLE(FILTERS) |
114 | 113 |
115 #endif // FEGaussianBlur_h | 114 #endif // FEGaussianBlur_h |
OLD | NEW |