Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(634)

Unified Diff: bench/RegionContainBench.cpp

Issue 23478013: Major bench refactoring. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: merge with head agani Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bench/RegionBench.cpp ('k') | bench/RepeatTileBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
}
« no previous file with comments | « bench/RegionBench.cpp ('k') | bench/RepeatTileBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698