Index: src/ports/SkTypeface_win_dw.cpp |
diff --git a/src/ports/SkTypeface_win_dw.cpp b/src/ports/SkTypeface_win_dw.cpp |
index 90dc2c49adfcb316a219e41d2eaa7d15dad71b11..3af4cca4b248a147dec07c634e4e0a6f93445891 100644 |
--- a/src/ports/SkTypeface_win_dw.cpp |
+++ b/src/ports/SkTypeface_win_dw.cpp |
@@ -239,11 +239,11 @@ SkStreamAsset* DWriteFontTypeface::onOpenStream(int* ttcIndex) const { |
&fontFileStream), |
"Could not create font file stream."); |
- return SkNEW_ARGS(SkDWriteFontFileStream, (fontFileStream.get())); |
+ return new SkDWriteFontFileStream(fontFileStream.get()); |
} |
SkScalerContext* DWriteFontTypeface::onCreateScalerContext(const SkDescriptor* desc) const { |
- return SkNEW_ARGS(SkScalerContext_DW, (const_cast<DWriteFontTypeface*>(this), desc)); |
+ return new SkScalerContext_DW(const_cast<DWriteFontTypeface*>(this), desc); |
} |
void DWriteFontTypeface::onFilterRec(SkScalerContext::Rec* rec) const { |