aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm/DMSrcSink.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dm/DMSrcSink.cpp')
-rw-r--r--dm/DMSrcSink.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp
index 55b54f520b..1685dcbe96 100644
--- a/dm/DMSrcSink.cpp
+++ b/dm/DMSrcSink.cpp
@@ -1320,9 +1320,7 @@ Name DDLSKPSrc::name() const { return SkOSPath::Basename(fPath.c_str()); }
SkottySrc::SkottySrc(Path path)
: fName(SkOSPath::Basename(path.c_str())) {
- auto stream = SkStream::MakeFromFile(path.c_str());
- fAnimation = skotty::Animation::Make(stream.get());
-
+ fAnimation = skotty::Animation::MakeFromFile(path.c_str());
if (!fAnimation) {
return;
}