Index: src/codec/SkScaledCodec.cpp |
diff --git a/src/codec/SkScaledCodec.cpp b/src/codec/SkScaledCodec.cpp |
index 0f0d12993c87f4acc645047d349e06b594cce73e..bf09b4beca2036fc4b9e434011e4fcc54801e013 100644 |
--- a/src/codec/SkScaledCodec.cpp |
+++ b/src/codec/SkScaledCodec.cpp |
@@ -27,14 +27,14 @@ SkCodec* SkScaledCodec::NewFromStream(SkStream* stream) { |
} |
// wrap in new SkScaledCodec |
- return SkNEW_ARGS(SkScaledCodec, (scanlineDecoder.detach())); |
+ return new SkScaledCodec(scanlineDecoder.detach()); |
} |
SkCodec* SkScaledCodec::NewFromData(SkData* data) { |
if (!data) { |
return NULL; |
} |
- return NewFromStream(SkNEW_ARGS(SkMemoryStream, (data))); |
+ return NewFromStream(new SkMemoryStream(data)); |
} |
SkScaledCodec::SkScaledCodec(SkScanlineDecoder* scanlineDecoder) |