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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 192 |
193 // If a pre-multiplied image, check every pixel for validity and correct if
necessary. | 193 // If a pre-multiplied image, check every pixel for validity and correct if
necessary. |
194 void forceValidPreMultipliedPixels(); | 194 void forceValidPreMultipliedPixels(); |
195 SkImageFilter::CropRect getCropRect(const FloatSize& cropOffset) const; | 195 SkImageFilter::CropRect getCropRect(const FloatSize& cropOffset) const; |
196 | 196 |
197 void addAbsolutePaintRect(const FloatRect& absolutePaintRect); | 197 void addAbsolutePaintRect(const FloatRect& absolutePaintRect); |
198 | 198 |
199 private: | 199 private: |
200 void applyRecursive(); | 200 void applyRecursive(); |
201 virtual void applySoftware() = 0; | 201 virtual void applySoftware() = 0; |
202 virtual bool applySkia() { return false; } | |
203 | 202 |
204 inline void copyImageBytes(Uint8ClampedArray* source, Uint8ClampedArray* des
tination, const IntRect&); | 203 inline void copyImageBytes(Uint8ClampedArray* source, Uint8ClampedArray* des
tination, const IntRect&); |
205 | 204 |
206 OwnPtr<ImageBuffer> m_imageBufferResult; | 205 OwnPtr<ImageBuffer> m_imageBufferResult; |
207 RefPtr<Uint8ClampedArray> m_unmultipliedImageResult; | 206 RefPtr<Uint8ClampedArray> m_unmultipliedImageResult; |
208 RefPtr<Uint8ClampedArray> m_premultipliedImageResult; | 207 RefPtr<Uint8ClampedArray> m_premultipliedImageResult; |
209 FilterEffectVector m_inputEffects; | 208 FilterEffectVector m_inputEffects; |
210 | 209 |
211 bool m_alphaImage; | 210 bool m_alphaImage; |
212 | 211 |
(...skipping 22 matching lines...) Expand all Loading... |
235 // Should the effect clip to its primitive region, or expand to use the comb
ined region of its inputs. | 234 // Should the effect clip to its primitive region, or expand to use the comb
ined region of its inputs. |
236 bool m_clipsToBounds; | 235 bool m_clipsToBounds; |
237 | 236 |
238 ColorSpace m_operatingColorSpace; | 237 ColorSpace m_operatingColorSpace; |
239 ColorSpace m_resultColorSpace; | 238 ColorSpace m_resultColorSpace; |
240 }; | 239 }; |
241 | 240 |
242 } // namespace WebCore | 241 } // namespace WebCore |
243 | 242 |
244 #endif // FilterEffect_h | 243 #endif // FilterEffect_h |
OLD | NEW |