aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/skottie/fuzz/FuzzSkottieJSON.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/skottie/fuzz/FuzzSkottieJSON.cpp')
-rw-r--r--modules/skottie/fuzz/FuzzSkottieJSON.cpp10
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;
}