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

Unified Diff: bench/WriterBench.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/WritePixelsBench.cpp ('k') | bench/XfermodeBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/WriterBench.cpp
diff --git a/bench/WriterBench.cpp b/bench/WriterBench.cpp
index 948c0ad1d247d383bd9bf6c53b56cd2d60758040..0956b22b10913859799502732790ef9d5971f60d 100644
--- a/bench/WriterBench.cpp
+++ b/bench/WriterBench.cpp
@@ -12,9 +12,7 @@
class WriterBench : public SkBenchmark {
public:
- WriterBench(void* param) : INHERITED(param) {
- fIsRendering = false;
- }
+ WriterBench() { fIsRendering = false; }
protected:
virtual const char* onGetName() SK_OVERRIDE {
@@ -38,5 +36,4 @@ private:
////////////////////////////////////////////////////////////////////////////////
-static SkBenchmark* fact(void* p) { return new WriterBench(p); }
-static BenchRegistry gReg(fact);
+DEF_BENCH( return new WriterBench(); )
« no previous file with comments | « bench/WritePixelsBench.cpp ('k') | bench/XfermodeBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698