Refactoring: get rid of the SkBenchmark void* parameter.
While I was doing massive sed-ing, I also converted every bench to use DEF_BENCH instead of registering the ugly manual way.
BUG=
R=scroggo@google.com
Review URL: https://codereview.chromium.org/23876006
git-svn-id: http://skia.googlecode.com/svn/trunk@11263 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/bench/ChromeBench.cpp b/bench/ChromeBench.cpp
index fb6dcb2..9392065 100644
--- a/bench/ChromeBench.cpp
+++ b/bench/ChromeBench.cpp
@@ -456,7 +456,7 @@
N = 431
};
public:
- ScrollGmailBench(void* param) : INHERITED(param) { }
+ ScrollGmailBench() { }
protected:
@@ -491,10 +491,6 @@
typedef SkBenchmark INHERITED;
};
-static inline SkBenchmark* ScrollGmailFactory(void* p) {
- return SkNEW_ARGS(ScrollGmailBench, (p));
-}
-
// Disabled this benchmark: it takes 15x longer than any other benchmark
// and is probably not giving us important information.
-//static BenchRegistry gScrollGmailReg(ScrollGmailFactory);
+// DEF_BENCH(return SkNEW(ScrollGmailBench));