| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 float k2() const; | 52 float k2() const; |
| 53 bool setK2(float); | 53 bool setK2(float); |
| 54 | 54 |
| 55 float k3() const; | 55 float k3() const; |
| 56 bool setK3(float); | 56 bool setK3(float); |
| 57 | 57 |
| 58 float k4() const; | 58 float k4() const; |
| 59 bool setK4(float); | 59 bool setK4(float); |
| 60 | 60 |
| 61 virtual void correctFilterResultIfNeeded() OVERRIDE; | 61 virtual void correctFilterResultIfNeeded() override; |
| 62 | 62 |
| 63 virtual FloatRect determineAbsolutePaintRect(const FloatRect& requestedRect)
OVERRIDE; | 63 virtual FloatRect determineAbsolutePaintRect(const FloatRect& requestedRect)
override; |
| 64 | 64 |
| 65 virtual TextStream& externalRepresentation(TextStream&, int indention) const
OVERRIDE; | 65 virtual TextStream& externalRepresentation(TextStream&, int indention) const
override; |
| 66 | 66 |
| 67 virtual PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*)
OVERRIDE; | 67 virtual PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*)
override; |
| 68 virtual PassRefPtr<SkImageFilter> createImageFilterWithoutValidation(SkiaIma
geFilterBuilder*) OVERRIDE; | 68 virtual PassRefPtr<SkImageFilter> createImageFilterWithoutValidation(SkiaIma
geFilterBuilder*) override; |
| 69 | 69 |
| 70 protected: | 70 protected: |
| 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 template <int b1, int b4> | 81 template <int b1, int b4> |
| 82 static inline void computeArithmeticPixelsNeon(unsigned char* source, unsign
ed char* destination, | 82 static inline void computeArithmeticPixelsNeon(unsigned char* source, unsign
ed char* destination, |
| 83 unsigned pixelArrayLength, float k1, float k2, float k3, float k4); | 83 unsigned pixelArrayLength, float k1, float k2, float k3, float k4); |
| 84 static inline void platformArithmeticNeon(unsigned char* source, unsigned c
har* destination, | 84 static inline void platformArithmeticNeon(unsigned char* source, unsigned c
har* destination, |
| 85 unsigned pixelArrayLength, float k1, float k2, float k3, float k4); | 85 unsigned pixelArrayLength, float k1, float k2, float k3, float k4); |
| 86 | 86 |
| 87 CompositeOperationType m_type; | 87 CompositeOperationType m_type; |
| 88 float m_k1; | 88 float m_k1; |
| 89 float m_k2; | 89 float m_k2; |
| 90 float m_k3; | 90 float m_k3; |
| 91 float m_k4; | 91 float m_k4; |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 } // namespace blink | 94 } // namespace blink |
| 95 | 95 |
| 96 #endif // FEComposite_h | 96 #endif // FEComposite_h |
| OLD | NEW |