Chromium Code Reviews

Unified Diff: bench/RegionContainBench.cpp

Issue 23478013: Major bench refactoring. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: epoger Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: bench/RegionContainBench.cpp
diff --git a/bench/RegionContainBench.cpp b/bench/RegionContainBench.cpp
index 8668513979ee082c02df7756d85510bfbc05d32e..c4cbc9497dd5b9e487767c363af54880f0a48867 100644
--- a/bench/RegionContainBench.cpp
+++ b/bench/RegionContainBench.cpp
@@ -26,7 +26,6 @@ public:
W = 200,
H = 200,
COUNT = 10,
- N = SkBENCHLOOP(20000)
};
SkIRect randrect(SkRandom& rand, int i) {
@@ -54,7 +53,7 @@ protected:
virtual void onDraw(SkCanvas*) {
Proc proc = fProc;
- for (int i = 0; i < N; ++i) {
+ for (int i = 0; i < this->getLoops(); ++i) {
proc(fA, fB);
}
}

Powered by Google App Engine