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

Unified Diff: bench/DeferredCanvasBench.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/DecodeBench.cpp ('k') | bench/DeferredSurfaceCopyBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/DeferredCanvasBench.cpp
diff --git a/bench/DeferredCanvasBench.cpp b/bench/DeferredCanvasBench.cpp
index 4caf2299fce5961875abeb9b8dd5b0b6616c4171..2ef4c6b03f17b362ed615eab58aef5a138237259 100644
--- a/bench/DeferredCanvasBench.cpp
+++ b/bench/DeferredCanvasBench.cpp
@@ -11,7 +11,7 @@
class DeferredCanvasBench : public SkBenchmark {
public:
- DeferredCanvasBench(void* param, const char name[]) : INHERITED(param) {
+ DeferredCanvasBench(const char name[]) {
fName.printf("deferred_canvas_%s", name);
}
@@ -70,8 +70,8 @@ private:
// overhead of SkDeferredCanvas
class DeferredRecordBench : public DeferredCanvasBench {
public:
- DeferredRecordBench(void* param)
- : INHERITED(param, "record") {
+ DeferredRecordBench()
+ : INHERITED("record") {
}
protected:
@@ -105,6 +105,4 @@ private:
///////////////////////////////////////////////////////////////////////////////
-static SkBenchmark* Fact0(void* p) { return new DeferredRecordBench(p); }
-
-static BenchRegistry gReg0(Fact0);
+DEF_BENCH( return new DeferredRecordBench(); )
« no previous file with comments | « bench/DecodeBench.cpp ('k') | bench/DeferredSurfaceCopyBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698