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/DecodeBench.cpp b/bench/DecodeBench.cpp
index 01b4cfa..6761690 100644
--- a/bench/DecodeBench.cpp
+++ b/bench/DecodeBench.cpp
@@ -18,7 +18,7 @@
const char* fFilename;
SkBitmap::Config fPrefConfig;
SkString fName;
- enum { N = 10 };
+ enum { N = SkBENCHLOOP(10) };
public:
DecodeBench(void* param, SkBitmap::Config c) : SkBenchmark(param) {
fFilename = this->findDefine("decode-filename");