diff options
author | mtklein@google.com <mtklein@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-13 19:52:27 +0000 |
---|---|---|
committer | mtklein@google.com <mtklein@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-13 19:52:27 +0000 |
commit | 410e6e80f00a6c660675c80904807a041c7b7d2a (patch) | |
tree | e6b7287001f032ae9a9e09de19db5d0867bea9e3 /bench/PathUtilsBench.cpp | |
parent | af54a513a5b7723b53f61730afe0ad6256881749 (diff) |
Refactoring: get rid of the SkBenchmark void* parameter.
While I was doing massive sed-ing, I also converted every bench to use DEF_BENCH instead of registering the ugly manual way.
BUG=
R=scroggo@google.com
Review URL: https://codereview.chromium.org/23876006
git-svn-id: http://skia.googlecode.com/svn/trunk@11263 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench/PathUtilsBench.cpp')
-rw-r--r-- | bench/PathUtilsBench.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/bench/PathUtilsBench.cpp b/bench/PathUtilsBench.cpp index c3640f741b..06ef5dffb4 100644 --- a/bench/PathUtilsBench.cpp +++ b/bench/PathUtilsBench.cpp @@ -42,7 +42,7 @@ class PathUtilsBench : public SkBenchmark { char* bits[H * STRIDE]; public: - PathUtilsBench(void* param, Proc proc, const char name[]) : INHERITED(param) { + PathUtilsBench(Proc proc, const char name[]) { fProc = proc; fName.printf("pathUtils_%s", name); @@ -68,8 +68,5 @@ private: typedef SkBenchmark INHERITED; }; -static SkBenchmark* PU_path(void* p) { return SkNEW_ARGS(PathUtilsBench, (p, path_proc, "path")); } -static SkBenchmark* PU_region(void* p) { return SkNEW_ARGS(PathUtilsBench, (p, region_proc, "region")); } - -static BenchRegistry PU_Path(PU_path); -static BenchRegistry PU_Region(PU_region); +DEF_BENCH( return SkNEW_ARGS(PathUtilsBench, (path_proc, "path")); ) +DEF_BENCH( return SkNEW_ARGS(PathUtilsBench, (region_proc, "region")); ) |