| Index: samplecode/SampleAnimator.cpp
|
| diff --git a/samplecode/SampleAnimator.cpp b/samplecode/SampleAnimator.cpp
|
| index a3ec83afe673968e45d09a91824eb8552e8ce1de..d4a4cdd2887f150c405310f742b67f65c9ec494e 100644
|
| --- a/samplecode/SampleAnimator.cpp
|
| +++ b/samplecode/SampleAnimator.cpp
|
| @@ -11,8 +11,6 @@
|
| #include "SkAnimator.h"
|
| #include "SkStream.h"
|
| #include "SkDOM.h"
|
| -
|
| -#include <memory>
|
|
|
| ///////////////////////////////////////////////////////////////////////////////
|
|
|
| @@ -52,8 +50,8 @@
|
| }
|
|
|
| bool SkAnimatorView::decodeFile(const char path[]) {
|
| - std::unique_ptr<SkStream> is = SkStream::MakeFromFile(path);
|
| - return is && this->decodeStream(is.get());
|
| + SkAutoTDelete<SkStream> is(SkStream::NewFromFile(path));
|
| + return is.get() != nullptr && this->decodeStream(is);
|
| }
|
|
|
| bool SkAnimatorView::decodeMemory(const void* buffer, size_t size) {
|
|
|