Index: bench/ReadPixBench.cpp |
diff --git a/bench/ReadPixBench.cpp b/bench/ReadPixBench.cpp |
index 66db2eb93507ee25778e261bf03af9602ef0f480..505ff32269485386332dcac3bd0913e8ca5235e2 100644 |
--- a/bench/ReadPixBench.cpp |
+++ b/bench/ReadPixBench.cpp |
@@ -45,9 +45,11 @@ protected: |
bitmap.setConfig(SkBitmap::kARGB_8888_Config, kWindowSize, kWindowSize); |
- for (int x = 0; x < kNumStepsX; ++x) { |
- for (int y = 0; y < kNumStepsY; ++y) { |
- canvas->readPixels(&bitmap, x * offX, y * offY); |
+ for (int i = 0; i < this->getLoops(); i++) { |
+ for (int x = 0; x < kNumStepsX; ++x) { |
+ for (int y = 0; y < kNumStepsY; ++y) { |
+ canvas->readPixels(&bitmap, x * offX, y * offY); |
+ } |
} |
} |
} |