Index: tools/filtermain.cpp |
diff --git a/tools/filtermain.cpp b/tools/filtermain.cpp |
index 4114a9db41ddec13b7af5d297d6b070faa864cc6..39c484d7243dd763d0466bb2c03758bc9c283db3 100644 |
--- a/tools/filtermain.cpp |
+++ b/tools/filtermain.cpp |
@@ -666,7 +666,7 @@ static int filter_picture(const SkString& inFile, const SkString& outFile) { |
SkFILEStream inStream(inFile.c_str()); |
if (inStream.isValid()) { |
- inPicture.reset(SkNEW_ARGS(SkPicture, (&inStream, NULL, &SkImageDecoder::DecodeMemory))); |
+ inPicture.reset(SkPicture::CreateFromStream(&inStream)); |
} |
if (NULL == inPicture.get()) { |