diff options
author | Florin Malita <fmalita@chromium.org> | 2018-05-31 12:17:55 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-31 16:39:13 +0000 |
commit | c83a0deaa8d4d94450424c4c8eed53e70b25365c (patch) | |
tree | 8c8812bd4db7bc7b61536d6d8223b9a01cfaeaa7 /modules/skottie/fuzz/FuzzSkottieJSON.cpp | |
parent | dbe89bb0312c6b68b51676596335faed13507052 (diff) |
[skottie] Make the resource provider factory argument optional
Most of the existing clients don't care about nested resources.
Change-Id: Ie7991dd25ebbd679b5b49e5624772c7e19e7ec79
Reviewed-on: https://skia-review.googlesource.com/131141
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'modules/skottie/fuzz/FuzzSkottieJSON.cpp')
-rw-r--r-- | modules/skottie/fuzz/FuzzSkottieJSON.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/modules/skottie/fuzz/FuzzSkottieJSON.cpp b/modules/skottie/fuzz/FuzzSkottieJSON.cpp index 35135f133f..23c77cebd9 100644 --- a/modules/skottie/fuzz/FuzzSkottieJSON.cpp +++ b/modules/skottie/fuzz/FuzzSkottieJSON.cpp @@ -10,16 +10,8 @@ #include "SkStream.h" void FuzzSkottieJSON(sk_sp<SkData> bytes) { - // Always returns nullptr to any resource - class EmptyResourceProvider final : public skottie::ResourceProvider { - public: - std::unique_ptr<SkStream> openStream(const char resource[]) const override { - return nullptr; - } - }; SkMemoryStream stream(bytes); - EmptyResourceProvider erp; - auto animation = skottie::Animation::Make(&stream, erp); + auto animation = skottie::Animation::Make(&stream); if (!animation) { return; } |