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

Unified Diff: src/codec/SkCodec_libpng.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/codec/SkCodec_libico.cpp ('k') | src/codec/SkCodec_wbmp.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codec/SkCodec_libpng.cpp
diff --git a/src/codec/SkCodec_libpng.cpp b/src/codec/SkCodec_libpng.cpp
index 2fa3e686beeef1af2496bdbca80d4219394190cc..31a4d2e711588f5d9214da37aa3cc9c26c89ff77 100644
--- a/src/codec/SkCodec_libpng.cpp
+++ b/src/codec/SkCodec_libpng.cpp
@@ -189,7 +189,7 @@ bool SkPngCodec::decodePalette(bool premultiply, int* ctableCount) {
*ctableCount = colorCount;
}
- fColorTable.reset(SkNEW_ARGS(SkColorTable, (colorStorage, colorCount)));
+ fColorTable.reset(new SkColorTable(colorStorage, colorCount));
return true;
}
@@ -356,8 +356,7 @@ SkCodec* SkPngCodec::NewFromStream(SkStream* stream) {
SkImageInfo imageInfo;
int bitDepth;
if (read_header(stream, &png_ptr, &info_ptr, &imageInfo, &bitDepth)) {
- return SkNEW_ARGS(SkPngCodec, (imageInfo, streamDeleter.detach(),
- png_ptr, info_ptr, bitDepth));
+ return new SkPngCodec(imageInfo, streamDeleter.detach(), png_ptr, info_ptr, bitDepth);
}
return NULL;
}
@@ -781,9 +780,9 @@ SkScanlineDecoder* SkPngCodec::NewSDFromStream(SkStream* stream) {
const SkImageInfo& srcInfo = codec->getInfo();
if (codec->fNumberPasses > 1) {
// interlaced image
- return SkNEW_ARGS(SkPngInterlacedScanlineDecoder, (srcInfo, codec.detach()));
+ return new SkPngInterlacedScanlineDecoder(srcInfo, codec.detach());
}
- return SkNEW_ARGS(SkPngScanlineDecoder, (srcInfo, codec.detach()));
+ return new SkPngScanlineDecoder(srcInfo, codec.detach());
}
« no previous file with comments | « src/codec/SkCodec_libico.cpp ('k') | src/codec/SkCodec_wbmp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698