Index: bench/VertBench.cpp |
diff --git a/bench/VertBench.cpp b/bench/VertBench.cpp |
index 79dcc9ade294db74cb1253f1e1e5ed99c3e0bafb..39602b07aaf5d69b4a13b90a3408ef57ad52dd4e 100644 |
--- a/bench/VertBench.cpp |
+++ b/bench/VertBench.cpp |
@@ -39,7 +39,7 @@ class VertBench : public SkBenchmark { |
} |
public: |
- VertBench(void* param) : INHERITED(param) { |
+ VertBench() { |
const SkScalar dx = SkIntToScalar(W) / COL; |
const SkScalar dy = SkIntToScalar(H) / COL; |
@@ -92,6 +92,4 @@ private: |
/////////////////////////////////////////////////////////////////////////////// |
-static SkBenchmark* Fact(void* p) { return SkNEW_ARGS(VertBench, (p)); } |
- |
-static BenchRegistry gReg(Fact); |
+DEF_BENCH( return SkNEW_ARGS(VertBench, ()); ) |