Index: bench/FSRectBench.cpp |
diff --git a/bench/FSRectBench.cpp b/bench/FSRectBench.cpp |
index 5ae4c2f1db3eea5e6a6482f0a61f002756df6a3c..0083dd4e256a7efe32e4c825efe5dabc08375eea 100644 |
--- a/bench/FSRectBench.cpp |
+++ b/bench/FSRectBench.cpp |
@@ -44,9 +44,9 @@ protected: |
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { |
SkPaint paint; |
- for (int i = 0; i < N; ++i) { |
- paint.setColor(fColors[i]); |
- canvas->drawRect(fRects[i], paint); |
+ for (int i = 0; i < this->getLoops(); ++i) { |
+ paint.setColor(fColors[i % N]); |
+ canvas->drawRect(fRects[i % N], paint); |
} |
} |
@@ -54,7 +54,7 @@ private: |
enum { |
W = 640, |
H = 480, |
- N = SkBENCHLOOP(300) |
+ N = 300, |
}; |
SkRect fRects[N]; |
SkColor fColors[N]; |