In debug builds, only run each benchmark 1 time (test for assertion-breakage,
not performance).
codereview.appspot.com/5314064/
git-svn-id: http://skia.googlecode.com/svn/trunk@2552 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/bench/BlurBench.cpp b/bench/BlurBench.cpp
index 666b269..1a69184 100644
--- a/bench/BlurBench.cpp
+++ b/bench/BlurBench.cpp
@@ -48,7 +48,7 @@
paint.setAntiAlias(true);
SkRandom rand;
- for (int i = 0; i < 10; i++) {
+ for (int i = 0; i < SkBENCHLOOP(10); i++) {
SkRect r = SkRect::MakeWH(rand.nextUScalar1() * 400,
rand.nextUScalar1() * 400);
r.offset(fRadius, fRadius);