diff options
Diffstat (limited to 'bench/ImageDecodeBench.cpp')
-rw-r--r-- | bench/ImageDecodeBench.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bench/ImageDecodeBench.cpp b/bench/ImageDecodeBench.cpp index af0569fc6f..a2ca0ecaec 100644 --- a/bench/ImageDecodeBench.cpp +++ b/bench/ImageDecodeBench.cpp @@ -52,7 +52,7 @@ protected: } } - virtual void onDraw(SkCanvas*) SK_OVERRIDE { + virtual void onDraw(const int loops, SkCanvas*) SK_OVERRIDE { #ifdef SK_DEBUG if (!fValid) { SkDebugf("stream was invalid: %s\n", fName.c_str()); @@ -61,7 +61,7 @@ protected: #endif // Decode a bunch of times SkBitmap bm; - for (int i = 0; i < this->getLoops(); ++i) { + for (int i = 0; i < loops; ++i) { SkDEBUGCODE(bool success =) SkImageDecoder::DecodeStream(&fStream, &bm); #ifdef SK_DEBUG if (!success) { |