diff options
Diffstat (limited to 'experimental/skottie/Skottie.h')
-rw-r--r-- | experimental/skottie/Skottie.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/experimental/skottie/Skottie.h b/experimental/skottie/Skottie.h index d2486dc946..f14c4dc42b 100644 --- a/experimental/skottie/Skottie.h +++ b/experimental/skottie/Skottie.h @@ -34,13 +34,12 @@ public: virtual std::unique_ptr<SkStream> openStream(const char resource[]) const = 0; }; -class Animation : public SkNoncopyable { +class Animation : public SkRefCnt { public: - static std::unique_ptr<Animation> Make(SkStream*, const ResourceProvider&); - static std::unique_ptr<Animation> MakeFromFile(const char path[], - const ResourceProvider* = nullptr); + static sk_sp<Animation> Make(SkStream*, const ResourceProvider&); + static sk_sp<Animation> MakeFromFile(const char path[], const ResourceProvider* = nullptr); - ~Animation(); + ~Animation() override; void render(SkCanvas*, const SkRect* dst = nullptr) const; @@ -67,7 +66,7 @@ private: std::unique_ptr<sksg::Scene> fScene; - typedef SkNoncopyable INHERITED; + typedef SkRefCnt INHERITED; }; } // namespace skottie |