Index: tools/get_images_from_skps.cpp |
diff --git a/tools/get_images_from_skps.cpp b/tools/get_images_from_skps.cpp |
index e38a245915b4c5335a0278c9de387e9e7330d2c4..1ec70b3531f7dcd345d6c882648b92e340bccaeb 100644 |
--- a/tools/get_images_from_skps.cpp |
+++ b/tools/get_images_from_skps.cpp |
@@ -128,9 +128,9 @@ |
SkOSFile::Iter iter(inputs, "skp"); |
for (SkString file; iter.next(&file); ) { |
- std::unique_ptr<SkStream> stream = |
- SkStream::MakeFromFile(SkOSPath::Join(inputs, file.c_str()).c_str()); |
- sk_sp<SkPicture> picture(SkPicture::MakeFromStream(stream.get())); |
+ SkAutoTDelete<SkStream> stream = |
+ SkStream::NewFromFile(SkOSPath::Join(inputs, file.c_str()).c_str()); |
+ sk_sp<SkPicture> picture(SkPicture::MakeFromStream(stream)); |
SkDynamicMemoryWStream scratch; |
Sniffer sniff(file.c_str()); |