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

Unified Diff: bench/PerlinNoiseBench.cpp

Issue 1379923005: Remove const from `const int loops`. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: n too Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bench/PathIterBench.cpp ('k') | bench/PictureNestingBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/PerlinNoiseBench.cpp
diff --git a/bench/PerlinNoiseBench.cpp b/bench/PerlinNoiseBench.cpp
index 3fbb72309d0f2a2e3d479bffd8a87224a0036d77..7c4894d434132a047f958231b3b1080ccb04008b 100644
--- a/bench/PerlinNoiseBench.cpp
+++ b/bench/PerlinNoiseBench.cpp
@@ -21,7 +21,7 @@ protected:
return "perlinnoise";
}
- void onDraw(const int loops, SkCanvas* canvas) override {
+ void onDraw(int loops, SkCanvas* canvas) override {
this->test(loops, canvas, 0, 0, SkPerlinNoiseShader::kFractalNoise_Type,
0.1f, 0.1f, 3, 0, false);
}
@@ -38,7 +38,7 @@ private:
canvas->restore();
}
- void test(const int loops, SkCanvas* canvas, int x, int y, SkPerlinNoiseShader::Type type,
+ void test(int loops, SkCanvas* canvas, int x, int y, SkPerlinNoiseShader::Type type,
float baseFrequencyX, float baseFrequencyY, int numOctaves, float seed,
bool stitchTiles) {
SkShader* shader = (type == SkPerlinNoiseShader::kFractalNoise_Type) ?
« no previous file with comments | « bench/PathIterBench.cpp ('k') | bench/PictureNestingBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698