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

Unified Diff: bench/RectBench.cpp

Issue 1316123003: Style Change: SkNEW->new; SkDELETE->delete (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-26 (Wednesday) 15:59:00 EDT Created 5 years, 4 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/RTreeBench.cpp ('k') | bench/RectanizerBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/RectBench.cpp
diff --git a/bench/RectBench.cpp b/bench/RectBench.cpp
index 4aa6b8bd1a1ce1c3885717a23cb800230b154662..db363959bb145bb688fa700548dff962191ad36f 100644
--- a/bench/RectBench.cpp
+++ b/bench/RectBench.cpp
@@ -249,40 +249,35 @@ private:
kMaskType _type;
};
-
-DEF_BENCH( return SkNEW_ARGS(RectBench, (1)); )
-DEF_BENCH( return SkNEW_ARGS(RectBench, (1, 4)); )
-DEF_BENCH( return SkNEW_ARGS(RectBench, (3)); )
-DEF_BENCH( return SkNEW_ARGS(RectBench, (3, 4)); )
-DEF_BENCH( return SkNEW_ARGS(OvalBench, (1)); )
-DEF_BENCH( return SkNEW_ARGS(OvalBench, (3)); )
-DEF_BENCH( return SkNEW_ARGS(OvalBench, (1, 4)); )
-DEF_BENCH( return SkNEW_ARGS(OvalBench, (3, 4)); )
-DEF_BENCH( return SkNEW_ARGS(RRectBench, (1)); )
-DEF_BENCH( return SkNEW_ARGS(RRectBench, (1, 4)); )
-DEF_BENCH( return SkNEW_ARGS(RRectBench, (3)); )
-DEF_BENCH( return SkNEW_ARGS(RRectBench, (3, 4)); )
-DEF_BENCH( return SkNEW_ARGS(PointsBench, (SkCanvas::kPoints_PointMode, "points")); )
-DEF_BENCH( return SkNEW_ARGS(PointsBench, (SkCanvas::kLines_PointMode, "lines")); )
-DEF_BENCH( return SkNEW_ARGS(PointsBench, (SkCanvas::kPolygon_PointMode, "polygon")); )
-
-DEF_BENCH( return SkNEW_ARGS(SrcModeRectBench, ()); )
+DEF_BENCH(return new RectBench(1);)
+DEF_BENCH(return new RectBench(1, 4);)
+DEF_BENCH(return new RectBench(3);)
+DEF_BENCH(return new RectBench(3, 4);)
+DEF_BENCH(return new OvalBench(1);)
+DEF_BENCH(return new OvalBench(3);)
+DEF_BENCH(return new OvalBench(1, 4);)
+DEF_BENCH(return new OvalBench(3, 4);)
+DEF_BENCH(return new RRectBench(1);)
+DEF_BENCH(return new RRectBench(1, 4);)
+DEF_BENCH(return new RRectBench(3);)
+DEF_BENCH(return new RRectBench(3, 4);)
+DEF_BENCH(return new PointsBench(SkCanvas::kPoints_PointMode, "points");)
+DEF_BENCH(return new PointsBench(SkCanvas::kLines_PointMode, "lines");)
+DEF_BENCH(return new PointsBench(SkCanvas::kPolygon_PointMode, "polygon");)
+
+DEF_BENCH(return new SrcModeRectBench();)
/* init the blitmask bench
*/
-DEF_BENCH( return SkNEW_ARGS(BlitMaskBench,
- (SkCanvas::kPoints_PointMode,
- BlitMaskBench::kMaskOpaque, "maskopaque")
- ); )
-DEF_BENCH( return SkNEW_ARGS(BlitMaskBench,
- (SkCanvas::kPoints_PointMode,
- BlitMaskBench::kMaskBlack, "maskblack")
- ); )
-DEF_BENCH( return SkNEW_ARGS(BlitMaskBench,
- (SkCanvas::kPoints_PointMode,
- BlitMaskBench::kMaskColor, "maskcolor")
- ); )
-DEF_BENCH( return SkNEW_ARGS(BlitMaskBench,
- (SkCanvas::kPoints_PointMode,
- BlitMaskBench::KMaskShader, "maskshader")
- ); )
+DEF_BENCH(return new BlitMaskBench(SkCanvas::kPoints_PointMode,
+ BlitMaskBench::kMaskOpaque,
+ "maskopaque");)
+DEF_BENCH(return new BlitMaskBench(SkCanvas::kPoints_PointMode,
+ BlitMaskBench::kMaskBlack,
+ "maskblack");)
+DEF_BENCH(return new BlitMaskBench(SkCanvas::kPoints_PointMode,
+ BlitMaskBench::kMaskColor,
+ "maskcolor");)
+DEF_BENCH(return new BlitMaskBench(SkCanvas::kPoints_PointMode,
+ BlitMaskBench::KMaskShader,
+ "maskshader");)
« no previous file with comments | « bench/RTreeBench.cpp ('k') | bench/RectanizerBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698