diff options
author | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-10-28 15:34:49 +0000 |
---|---|---|
committer | tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-10-28 15:34:49 +0000 |
commit | ca529d303e50072aa25405c651b16f96b5b3fa4b (patch) | |
tree | 32ba9dd8ced02ba98a4ac128b98f605656ebd0e9 /bench/MathBench.cpp | |
parent | 8382394bf260af223d5217ff8c45961f149bf1cf (diff) |
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
Diffstat (limited to 'bench/MathBench.cpp')
-rw-r--r-- | bench/MathBench.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/MathBench.cpp b/bench/MathBench.cpp index 5726f38ede..6e3fec19c4 100644 --- a/bench/MathBench.cpp +++ b/bench/MathBench.cpp @@ -31,7 +31,7 @@ protected: } virtual void onDraw(SkCanvas* canvas) { - int n = kLoop * this->mulLoopCount(); + int n = SkBENCHLOOP(kLoop * this->mulLoopCount()); for (int i = 0; i < n; i++) { this->performTest(fDst, fSrc, kBuffer); } |