aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/ChromeBench.cpp
diff options
context:
space:
mode:
authorGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-10-28 15:34:49 +0000
committerGravatar tomhudson@google.com <tomhudson@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-10-28 15:34:49 +0000
commitca529d303e50072aa25405c651b16f96b5b3fa4b (patch)
tree32ba9dd8ced02ba98a4ac128b98f605656ebd0e9 /bench/ChromeBench.cpp
parent8382394bf260af223d5217ff8c45961f149bf1cf (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/ChromeBench.cpp')
-rw-r--r--bench/ChromeBench.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/ChromeBench.cpp b/bench/ChromeBench.cpp
index 3373ef5c24..fc73d539d4 100644
--- a/bench/ChromeBench.cpp
+++ b/bench/ChromeBench.cpp
@@ -468,7 +468,7 @@ protected:
for (int i = 0; i < N; i++) {
SkRect current;
setRectangle(current, i);
- for (int j = 0; j < gmailScrollingRectSpec[i*3]; j++) {
+ for (int j = 0; j < SkBENCHLOOP(gmailScrollingRectSpec[i*3]); j++) {
canvas->drawRect(current, paint);
}
}