aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/TextBench.cpp
diff options
context:
space:
mode:
authorGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-09-02 21:12:42 +0000
committerGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-09-02 21:12:42 +0000
commite9d0060f4d7b5a07a220182d83aae3a140784c4b (patch)
tree7d69dc75c6434c5ef7d07a9b0da108827e5056bf /bench/TextBench.cpp
parent34e85803c24224cf098c88f937dad9b2a1a96d51 (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/TextBench.cpp')
-rw-r--r--bench/TextBench.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/bench/TextBench.cpp b/bench/TextBench.cpp
index a4ed9f23dc..93ef1c5007 100644
--- a/bench/TextBench.cpp
+++ b/bench/TextBench.cpp
@@ -24,7 +24,8 @@ class TextBench : public SkBenchmark {
SkString fName;
enum { N = 300 };
public:
- TextBench(const char text[], int ps, bool linearText, bool posText) {
+ TextBench(void* param, const char text[], int ps, bool linearText,
+ bool posText) : INHERITED(param) {
fText.set(text);
fPaint.setAntiAlias(true);
@@ -97,14 +98,14 @@ private:
#define SMALL 9
#define BIG 48
-static SkBenchmark* Fact0(void*) { return new TextBench(STR, SMALL, false, false); }
-static SkBenchmark* Fact1(void*) { return new TextBench(STR, SMALL, false, true); }
-static SkBenchmark* Fact2(void*) { return new TextBench(STR, SMALL, true, false); }
-static SkBenchmark* Fact3(void*) { return new TextBench(STR, SMALL, true, true); }
-static SkBenchmark* Fact4(void*) { return new TextBench(STR, BIG, false, false); }
-static SkBenchmark* Fact5(void*) { return new TextBench(STR, BIG, false, true); }
-static SkBenchmark* Fact6(void*) { return new TextBench(STR, BIG, true, false); }
-static SkBenchmark* Fact7(void*) { return new TextBench(STR, BIG, true, true); }
+static SkBenchmark* Fact0(void* p) { return new TextBench(p, STR, SMALL, false, false); }
+static SkBenchmark* Fact1(void* p) { return new TextBench(p, STR, SMALL, false, true); }
+static SkBenchmark* Fact2(void* p) { return new TextBench(p, STR, SMALL, true, false); }
+static SkBenchmark* Fact3(void* p) { return new TextBench(p, STR, SMALL, true, true); }
+static SkBenchmark* Fact4(void* p) { return new TextBench(p, STR, BIG, false, false); }
+static SkBenchmark* Fact5(void* p) { return new TextBench(p, STR, BIG, false, true); }
+static SkBenchmark* Fact6(void* p) { return new TextBench(p, STR, BIG, true, false); }
+static SkBenchmark* Fact7(void* p) { return new TextBench(p, STR, BIG, true, true); }
static BenchRegistry gReg0(Fact0);
static BenchRegistry gReg1(Fact1);