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 * Copyright (C) 2013 Google Inc. All rights reserved. | 5 * Copyright (C) 2013 Google Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 void forceValidPreMultipliedPixels(); | 202 void forceValidPreMultipliedPixels(); |
203 SkImageFilter::CropRect getCropRect(const FloatSize& cropOffset) const; | 203 SkImageFilter::CropRect getCropRect(const FloatSize& cropOffset) const; |
204 | 204 |
205 void addAbsolutePaintRect(const FloatRect& absolutePaintRect); | 205 void addAbsolutePaintRect(const FloatRect& absolutePaintRect); |
206 | 206 |
207 private: | 207 private: |
208 void applyRecursive(); | 208 void applyRecursive(); |
209 virtual void applySoftware() = 0; | 209 virtual void applySoftware() = 0; |
210 | 210 |
211 inline void copyImageBytes(Uint8ClampedArray* source, Uint8ClampedArray* des
tination, const IntRect&); | 211 inline void copyImageBytes(Uint8ClampedArray* source, Uint8ClampedArray* des
tination, const IntRect&); |
| 212 #if HAVE(ARM_NEON_INTRINSICS) |
| 213 inline int validPreMultipliedPixels64NEON(int pixelArrayLength, unsigned cha
r* pixelData); |
| 214 #endif |
212 | 215 |
213 OwnPtr<ImageBuffer> m_imageBufferResult; | 216 OwnPtr<ImageBuffer> m_imageBufferResult; |
214 RefPtr<Uint8ClampedArray> m_unmultipliedImageResult; | 217 RefPtr<Uint8ClampedArray> m_unmultipliedImageResult; |
215 RefPtr<Uint8ClampedArray> m_premultipliedImageResult; | 218 RefPtr<Uint8ClampedArray> m_premultipliedImageResult; |
216 FilterEffectVector m_inputEffects; | 219 FilterEffectVector m_inputEffects; |
217 | 220 |
218 bool m_alphaImage; | 221 bool m_alphaImage; |
219 | 222 |
220 IntRect m_absolutePaintRect; | 223 IntRect m_absolutePaintRect; |
221 | 224 |
(...skipping 22 matching lines...) Expand all Loading... |
244 | 247 |
245 ColorSpace m_operatingColorSpace; | 248 ColorSpace m_operatingColorSpace; |
246 ColorSpace m_resultColorSpace; | 249 ColorSpace m_resultColorSpace; |
247 | 250 |
248 RefPtr<SkImageFilter> m_imageFilters[4]; | 251 RefPtr<SkImageFilter> m_imageFilters[4]; |
249 }; | 252 }; |
250 | 253 |
251 } // namespace blink | 254 } // namespace blink |
252 | 255 |
253 #endif // FilterEffect_h | 256 #endif // FilterEffect_h |
OLD | NEW |