Index: bench/ImageDecodeBench.cpp |
diff --git a/bench/ImageDecodeBench.cpp b/bench/ImageDecodeBench.cpp |
index af0569fc6fcd669403f30c0fe3642f8b7a84e26c..a2ca0ecaec4b7f8946d75365d5b1735d5bb914b6 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) { |