Index: bench/SortBench.cpp |
diff --git a/bench/SortBench.cpp b/bench/SortBench.cpp |
index c19ebae0c8ff21554ec22ceb44b46fd099c84292..279c8ad96c8a3b108189ceb70c730119f4fbbc58 100644 |
--- a/bench/SortBench.cpp |
+++ b/bench/SortBench.cpp |
@@ -121,8 +121,7 @@ protected: |
} |
virtual void onDraw(SkCanvas*) { |
- int n = SkBENCHLOOP(200); |
- for (int i = 0; i < n; i++) { |
+ for (int i = 0; i < this->getLoops(); i++) { |
memcpy(fSorted, fUnsorted, fCount * sizeof(int)); |
fSortProc(fSorted, fCount); |
#ifdef SK_DEBUG |