Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: src/images/SkDecodingImageGenerator.cpp

Issue 1316123003: Style Change: SkNEW->new; SkDELETE->delete (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-26 (Wednesday) 15:59:00 EDT Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/image/SkSurface_Raster.cpp ('k') | src/images/SkImageDecoder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « src/image/SkSurface_Raster.cpp ('k') | src/images/SkImageDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698