Index: tools/dump_record.cpp |
diff --git a/tools/dump_record.cpp b/tools/dump_record.cpp |
index 03ef93e58167eb1cd81a0fff39651cbe57198287..5d54f4d561c10c040fee0be22da29c4810f5b5c9 100644 |
--- a/tools/dump_record.cpp |
+++ b/tools/dump_record.cpp |
@@ -46,12 +46,12 @@ |
continue; |
} |
- std::unique_ptr<SkStream> stream = SkStream::MakeFromFile(FLAGS_skps[i]); |
+ SkAutoTDelete<SkStream> stream(SkStream::NewFromFile(FLAGS_skps[i])); |
if (!stream) { |
SkDebugf("Could not read %s.\n", FLAGS_skps[i]); |
return 1; |
} |
- sk_sp<SkPicture> src(SkPicture::MakeFromStream(stream.get())); |
+ sk_sp<SkPicture> src(SkPicture::MakeFromStream(stream)); |
if (!src) { |
SkDebugf("Could not read %s as an SkPicture.\n", FLAGS_skps[i]); |
return 1; |