From e9d0060f4d7b5a07a220182d83aae3a140784c4b Mon Sep 17 00:00:00 2001 From: "reed@android.com" Date: Wed, 2 Sep 2009 21:12:42 +0000 Subject: 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 --- bench/RepeatTileBench.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bench/RepeatTileBench.cpp') 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); -- cgit v1.2.3