Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Unified Diff: src/images/SkMovie.cpp

Issue 2343933002: Revert of SkFontData to use smart pointers. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkTypeface.cpp ('k') | src/ports/SkFontConfigInterface_direct.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/images/SkMovie.cpp
diff --git a/src/images/SkMovie.cpp b/src/images/SkMovie.cpp
index a0a37dcffa36abe038b4f43b28adb1bebce6ec65..bf94f281c8ceff2c816490876239386062ec1cbf 100644
--- a/src/images/SkMovie.cpp
+++ b/src/images/SkMovie.cpp
@@ -89,6 +89,6 @@
}
SkMovie* SkMovie::DecodeFile(const char path[]) {
- std::unique_ptr<SkStreamRewindable> stream = SkStream::MakeFromFile(path);
- return stream ? SkMovie::DecodeStream(stream.get()) : nullptr;
+ SkAutoTDelete<SkStreamRewindable> stream(SkStream::NewFromFile(path));
+ return stream.get() ? SkMovie::DecodeStream(stream) : nullptr;
}
« no previous file with comments | « src/core/SkTypeface.cpp ('k') | src/ports/SkFontConfigInterface_direct.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698