Index: bench/DeferredSurfaceCopyBench.cpp |
diff --git a/bench/DeferredSurfaceCopyBench.cpp b/bench/DeferredSurfaceCopyBench.cpp |
index 7c9abea87f77ff072a614223493cf6351d65ea29..2aaebe74ec219e78265d259574599ef931666a82 100644 |
--- a/bench/DeferredSurfaceCopyBench.cpp |
+++ b/bench/DeferredSurfaceCopyBench.cpp |
@@ -21,7 +21,7 @@ class DeferredSurfaceCopyBench : public SkBenchmark { |
kSurfaceHeight = 1000, |
}; |
public: |
- DeferredSurfaceCopyBench(void* param, bool discardableContents) : SkBenchmark(param) { |
+ DeferredSurfaceCopyBench(bool discardableContents) { |
fDiscardableContents = discardableContents; |
} |
@@ -78,8 +78,5 @@ private: |
////////////////////////////////////////////////////////////////////////////// |
-static SkBenchmark* Fact0(void* p) { return new DeferredSurfaceCopyBench(p, false); } |
-static SkBenchmark* Fact1(void* p) { return new DeferredSurfaceCopyBench(p, true); } |
- |
-static BenchRegistry gReg0(Fact0); |
-static BenchRegistry gReg1(Fact1); |
+DEF_BENCH( return new DeferredSurfaceCopyBench(false); ) |
+DEF_BENCH( return new DeferredSurfaceCopyBench(true); ) |