diff options
author | mtklein <mtklein@chromium.org> | 2015-10-01 09:43:39 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-01 09:43:39 -0700 |
commit | a1ebeb25e9acfcd801e089e063311d716b83b8a5 (patch) | |
tree | 1ac61bbbb5700af13c511b3525822d9d602968ea /bench/LightingBench.cpp | |
parent | aa48d36397f8464dafd38c3f42fbdfb1419e8778 (diff) |
Remove const from `const int loops`.
This drives me nuts, and prevents `while (loops --> 0)`.
BUG=skia:
Review URL: https://codereview.chromium.org/1379923005
Diffstat (limited to 'bench/LightingBench.cpp')
-rw-r--r-- | bench/LightingBench.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bench/LightingBench.cpp b/bench/LightingBench.cpp index e65362b123..2c78749d9f 100644 --- a/bench/LightingBench.cpp +++ b/bench/LightingBench.cpp @@ -20,7 +20,7 @@ public: LightingBaseBench(bool small) : fIsSmall(small) { } protected: - void draw(const int loops, SkCanvas* canvas, SkImageFilter* imageFilter) const { + void draw(int loops, SkCanvas* canvas, SkImageFilter* imageFilter) const { SkRect r = fIsSmall ? SkRect::MakeWH(FILTER_WIDTH_SMALL, FILTER_HEIGHT_SMALL) : SkRect::MakeWH(FILTER_WIDTH_LARGE, FILTER_HEIGHT_LARGE); SkPaint paint; @@ -107,7 +107,7 @@ protected: return fIsSmall ? "lightingpointlitdiffuse_small" : "lightingpointlitdiffuse_large"; } - void onDraw(const int loops, SkCanvas* canvas) override { + void onDraw(int loops, SkCanvas* canvas) override { draw(loops, canvas, SkLightingImageFilter::CreatePointLitDiffuse(GetPointLocation(), GetWhite(), GetSurfaceScale(), @@ -128,7 +128,7 @@ protected: return fIsSmall ? "lightingdistantlitdiffuse_small" : "lightingdistantlitdiffuse_large"; } - void onDraw(const int loops, SkCanvas* canvas) override { + void onDraw(int loops, SkCanvas* canvas) override { draw(loops, canvas, SkLightingImageFilter::CreateDistantLitDiffuse(GetDistantDirection(), GetWhite(), GetSurfaceScale(), @@ -149,7 +149,7 @@ protected: return fIsSmall ? "lightingspotlitdiffuse_small" : "lightingspotlitdiffuse_large"; } - void onDraw(const int loops, SkCanvas* canvas) override { + void onDraw(int loops, SkCanvas* canvas) override { draw(loops, canvas, SkLightingImageFilter::CreateSpotLitDiffuse(GetSpotLocation(), GetSpotTarget(), GetSpotExponent(), @@ -173,7 +173,7 @@ protected: return fIsSmall ? "lightingpointlitspecular_small" : "lightingpointlitspecular_large"; } - void onDraw(const int loops, SkCanvas* canvas) override { + void onDraw(int loops, SkCanvas* canvas) override { draw(loops, canvas, SkLightingImageFilter::CreatePointLitSpecular(GetPointLocation(), GetWhite(), GetSurfaceScale(), @@ -195,7 +195,7 @@ protected: return fIsSmall ? "lightingdistantlitspecular_small" : "lightingdistantlitspecular_large"; } - void onDraw(const int loops, SkCanvas* canvas) override { + void onDraw(int loops, SkCanvas* canvas) override { draw(loops, canvas, SkLightingImageFilter::CreateDistantLitSpecular(GetDistantDirection(), GetWhite(), GetSurfaceScale(), @@ -217,7 +217,7 @@ protected: return fIsSmall ? "lightingspotlitspecular_small" : "lightingspotlitspecular_large"; } - void onDraw(const int loops, SkCanvas* canvas) override { + void onDraw(int loops, SkCanvas* canvas) override { draw(loops, canvas, SkLightingImageFilter::CreateSpotLitSpecular(GetSpotLocation(), GetSpotTarget(), GetSpotExponent(), |