Index: src/images/SkMovie.cpp |
diff --git a/src/images/SkMovie.cpp b/src/images/SkMovie.cpp |
index bf94f281c8ceff2c816490876239386062ec1cbf..a0a37dcffa36abe038b4f43b28adb1bebce6ec65 100644 |
--- a/src/images/SkMovie.cpp |
+++ b/src/images/SkMovie.cpp |
@@ -89,6 +89,6 @@ SkMovie* SkMovie::DecodeMemory(const void* data, size_t length) { |
} |
SkMovie* SkMovie::DecodeFile(const char path[]) { |
- SkAutoTDelete<SkStreamRewindable> stream(SkStream::NewFromFile(path)); |
- return stream.get() ? SkMovie::DecodeStream(stream) : nullptr; |
+ std::unique_ptr<SkStreamRewindable> stream = SkStream::MakeFromFile(path); |
+ return stream ? SkMovie::DecodeStream(stream.get()) : nullptr; |
} |