From c83a0deaa8d4d94450424c4c8eed53e70b25365c Mon Sep 17 00:00:00 2001 From: Florin Malita Date: Thu, 31 May 2018 12:17:55 -0400 Subject: [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 Commit-Queue: Florin Malita --- modules/skottie/fuzz/FuzzSkottieJSON.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'modules/skottie/fuzz/FuzzSkottieJSON.cpp') 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 bytes) { - // Always returns nullptr to any resource - class EmptyResourceProvider final : public skottie::ResourceProvider { - public: - std::unique_ptr 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; } -- cgit v1.2.3