Index: bench/WriterBench.cpp |
diff --git a/bench/WriterBench.cpp b/bench/WriterBench.cpp |
index 948c0ad1d247d383bd9bf6c53b56cd2d60758040..0956b22b10913859799502732790ef9d5971f60d 100644 |
--- a/bench/WriterBench.cpp |
+++ b/bench/WriterBench.cpp |
@@ -12,9 +12,7 @@ |
class WriterBench : public SkBenchmark { |
public: |
- WriterBench(void* param) : INHERITED(param) { |
- fIsRendering = false; |
- } |
+ WriterBench() { fIsRendering = false; } |
protected: |
virtual const char* onGetName() SK_OVERRIDE { |
@@ -38,5 +36,4 @@ private: |
//////////////////////////////////////////////////////////////////////////////// |
-static SkBenchmark* fact(void* p) { return new WriterBench(p); } |
-static BenchRegistry gReg(fact); |
+DEF_BENCH( return new WriterBench(); ) |