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

Unified Diff: bench/MutexBench.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/MorphologyBench.cpp ('k') | bench/PathBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/MutexBench.cpp
diff --git a/bench/MutexBench.cpp b/bench/MutexBench.cpp
index 5a7058d5e02c578b34f809a0df6905178883f9f8..1d037ec1cd27da247e63c012c641361315918dc5 100644
--- a/bench/MutexBench.cpp
+++ b/bench/MutexBench.cpp
@@ -9,7 +9,7 @@
class MutexBench : public SkBenchmark {
public:
- MutexBench(void* param) : INHERITED(param) {
+ MutexBench() {
fIsRendering = false;
}
protected:
@@ -31,6 +31,4 @@ private:
///////////////////////////////////////////////////////////////////////////////
-static SkBenchmark* Fact(void* p) { return new MutexBench(p); }
-
-static BenchRegistry gReg01(Fact);
+DEF_BENCH( return new MutexBench(); )
« no previous file with comments | « bench/MorphologyBench.cpp ('k') | bench/PathBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698