Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Unified Diff: bench/ReadPixBench.cpp

Issue 23876006: Refactoring: get rid of the SkBenchmark void* parameter. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: clean up bad edits Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: bench/ReadPixBench.cpp
diff --git a/bench/ReadPixBench.cpp b/bench/ReadPixBench.cpp
index 505ff32269485386332dcac3bd0913e8ca5235e2..f62917b6ea1640dca591591b2bd5c12f0533d9e5 100644
--- a/bench/ReadPixBench.cpp
+++ b/bench/ReadPixBench.cpp
@@ -17,7 +17,7 @@
*/
class ReadPixBench : public SkBenchmark {
public:
- ReadPixBench(void* param) : INHERITED(param) {}
+ ReadPixBench() {}
protected:
virtual const char* onGetName() SK_OVERRIDE {
@@ -64,5 +64,4 @@ private:
////////////////////////////////////////////////////////////////////////////////
-static SkBenchmark* fact(void* p) { return new ReadPixBench(p); }
-static BenchRegistry gReg(fact);
+DEF_BENCH( return new ReadPixBench(); )
« bench/BicubicBench.cpp ('K') | « bench/RTreeBench.cpp ('k') | bench/RectBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698