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()); |
} |