[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:
parent
4f90f9d831
commit
74f2fb558f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user