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/BitmapRectBench.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/BitmapRectBench.cpp')
-rw-r--r-- | bench/BitmapRectBench.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bench/BitmapRectBench.cpp b/bench/BitmapRectBench.cpp index f917445051..1dd98ef975 100644 --- a/bench/BitmapRectBench.cpp +++ b/bench/BitmapRectBench.cpp @@ -48,7 +48,7 @@ class BitmapRectBench : public SkBenchmark { static const int kWidth = 128; static const int kHeight = 128; public: - BitmapRectBench(void* param, U8CPU alpha, bool doFilter, bool slightMatrix) : INHERITED(param) { + BitmapRectBench(U8CPU alpha, bool doFilter, bool slightMatrix) { fAlpha = SkToU8(alpha); fDoFilter = doFilter; fSlightMatrix = slightMatrix; @@ -101,10 +101,10 @@ private: typedef SkBenchmark INHERITED; }; -DEF_BENCH(return new BitmapRectBench(p, 0xFF, false, false)) -DEF_BENCH(return new BitmapRectBench(p, 0x80, false, false)) -DEF_BENCH(return new BitmapRectBench(p, 0xFF, true, false)) -DEF_BENCH(return new BitmapRectBench(p, 0x80, true, false)) +DEF_BENCH(return new BitmapRectBench(0xFF, false, false)) +DEF_BENCH(return new BitmapRectBench(0x80, false, false)) +DEF_BENCH(return new BitmapRectBench(0xFF, true, false)) +DEF_BENCH(return new BitmapRectBench(0x80, true, false)) -DEF_BENCH(return new BitmapRectBench(p, 0xFF, false, true)) -DEF_BENCH(return new BitmapRectBench(p, 0xFF, true, true)) +DEF_BENCH(return new BitmapRectBench(0xFF, false, true)) +DEF_BENCH(return new BitmapRectBench(0xFF, true, true)) |