Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: Source/platform/graphics/filters/FEConvolveMatrix.h

Issue 630853002: Replacing the OVERRIDE with override in third_party/WebKit/Source/platform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase build fix Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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) 2010 Zoltan Herczeg <zherczeg@webkit.org> 5 * Copyright (C) 2010 Zoltan Herczeg <zherczeg@webkit.org>
6 * Copyright (C) 2013 Google Inc. All rights reserved. 6 * Copyright (C) 2013 Google Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 EdgeModeType edgeMode() const; 63 EdgeModeType edgeMode() const;
64 bool setEdgeMode(EdgeModeType); 64 bool setEdgeMode(EdgeModeType);
65 65
66 FloatPoint kernelUnitLength() const; 66 FloatPoint kernelUnitLength() const;
67 bool setKernelUnitLength(const FloatPoint&); 67 bool setKernelUnitLength(const FloatPoint&);
68 68
69 bool preserveAlpha() const; 69 bool preserveAlpha() const;
70 bool setPreserveAlpha(bool); 70 bool setPreserveAlpha(bool);
71 71
72 virtual PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*) OVERRIDE; 72 virtual PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*) override;
73 73
74 virtual FloatRect mapPaintRect(const FloatRect&, bool forward = true) OVERRI DE FINAL; 74 virtual FloatRect mapPaintRect(const FloatRect&, bool forward = true) overri de FINAL;
75 75
76 virtual TextStream& externalRepresentation(TextStream&, int indention) const OVERRIDE; 76 virtual TextStream& externalRepresentation(TextStream&, int indention) const override;
77 77
78 private: 78 private:
79 79
80 struct PaintingData { 80 struct PaintingData {
81 Uint8ClampedArray* srcPixelArray; 81 Uint8ClampedArray* srcPixelArray;
82 Uint8ClampedArray* dstPixelArray; 82 Uint8ClampedArray* dstPixelArray;
83 int width; 83 int width;
84 int height; 84 int height;
85 float bias; 85 float bias;
86 }; 86 };
87 87
88 FEConvolveMatrix(Filter*, const IntSize&, float, float, 88 FEConvolveMatrix(Filter*, const IntSize&, float, float,
89 const IntPoint&, EdgeModeType, const FloatPoint&, bool, const Vector <float>&); 89 const IntPoint&, EdgeModeType, const FloatPoint&, bool, const Vector <float>&);
90 90
91 virtual void applySoftware() OVERRIDE; 91 virtual void applySoftware() override;
92 92
93 template<bool preserveAlphaValues> 93 template<bool preserveAlphaValues>
94 ALWAYS_INLINE void fastSetInteriorPixels(PaintingData&, int clipRight, int c lipBottom, int yStart, int yEnd); 94 ALWAYS_INLINE void fastSetInteriorPixels(PaintingData&, int clipRight, int c lipBottom, int yStart, int yEnd);
95 95
96 ALWAYS_INLINE int getPixelValue(PaintingData&, int x, int y); 96 ALWAYS_INLINE int getPixelValue(PaintingData&, int x, int y);
97 97
98 template<bool preserveAlphaValues> 98 template<bool preserveAlphaValues>
99 void fastSetOuterPixels(PaintingData&, int x1, int y1, int x2, int y2); 99 void fastSetOuterPixels(PaintingData&, int x1, int y1, int x2, int y2);
100 100
101 // Wrapper functions 101 // Wrapper functions
(...skipping 23 matching lines...) Expand all
125 IntPoint m_targetOffset; 125 IntPoint m_targetOffset;
126 EdgeModeType m_edgeMode; 126 EdgeModeType m_edgeMode;
127 FloatPoint m_kernelUnitLength; 127 FloatPoint m_kernelUnitLength;
128 bool m_preserveAlpha; 128 bool m_preserveAlpha;
129 Vector<float> m_kernelMatrix; 129 Vector<float> m_kernelMatrix;
130 }; 130 };
131 131
132 } // namespace blink 132 } // namespace blink
133 133
134 #endif // FEConvolveMatrix_h 134 #endif // FEConvolveMatrix_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/filters/FEComposite.h ('k') | Source/platform/graphics/filters/FEDiffuseLighting.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698