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

Unified Diff: bench/DisplacementBench.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/DeferredSurfaceCopyBench.cpp ('k') | bench/FSRectBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/DisplacementBench.cpp
diff --git a/bench/DisplacementBench.cpp b/bench/DisplacementBench.cpp
index bf1ee73476c384baf0e3f61586359f87f68e5b84..3d0f215aafefc0979b2ecfc1d65b0195987e4b2a 100644
--- a/bench/DisplacementBench.cpp
+++ b/bench/DisplacementBench.cpp
@@ -17,8 +17,8 @@
class DisplacementBaseBench : public SkBenchmark {
public:
- DisplacementBaseBench(void* param, bool small) :
- INHERITED(param), fInitialized(false), fIsSmall(small) {
+ DisplacementBaseBench(bool small) :
+ fInitialized(false), fIsSmall(small) {
}
protected:
@@ -90,7 +90,7 @@ private:
class DisplacementZeroBench : public DisplacementBaseBench {
public:
- DisplacementZeroBench(void* param, bool small) : INHERITED(param, small) {
+ DisplacementZeroBench(bool small) : INHERITED(small) {
}
protected:
@@ -117,7 +117,7 @@ private:
class DisplacementAlphaBench : public DisplacementBaseBench {
public:
- DisplacementAlphaBench(void* param, bool small) : INHERITED(param, small) {
+ DisplacementAlphaBench(bool small) : INHERITED(small) {
}
protected:
@@ -143,7 +143,7 @@ private:
class DisplacementFullBench : public DisplacementBaseBench {
public:
- DisplacementFullBench(void* param, bool small) : INHERITED(param, small) {
+ DisplacementFullBench(bool small) : INHERITED(small) {
}
protected:
@@ -169,9 +169,9 @@ private:
///////////////////////////////////////////////////////////////////////////////
-DEF_BENCH( return new DisplacementZeroBench(p, true); )
-DEF_BENCH( return new DisplacementAlphaBench(p, true); )
-DEF_BENCH( return new DisplacementFullBench(p, true); )
-DEF_BENCH( return new DisplacementZeroBench(p, false); )
-DEF_BENCH( return new DisplacementAlphaBench(p, false); )
-DEF_BENCH( return new DisplacementFullBench(p, false); )
+DEF_BENCH( return new DisplacementZeroBench(true); )
+DEF_BENCH( return new DisplacementAlphaBench(true); )
+DEF_BENCH( return new DisplacementFullBench(true); )
+DEF_BENCH( return new DisplacementZeroBench(false); )
+DEF_BENCH( return new DisplacementAlphaBench(false); )
+DEF_BENCH( return new DisplacementFullBench(false); )
« no previous file with comments | « bench/DeferredSurfaceCopyBench.cpp ('k') | bench/FSRectBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698