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

Unified Diff: bench/StrokeBench.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/SortBench.cpp ('k') | bench/TableBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/StrokeBench.cpp
diff --git a/bench/StrokeBench.cpp b/bench/StrokeBench.cpp
index 15c9befe6bc8dafe625f9f3b06f689e44580173b..33772dd2beb35030238c26806353e9596b9564fe 100644
--- a/bench/StrokeBench.cpp
+++ b/bench/StrokeBench.cpp
@@ -58,7 +58,6 @@ class StrokeRRectBench : public SkBenchmark {
SkPaint::Join fJoin;
RRectRec fRec;
DrawProc fProc;
- enum { N = SkBENCHLOOP(500) };
public:
StrokeRRectBench(void* param, SkPaint::Join j, DrawProc proc) : SkBenchmark(param) {
static const char* gJoinName[] = {
@@ -85,7 +84,7 @@ protected:
fRec.fPaint.setStyle(SkPaint::kStroke_Style);
fRec.fPaint.setStrokeJoin(fJoin);
fRec.fPaint.setStrokeWidth(5);
- fProc(&fRec, N);
+ fProc(&fRec, this->getLoops());
}
private:
« no previous file with comments | « bench/SortBench.cpp ('k') | bench/TableBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698