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/FontCacheBench.cpp b/bench/FontCacheBench.cpp
index c206d5b..c682f43 100644
--- a/bench/FontCacheBench.cpp
+++ b/bench/FontCacheBench.cpp
@@ -25,7 +25,7 @@
class FontCacheBench : public SkBenchmark {
public:
- FontCacheBench(void* param) : INHERITED(param) {}
+ FontCacheBench() {}
protected:
virtual const char* onGetName() SK_OVERRIDE {
@@ -109,7 +109,7 @@
class FontCacheEfficiency : public SkBenchmark {
public:
- FontCacheEfficiency(void* param) : INHERITED(param) {
+ FontCacheEfficiency() {
if (false) dump_array(NULL, 0);
if (false) rotr(0, 0);
}
@@ -152,7 +152,7 @@
///////////////////////////////////////////////////////////////////////////////
-DEF_BENCH( return new FontCacheBench(p); )
+DEF_BENCH( return new FontCacheBench(); )
// undefine this to run the efficiency test
-//DEF_BENCH( return new FontCacheEfficiency(p); )
+//DEF_BENCH( return new FontCacheEfficiency(); )