Index: bench/GameBench.cpp |
diff --git a/bench/GameBench.cpp b/bench/GameBench.cpp |
index 3d9885f6920e825a695aba5ae317c3e878aa8457..631a8f25f00a2c26460cba5a12683916ff499fdb 100644 |
--- a/bench/GameBench.cpp |
+++ b/bench/GameBench.cpp |
@@ -308,27 +308,18 @@ private: |
}; |
// Partial clear |
-DEF_BENCH( return SkNEW_ARGS(GameBench, (GameBench::kScale_Type, |
- GameBench::kPartial_Clear)); ) |
-DEF_BENCH( return SkNEW_ARGS(GameBench, (GameBench::kTranslate_Type, |
- GameBench::kPartial_Clear)); ) |
-DEF_BENCH( return SkNEW_ARGS(GameBench, (GameBench::kTranslate_Type, |
- GameBench::kPartial_Clear, true)); ) |
-DEF_BENCH( return SkNEW_ARGS(GameBench, (GameBench::kRotate_Type, |
- GameBench::kPartial_Clear)); ) |
+DEF_BENCH(return new GameBench(GameBench::kScale_Type, GameBench::kPartial_Clear);) |
+DEF_BENCH(return new GameBench(GameBench::kTranslate_Type, GameBench::kPartial_Clear);) |
+DEF_BENCH(return new GameBench(GameBench::kTranslate_Type, GameBench::kPartial_Clear, true);) |
+DEF_BENCH(return new GameBench(GameBench::kRotate_Type, GameBench::kPartial_Clear);) |
// Full clear |
-DEF_BENCH( return SkNEW_ARGS(GameBench, (GameBench::kScale_Type, |
- GameBench::kFull_Clear)); ) |
-DEF_BENCH( return SkNEW_ARGS(GameBench, (GameBench::kTranslate_Type, |
- GameBench::kFull_Clear)); ) |
-DEF_BENCH( return SkNEW_ARGS(GameBench, (GameBench::kTranslate_Type, |
- GameBench::kFull_Clear, true)); ) |
-DEF_BENCH( return SkNEW_ARGS(GameBench, (GameBench::kRotate_Type, |
- GameBench::kFull_Clear)); ) |
+DEF_BENCH(return new GameBench(GameBench::kScale_Type, GameBench::kFull_Clear);) |
+DEF_BENCH(return new GameBench(GameBench::kTranslate_Type, GameBench::kFull_Clear);) |
+DEF_BENCH(return new GameBench(GameBench::kTranslate_Type, GameBench::kFull_Clear, true);) |
+DEF_BENCH(return new GameBench(GameBench::kRotate_Type, GameBench::kFull_Clear);) |
// Atlased |
-DEF_BENCH( return SkNEW_ARGS(GameBench, (GameBench::kTranslate_Type, |
- GameBench::kFull_Clear, false, true)); ) |
-DEF_BENCH( return SkNEW_ARGS(GameBench, (GameBench::kTranslate_Type, |
- GameBench::kFull_Clear, false, true, true)); ) |
+DEF_BENCH(return new GameBench(GameBench::kTranslate_Type, GameBench::kFull_Clear, false, true);) |
+DEF_BENCH(return new GameBench( |
+ GameBench::kTranslate_Type, GameBench::kFull_Clear, false, true, true);) |