Chromium Code Reviews

Unified Diff: bench/HairlinePathBench.cpp

Issue 23478013: Major bench refactoring. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: scroggo 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/HairlinePathBench.cpp
diff --git a/bench/HairlinePathBench.cpp b/bench/HairlinePathBench.cpp
index f5b30a38adc9cd99dd3eb1a22820e9820550ac3e..3ba09722fbae2d53a2961b96e3b0d0c51e5b21cb 100644
--- a/bench/HairlinePathBench.cpp
+++ b/bench/HairlinePathBench.cpp
@@ -63,8 +63,7 @@ protected:
path.transform(m);
}
- int count = N;
- for (int i = 0; i < count; i++) {
+ for (int i = 0; i < this->getLoops(); i++) {
canvas->drawPath(path, paint);
}
}
@@ -73,7 +72,6 @@ private:
SkPaint fPaint;
SkString fName;
Flags fFlags;
- enum { N = SkBENCHLOOP(200) };
typedef SkBenchmark INHERITED;
};

Powered by Google App Engine