From 410e6e80f00a6c660675c80904807a041c7b7d2a Mon Sep 17 00:00:00 2001 From: "mtklein@google.com" Date: Fri, 13 Sep 2013 19:52:27 +0000 Subject: 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 --- bench/CmapBench.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bench/CmapBench.cpp') diff --git a/bench/CmapBench.cpp b/bench/CmapBench.cpp index c721e9c4a9..1d2a5ee4e3 100644 --- a/bench/CmapBench.cpp +++ b/bench/CmapBench.cpp @@ -69,7 +69,7 @@ class CMAPBench : public SkBenchmark { SkPaint fPaint; public: - CMAPBench(void* param, TypefaceProc proc, const char name[]) : SkBenchmark(param) { + CMAPBench(TypefaceProc proc, const char name[]) { fProc = proc; fName.printf("cmap_%s", name); @@ -96,7 +96,7 @@ private: ////////////////////////////////////////////////////////////////////////////// -DEF_BENCH( return new CMAPBench(p, containsText_proc, "paint_containsText"); ) -DEF_BENCH( return new CMAPBench(p, textToGlyphs_proc, "paint_textToGlyphs"); ) -DEF_BENCH( return new CMAPBench(p, charsToGlyphs_proc, "face_charsToGlyphs"); ) -DEF_BENCH( return new CMAPBench(p, charsToGlyphsNull_proc, "face_charsToGlyphs_null"); ) +DEF_BENCH( return new CMAPBench(containsText_proc, "paint_containsText"); ) +DEF_BENCH( return new CMAPBench(textToGlyphs_proc, "paint_textToGlyphs"); ) +DEF_BENCH( return new CMAPBench(charsToGlyphs_proc, "face_charsToGlyphs"); ) +DEF_BENCH( return new CMAPBench(charsToGlyphsNull_proc, "face_charsToGlyphs_null"); ) -- cgit v1.2.3