| 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 * 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 virtual bool mayProduceInvalidPreMultipliedPixels() OVERRIDE { return m_type
== FECOMPOSITE_OPERATOR_ARITHMETIC; } | 71 virtual bool mayProduceInvalidPreMultipliedPixels() OVERRIDE { return m_type
== FECOMPOSITE_OPERATOR_ARITHMETIC; } |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 FEComposite(Filter*, const CompositeOperationType&, float, float, float, flo
at); | 74 FEComposite(Filter*, const CompositeOperationType&, float, float, float, flo
at); |
| 75 | 75 |
| 76 virtual void applySoftware() OVERRIDE; | 76 virtual void applySoftware() OVERRIDE; |
| 77 PassRefPtr<SkImageFilter> createImageFilterInternal(SkiaImageFilterBuilder*,
bool requiresPMColorValidation); | 77 PassRefPtr<SkImageFilter> createImageFilterInternal(SkiaImageFilterBuilder*,
bool requiresPMColorValidation); |
| 78 | 78 |
| 79 inline void platformArithmeticSoftware(Uint8ClampedArray* source, Uint8Clamp
edArray* destination, | 79 inline void platformArithmeticSoftware(Uint8ClampedArray* source, Uint8Clamp
edArray* destination, |
| 80 float k1, float k2, float k3, float k4); | 80 float k1, float k2, float k3, float k4); |
| 81 #if HAVE(ARM_NEON_INTRINSICS) |
| 81 template <int b1, int b4> | 82 template <int b1, int b4> |
| 82 static inline void computeArithmeticPixelsNeon(unsigned char* source, unsign
ed char* destination, | 83 static inline void computeArithmeticPixelsNeon(unsigned char* source, unsign
ed char* destination, |
| 83 unsigned pixelArrayLength, float k1, float k2, float k3, float k4); | 84 unsigned pixelArrayLength, float k1, float k2, float k3, float k4); |
| 84 static inline void platformArithmeticNeon(unsigned char* source, unsigned c
har* destination, | 85 static inline void arithmeticSoftwareNEON(unsigned char* source, unsigned c
har* destination, |
| 85 unsigned pixelArrayLength, float k1, float k2, float k3, float k4); | 86 int pixelArrayLength, float k1, float k2, float k3, float k4); |
| 87 #endif |
| 86 | 88 |
| 87 CompositeOperationType m_type; | 89 CompositeOperationType m_type; |
| 88 float m_k1; | 90 float m_k1; |
| 89 float m_k2; | 91 float m_k2; |
| 90 float m_k3; | 92 float m_k3; |
| 91 float m_k4; | 93 float m_k4; |
| 92 }; | 94 }; |
| 93 | 95 |
| 94 } // namespace blink | 96 } // namespace blink |
| 95 | 97 |
| 96 #endif // FEComposite_h | 98 #endif // FEComposite_h |
| OLD | NEW |