Index: src/images/SkDecodingImageGenerator.cpp |
diff --git a/src/images/SkDecodingImageGenerator.cpp b/src/images/SkDecodingImageGenerator.cpp |
index b4af220d718f8b808a633abd169a5a573b747f64..5d71ab88b57e45a223d21de4920bdc36d1756490 100644 |
--- a/src/images/SkDecodingImageGenerator.cpp |
+++ b/src/images/SkDecodingImageGenerator.cpp |
@@ -257,9 +257,8 @@ SkImageGenerator* CreateDecodingImageGenerator( |
return NULL; |
} |
- return SkNEW_ARGS(DecodingImageGenerator, |
- (data, autoStream.detach(), info.makeAlphaType(newAlphaType), |
- opts.fSampleSize, opts.fDitherImage)); |
+ return new DecodingImageGenerator(data, autoStream.detach(), info.makeAlphaType(newAlphaType), |
+ opts.fSampleSize, opts.fDitherImage); |
} |
} // namespace |
@@ -273,7 +272,7 @@ SkImageGenerator* SkDecodingImageGenerator::Create( |
if (NULL == data) { |
return NULL; |
} |
- SkStreamRewindable* stream = SkNEW_ARGS(SkMemoryStream, (data)); |
+ SkStreamRewindable* stream = new SkMemoryStream(data); |
SkASSERT(stream != NULL); |
return CreateDecodingImageGenerator(data, stream, opts); |
} |