Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2082)

Unified Diff: bench/FontCacheBench.cpp

Issue 23876006: Refactoring: get rid of the SkBenchmark void* parameter. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: sync to head Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bench/FSRectBench.cpp ('k') | bench/FontScalerBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/FontCacheBench.cpp
diff --git a/bench/FontCacheBench.cpp b/bench/FontCacheBench.cpp
index c206d5b6c8966ab8844c407573d5abb9d4e4ceca..c682f43121c6d1d37297aacfb6f58d9603519f38 100644
--- a/bench/FontCacheBench.cpp
+++ b/bench/FontCacheBench.cpp
@@ -25,7 +25,7 @@ static int count_glyphs(const uint16_t start[]) {
class FontCacheBench : public SkBenchmark {
public:
- FontCacheBench(void* param) : INHERITED(param) {}
+ FontCacheBench() {}
protected:
virtual const char* onGetName() SK_OVERRIDE {
@@ -109,7 +109,7 @@ static void dump_array(const uint16_t array[], int count) {
class FontCacheEfficiency : public SkBenchmark {
public:
- FontCacheEfficiency(void* param) : INHERITED(param) {
+ FontCacheEfficiency() {
if (false) dump_array(NULL, 0);
if (false) rotr(0, 0);
}
@@ -152,7 +152,7 @@ private:
///////////////////////////////////////////////////////////////////////////////
-DEF_BENCH( return new FontCacheBench(p); )
+DEF_BENCH( return new FontCacheBench(); )
// undefine this to run the efficiency test
-//DEF_BENCH( return new FontCacheEfficiency(p); )
+//DEF_BENCH( return new FontCacheEfficiency(); )
« no previous file with comments | « bench/FSRectBench.cpp ('k') | bench/FontScalerBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698