Index: src/opts/SkXfermode_opts.h |
diff --git a/src/opts/SkXfermode_opts.h b/src/opts/SkXfermode_opts.h |
index b4fc8e1017a33009912bc4c2e1d9b8538aabd32d..673387b86a72e4f2d736c87c0224804533b43eab 100644 |
--- a/src/opts/SkXfermode_opts.h |
+++ b/src/opts/SkXfermode_opts.h |
@@ -280,8 +280,9 @@ namespace SK_OPTS_NS { |
static SkXfermode* create_xfermode(const ProcCoeff& rec, SkXfermode::Mode mode) { |
switch (mode) { |
- #define CASE(Mode) case SkXfermode::k##Mode##_Mode: \ |
- return SkNEW_ARGS(Sk4pxXfermode, (rec, mode, &Mode, &xfer_aa<Mode>)) |
+#define CASE(Mode) \ |
+ case SkXfermode::k##Mode##_Mode: \ |
+ return new Sk4pxXfermode(rec, mode, &Mode, &xfer_aa<Mode>) |
CASE(Clear); |
CASE(Src); |
CASE(Dst); |
@@ -306,8 +307,9 @@ static SkXfermode* create_xfermode(const ProcCoeff& rec, SkXfermode::Mode mode) |
CASE(Lighten); |
#undef CASE |
- #define CASE(Mode) case SkXfermode::k##Mode##_Mode: \ |
- return SkNEW_ARGS(SkPMFloatXfermode, (rec, mode, &Mode)) |
+#define CASE(Mode) \ |
+ case SkXfermode::k##Mode##_Mode: \ |
+ return new SkPMFloatXfermode(rec, mode, &Mode) |
CASE(ColorDodge); |
CASE(ColorBurn); |
CASE(SoftLight); |