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

Unified Diff: bench/LineBench.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/LightingBench.cpp ('k') | bench/MagnifierBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/LineBench.cpp
diff --git a/bench/LineBench.cpp b/bench/LineBench.cpp
index 7a54d3cc4a7648512208cbcabafc46818c5b7af5..e69a40a94c7fca73930602003550060e9eaee20b 100644
--- a/bench/LineBench.cpp
+++ b/bench/LineBench.cpp
@@ -26,7 +26,7 @@ class LineBench : public SkBenchmark {
SkPoint fPts[PTS];
public:
- LineBench(void* param, SkScalar width, bool doAA) : INHERITED(param) {
+ LineBench(SkScalar width, bool doAA) {
fStrokeWidth = width;
fDoAA = doAA;
fName.printf("lines_%g_%s", width, doAA ? "AA" : "BW");
@@ -59,8 +59,8 @@ private:
typedef SkBenchmark INHERITED;
};
-DEF_BENCH(return new LineBench(p, 0, false);)
-DEF_BENCH(return new LineBench(p, SK_Scalar1, false);)
-DEF_BENCH(return new LineBench(p, 0, true);)
-DEF_BENCH(return new LineBench(p, SK_Scalar1/2, true);)
-DEF_BENCH(return new LineBench(p, SK_Scalar1, true);)
+DEF_BENCH(return new LineBench(0, false);)
+DEF_BENCH(return new LineBench(SK_Scalar1, false);)
+DEF_BENCH(return new LineBench(0, true);)
+DEF_BENCH(return new LineBench(SK_Scalar1/2, true);)
+DEF_BENCH(return new LineBench(SK_Scalar1, true);)
« no previous file with comments | « bench/LightingBench.cpp ('k') | bench/MagnifierBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698