Index: bench/RTreeBench.cpp |
diff --git a/bench/RTreeBench.cpp b/bench/RTreeBench.cpp |
index 3b3dc72a3ed5d7c1eb60986292d4e718f4f71217..1da9fbe0945fa8a4f2a54ed6b0e7c6ec23658578 100644 |
--- a/bench/RTreeBench.cpp |
+++ b/bench/RTreeBench.cpp |
@@ -127,12 +127,12 @@ static inline SkRect make_concentric_rects(SkRandom&, int index, int numRects) { |
/////////////////////////////////////////////////////////////////////////////// |
-DEF_BENCH(return SkNEW_ARGS(RTreeBuildBench, ("XY", &make_XYordered_rects))); |
-DEF_BENCH(return SkNEW_ARGS(RTreeBuildBench, ("YX", &make_YXordered_rects))); |
-DEF_BENCH(return SkNEW_ARGS(RTreeBuildBench, ("random", &make_random_rects))); |
-DEF_BENCH(return SkNEW_ARGS(RTreeBuildBench, ("concentric", &make_concentric_rects))); |
- |
-DEF_BENCH(return SkNEW_ARGS(RTreeQueryBench, ("XY", &make_XYordered_rects))); |
-DEF_BENCH(return SkNEW_ARGS(RTreeQueryBench, ("YX", &make_YXordered_rects))); |
-DEF_BENCH(return SkNEW_ARGS(RTreeQueryBench, ("random", &make_random_rects))); |
-DEF_BENCH(return SkNEW_ARGS(RTreeQueryBench, ("concentric", &make_concentric_rects))); |
+DEF_BENCH(return new RTreeBuildBench("XY", &make_XYordered_rects)); |
+DEF_BENCH(return new RTreeBuildBench("YX", &make_YXordered_rects)); |
+DEF_BENCH(return new RTreeBuildBench("random", &make_random_rects)); |
+DEF_BENCH(return new RTreeBuildBench("concentric", &make_concentric_rects)); |
+ |
+DEF_BENCH(return new RTreeQueryBench("XY", &make_XYordered_rects)); |
+DEF_BENCH(return new RTreeQueryBench("YX", &make_YXordered_rects)); |
+DEF_BENCH(return new RTreeQueryBench("random", &make_random_rects)); |
+DEF_BENCH(return new RTreeQueryBench("concentric", &make_concentric_rects)); |