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

Unified Diff: bench/TableBench.cpp

Issue 23876006: Refactoring: get rid of the SkBenchmark void* parameter. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: sync to head 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
« no previous file with comments | « bench/StrokeBench.cpp ('k') | bench/TextBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/TableBench.cpp
diff --git a/bench/TableBench.cpp b/bench/TableBench.cpp
index 8dcefbed5f63b2b98ab86cb2ea0aa1fc5b285a5f..0646d26be5558ae81b9ac12f5c1a943d7fe82b5a 100644
--- a/bench/TableBench.cpp
+++ b/bench/TableBench.cpp
@@ -28,10 +28,6 @@ public:
static const int kNumRows = 48;
static const int kNumCols = 32;
- TableBench(void* param)
- : INHERITED(param) {
- }
-
protected:
virtual const char* onGetName() {
return "tablebench";
@@ -73,6 +69,4 @@ private:
typedef SkBenchmark INHERITED;
};
-static SkBenchmark* gFactory(void* p) { return new TableBench(p); }
-
-static BenchRegistry gRegistry(gFactory);
+DEF_BENCH( return new TableBench(); )
« no previous file with comments | « bench/StrokeBench.cpp ('k') | bench/TextBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698