Index: bench/ImageCacheBench.cpp |
diff --git a/bench/ImageCacheBench.cpp b/bench/ImageCacheBench.cpp |
index ea295fd094d65c6d92afa1efc528d64303478505..9fc538ebefe3a3c4bbd5c2ef765d6479ce4c9fd1 100644 |
--- a/bench/ImageCacheBench.cpp |
+++ b/bench/ImageCacheBench.cpp |
@@ -38,14 +38,14 @@ protected: |
return "imagecache"; |
} |
- virtual void onDraw(SkCanvas*) SK_OVERRIDE { |
+ virtual void onDraw(const int loops, SkCanvas*) SK_OVERRIDE { |
if (fCache.getBytesUsed() == 0) { |
this->populateCache(); |
} |
SkBitmap tmp; |
// search for a miss (-1 scale) |
- for (int i = 0; i < this->getLoops(); ++i) { |
+ for (int i = 0; i < loops; ++i) { |
(void)fCache.findAndLock(fBM, -1, -1, &tmp); |
} |
} |