diff options
author | 2015-08-26 13:07:48 -0700 | |
---|---|---|
committer | 2015-08-26 13:07:49 -0700 | |
commit | 385fe4d4b62d7d1dd76116dd570df3290a2f487b (patch) | |
tree | 53d982ff238828331e86acd44071a44162a8688c /src/codec/SkCodec_wbmp.cpp | |
parent | 5015176adf046ef906a2313b6e6b64b72cc84898 (diff) |
Style Change: SkNEW->new; SkDELETE->delete
DOCS_PREVIEW= https://skia.org/?cl=1316123003
Review URL: https://codereview.chromium.org/1316123003
Diffstat (limited to 'src/codec/SkCodec_wbmp.cpp')
-rw-r--r-- | src/codec/SkCodec_wbmp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/codec/SkCodec_wbmp.cpp b/src/codec/SkCodec_wbmp.cpp index 9e38155b4b..16cdbeaa72 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()); } |