diff options
Diffstat (limited to 'src/images/SkDecodingImageGenerator.cpp')
-rw-r--r-- | src/images/SkDecodingImageGenerator.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/images/SkDecodingImageGenerator.cpp b/src/images/SkDecodingImageGenerator.cpp index b4af220d71..5d71ab88b5 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); } |