[skottie-wasm] Disable image pre-decoding

After [1], we can rely the image decode cache to amortize large image
decoding.

[1] https://skia-review.googlesource.com/c/buildbot/+/256364

TBR=
Change-Id: I01d7e923aed927ecbf8c0584bac4e62901628523
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/256456
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Florin Malita <fmalita@chromium.org>
This commit is contained in:
Florin Malita 2019-11-25 15:40:47 -05:00 committed by Skia Commit-Bot
parent 4f90f9d831
commit 74f2fb558f

View File

@ -53,7 +53,7 @@ public:
const char[] /* id */) const override {
// For CK/Skottie we ignore paths & IDs, and identify images based solely on name.
if (auto data = this->findAsset(name)) {
return skottie_utils::MultiFrameImageAsset::Make(std::move(data), true /* predecode */);
return skottie_utils::MultiFrameImageAsset::Make(std::move(data));
}
return nullptr;
@ -247,8 +247,7 @@ EMSCRIPTEN_BINDINGS(Skottie) {
return ManagedAnimation::Make(json,
skottie_utils::DataURIResourceProviderProxy::Make(
SkottieAssetProvider::Make(std::move(assets)),
/*predecode=*/true));
SkottieAssetProvider::Make(std::move(assets))));
}));
constant("managed_skottie", true);
#endif // SK_INCLUDE_MANAGED_SKOTTIE