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

Unified Diff: src/codec/SkCodec_wbmp.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_libpng.cpp ('k') | src/codec/SkJpegCodec.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codec/SkCodec_wbmp.cpp
diff --git a/src/codec/SkCodec_wbmp.cpp b/src/codec/SkCodec_wbmp.cpp
index 9e38155b4b1a5f20b11434efab5e2b97770c85d5..16cdbeaa729c9518d68263576b6fe174fe0dde46 100644
--- a/src/codec/SkCodec_wbmp.cpp
+++ b/src/codec/SkCodec_wbmp.cpp
@@ -160,7 +160,7 @@ SkCodec* SkWbmpCodec::NewFromStream(SkStream* stream) {
}
SkImageInfo info = SkImageInfo::Make(size.width(), size.height(),
kGray_8_SkColorType, kOpaque_SkAlphaType);
- return SkNEW_ARGS(SkWbmpCodec, (info, streamDeleter.detach()));
+ return new SkWbmpCodec(info, streamDeleter.detach());
}
class SkWbmpScanlineDecoder : public SkScanlineDecoder {
@@ -214,7 +214,7 @@ public:
// Copy the color table to a pointer that can be owned by the scanline decoder
if (kIndex_8_SkColorType == dstInfo.colorType()) {
- fColorTable.reset(SkNEW_ARGS(SkColorTable, (inputColorTable, 2)));
+ fColorTable.reset(new SkColorTable(inputColorTable, 2));
}
// Initialize the swizzler
@@ -248,5 +248,5 @@ SkScanlineDecoder* SkWbmpCodec::NewSDFromStream(SkStream* stream) {
}
// Return the new scanline decoder
- return SkNEW_ARGS(SkWbmpScanlineDecoder, (codec.detach()));
+ return new SkWbmpScanlineDecoder(codec.detach());
}
« no previous file with comments | « src/codec/SkCodec_libpng.cpp ('k') | src/codec/SkJpegCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698