Index: bench/SortBench.cpp |
diff --git a/bench/SortBench.cpp b/bench/SortBench.cpp |
index 161e979776b8a81fa0af4c5e8b1c5e7a2ba9ef87..1f888f2462e18f9d040954bb66d8f9e4b0e850de 100644 |
--- a/bench/SortBench.cpp |
+++ b/bench/SortBench.cpp |
@@ -122,9 +122,9 @@ protected: |
gRec[fType].fProc(fUnsorted.get()); |
} |
- virtual void onDraw(SkCanvas*) SK_OVERRIDE { |
+ virtual void onDraw(const int loops, SkCanvas*) SK_OVERRIDE { |
SkAutoTMalloc<int> sorted(N); |
- for (int i = 0; i < this->getLoops(); i++) { |
+ for (int i = 0; i < loops; i++) { |
memcpy(sorted.get(), fUnsorted.get(), N*sizeof(int)); |
fSortProc(sorted.get()); |
#ifdef SK_DEBUG |