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

Side by Side Diff: Source/platform/graphics/filters/FETurbulence.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) 2009 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
6 * Copyright (C) 2010 Renata Hodovan <reni@inf.u-szeged.hu> 6 * Copyright (C) 2010 Renata Hodovan <reni@inf.u-szeged.hu>
7 * Copyright (C) 2013 Google Inc. All rights reserved. 7 * Copyright (C) 2013 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 bool setSeed(float); 53 bool setSeed(float);
54 54
55 int numOctaves() const; 55 int numOctaves() const;
56 bool setNumOctaves(int); 56 bool setNumOctaves(int);
57 57
58 bool stitchTiles() const; 58 bool stitchTiles() const;
59 bool setStitchTiles(bool); 59 bool setStitchTiles(bool);
60 60
61 static void fillRegionWorker(void*); 61 static void fillRegionWorker(void*);
62 62
63 virtual TextStream& externalRepresentation(TextStream&, int indention) const OVERRIDE; 63 virtual TextStream& externalRepresentation(TextStream&, int indention) const override;
64 64
65 private: 65 private:
66 static const int s_blockSize = 256; 66 static const int s_blockSize = 256;
67 static const int s_blockMask = s_blockSize - 1; 67 static const int s_blockMask = s_blockSize - 1;
68 68
69 static const int s_minimalRectDimension = (100 * 100); // Empirical data lim it for parallel jobs. 69 static const int s_minimalRectDimension = (100 * 100); // Empirical data lim it for parallel jobs.
70 70
71 struct PaintingData { 71 struct PaintingData {
72 PaintingData(long paintingSeed, const IntSize& paintingSize) 72 PaintingData(long paintingSeed, const IntSize& paintingSize)
73 : seed(paintingSeed) 73 : seed(paintingSeed)
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 int startY; 108 int startY;
109 int endY; 109 int endY;
110 float baseFrequencyX; 110 float baseFrequencyX;
111 float baseFrequencyY; 111 float baseFrequencyY;
112 }; 112 };
113 113
114 static void fillRegionWorker(FillRegionParameters*); 114 static void fillRegionWorker(FillRegionParameters*);
115 115
116 FETurbulence(Filter*, TurbulenceType, float, float, int, float, bool); 116 FETurbulence(Filter*, TurbulenceType, float, float, int, float, bool);
117 117
118 virtual void applySoftware() OVERRIDE; 118 virtual void applySoftware() override;
119 virtual PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*) OVERRIDE; 119 virtual PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*) override;
120 SkShader* createShader(); 120 SkShader* createShader();
121 121
122 inline void initPaint(PaintingData&); 122 inline void initPaint(PaintingData&);
123 float noise2D(int channel, PaintingData&, StitchData&, const FloatPoint&); 123 float noise2D(int channel, PaintingData&, StitchData&, const FloatPoint&);
124 unsigned char calculateTurbulenceValueForPoint(int channel, PaintingData&, S titchData&, const FloatPoint&, float, float); 124 unsigned char calculateTurbulenceValueForPoint(int channel, PaintingData&, S titchData&, const FloatPoint&, float, float);
125 inline void fillRegion(Uint8ClampedArray*, PaintingData&, int, int, float, f loat); 125 inline void fillRegion(Uint8ClampedArray*, PaintingData&, int, int, float, f loat);
126 126
127 TurbulenceType m_type; 127 TurbulenceType m_type;
128 float m_baseFrequencyX; 128 float m_baseFrequencyX;
129 float m_baseFrequencyY; 129 float m_baseFrequencyY;
130 int m_numOctaves; 130 int m_numOctaves;
131 float m_seed; 131 float m_seed;
132 bool m_stitchTiles; 132 bool m_stitchTiles;
133 }; 133 };
134 134
135 } // namespace blink 135 } // namespace blink
136 136
137 #endif // FETurbulence_h 137 #endif // FETurbulence_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/filters/FETile.h ('k') | Source/platform/graphics/filters/FilterOperation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698