diff options
author | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-09-02 21:12:42 +0000 |
---|---|---|
committer | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-09-02 21:12:42 +0000 |
commit | e9d0060f4d7b5a07a220182d83aae3a140784c4b (patch) | |
tree | 7d69dc75c6434c5ef7d07a9b0da108827e5056bf /bench/RepeatTileBench.cpp | |
parent | 34e85803c24224cf098c88f937dad9b2a1a96d51 (diff) |
add decode bench
add dictionary for bench tools to see optional cmdline args
git-svn-id: http://skia.googlecode.com/svn/trunk@351 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench/RepeatTileBench.cpp')
-rw-r--r-- | bench/RepeatTileBench.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bench/RepeatTileBench.cpp b/bench/RepeatTileBench.cpp index 48c1f6f4e8..97bbeb82d7 100644 --- a/bench/RepeatTileBench.cpp +++ b/bench/RepeatTileBench.cpp @@ -81,7 +81,7 @@ class RepeatTileBench : public SkBenchmark { SkString fName; enum { N = 20 }; public: - RepeatTileBench(SkBitmap::Config c) { + RepeatTileBench(void* param, SkBitmap::Config c) : INHERITED(param) { const int w = 50; const int h = 50; SkBitmap bm; @@ -127,10 +127,10 @@ private: typedef SkBenchmark INHERITED; }; -static SkBenchmark* Fact0(void*) { return new RepeatTileBench(SkBitmap::kARGB_8888_Config); } -static SkBenchmark* Fact1(void*) { return new RepeatTileBench(SkBitmap::kRGB_565_Config); } -static SkBenchmark* Fact2(void*) { return new RepeatTileBench(SkBitmap::kARGB_4444_Config); } -static SkBenchmark* Fact3(void*) { return new RepeatTileBench(SkBitmap::kIndex8_Config); } +static SkBenchmark* Fact0(void* p) { return new RepeatTileBench(p, SkBitmap::kARGB_8888_Config); } +static SkBenchmark* Fact1(void* p) { return new RepeatTileBench(p, SkBitmap::kRGB_565_Config); } +static SkBenchmark* Fact2(void* p) { return new RepeatTileBench(p, SkBitmap::kARGB_4444_Config); } +static SkBenchmark* Fact3(void* p) { return new RepeatTileBench(p, SkBitmap::kIndex8_Config); } static BenchRegistry gReg0(Fact0); static BenchRegistry gReg1(Fact1); |