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/BitmapBench.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/BitmapBench.cpp')
-rw-r--r-- | bench/BitmapBench.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bench/BitmapBench.cpp b/bench/BitmapBench.cpp index 260a2c93cc..812f8c3236 100644 --- a/bench/BitmapBench.cpp +++ b/bench/BitmapBench.cpp @@ -131,7 +131,7 @@ protected: fBitmap.setIsVolatile(fIsVolatile); } - void onDraw(const int loops, SkCanvas* canvas) override { + void onDraw(int loops, SkCanvas* canvas) override { if (fDoScale) { canvas->scale(.99f, .99f); } @@ -225,7 +225,7 @@ protected: return fFullName.c_str(); } - void onDraw(const int loops, SkCanvas* canvas) override { + void onDraw(int loops, SkCanvas* canvas) override { SkISize dim = canvas->getDeviceSize(); if (fFlags & kScale_Flag) { const SkScalar x = SkIntToScalar(dim.fWidth) / 2; |