skia2/modules/canvaskit
Florin Malita 774aeba9d0 [skottie] Add support for pre-decoding images at load time
Some animations use humongous images which thrash Skia's resource caches
at raster time.

To avoid that, we can

1) force decoding upfront, when the animation is loaded

2) clamp the image size to something reasonable (2K^2)

Add a flag to support this operation mode, and enable for Skottie/WASM.

Change-Id: Id2f127a5200b812b87e588904393d82c80452aa1
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/206179
Commit-Queue: Florin Malita <fmalita@chromium.org>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
2019-04-05 16:30:22 +00:00
..
canvaskit [canvaskit] Make SkImageShader from SkImage 2019-04-04 13:42:41 +00:00
fonts [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
htmlcanvas [canvaskit] Make SkImageShader from SkImage 2019-04-04 13:42:41 +00:00
perf [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
tests [canvaskit] Add TextOnPath helper to TextBlob 2019-03-15 22:28:17 +00:00
.gitignore [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
canvaskit_bindings.cpp [canvaskit] Make SkImageShader from SkImage 2019-04-04 13:42:41 +00:00
CHANGELOG.md [canvaskit] Make SkImageShader from SkImage 2019-04-04 13:42:41 +00:00
compile.sh [canvaskit] Make SkImageShader from SkImage 2019-04-04 13:42:41 +00:00
cpu.js [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
debug.js [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
externs.js [canvaskit] Make SkImageShader from SkImage 2019-04-04 13:42:41 +00:00
gpu.js Revert "[canvaskit] Bump GPU resource cache to 256MB" 2019-04-04 16:53:41 +00:00
helper.js [canvaskit] adding drawAtlas to canvas API 2019-04-04 13:03:35 +00:00
interface.js [canvaskit] Make SkImageShader from SkImage 2019-04-04 13:42:41 +00:00
karma.bench.conf.js [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
karma.conf.js [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
Makefile [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
package.json [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
particles_bindings.cpp [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
postamble.js [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
preamble.js [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
ready.js [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
release.js [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
serve.py [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
skottie_bindings.cpp [skottie] Add support for pre-decoding images at load time 2019-04-05 16:30:22 +00:00
skottie.js [canvaskit] Move from experimental to modules 2019-03-11 21:09:52 +00:00
WasmAliases.h [canvaskit] adding drawAtlas to canvas API 2019-04-04 13:03:35 +00:00