| 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 28 matching lines...) Expand all Loading... |
| 39 static PassRefPtr<FEMorphology> create(Filter*, MorphologyOperatorType, floa
t radiusX, float radiusY); | 39 static PassRefPtr<FEMorphology> create(Filter*, MorphologyOperatorType, floa
t radiusX, float radiusY); |
| 40 MorphologyOperatorType morphologyOperator() const; | 40 MorphologyOperatorType morphologyOperator() const; |
| 41 bool setMorphologyOperator(MorphologyOperatorType); | 41 bool setMorphologyOperator(MorphologyOperatorType); |
| 42 | 42 |
| 43 float radiusX() const; | 43 float radiusX() const; |
| 44 bool setRadiusX(float); | 44 bool setRadiusX(float); |
| 45 | 45 |
| 46 float radiusY() const; | 46 float radiusY() const; |
| 47 bool setRadiusY(float); | 47 bool setRadiusY(float); |
| 48 | 48 |
| 49 virtual PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*)
OVERRIDE; | 49 virtual PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*)
override; |
| 50 | 50 |
| 51 virtual FloatRect mapRect(const FloatRect&, bool forward = true) OVERRIDE FI
NAL; | 51 virtual FloatRect mapRect(const FloatRect&, bool forward = true) override FI
NAL; |
| 52 | 52 |
| 53 virtual TextStream& externalRepresentation(TextStream&, int indention) const
OVERRIDE; | 53 virtual TextStream& externalRepresentation(TextStream&, int indention) const
override; |
| 54 | 54 |
| 55 struct PaintingData { | 55 struct PaintingData { |
| 56 Uint8ClampedArray* srcPixelArray; | 56 Uint8ClampedArray* srcPixelArray; |
| 57 Uint8ClampedArray* dstPixelArray; | 57 Uint8ClampedArray* dstPixelArray; |
| 58 int width; | 58 int width; |
| 59 int height; | 59 int height; |
| 60 int radiusX; | 60 int radiusX; |
| 61 int radiusY; | 61 int radiusY; |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 static const int s_minimalArea = (300 * 300); // Empirical data limit for pa
rallel jobs | 64 static const int s_minimalArea = (300 * 300); // Empirical data limit for pa
rallel jobs |
| 65 | 65 |
| 66 struct PlatformApplyParameters { | 66 struct PlatformApplyParameters { |
| 67 FEMorphology* filter; | 67 FEMorphology* filter; |
| 68 int startY; | 68 int startY; |
| 69 int endY; | 69 int endY; |
| 70 PaintingData* paintingData; | 70 PaintingData* paintingData; |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 FEMorphology(Filter*, MorphologyOperatorType, float radiusX, float radiusY); | 74 FEMorphology(Filter*, MorphologyOperatorType, float radiusX, float radiusY); |
| 75 | 75 |
| 76 virtual void applySoftware() OVERRIDE; | 76 virtual void applySoftware() override; |
| 77 | 77 |
| 78 MorphologyOperatorType m_type; | 78 MorphologyOperatorType m_type; |
| 79 float m_radiusX; | 79 float m_radiusX; |
| 80 float m_radiusY; | 80 float m_radiusY; |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 } // namespace blink | 83 } // namespace blink |
| 84 | 84 |
| 85 #endif // FEMorphology_h | 85 #endif // FEMorphology_h |
| OLD | NEW |