skia2/modules
Kevin Lubick bffc116a4a [canvaskit] Load resources into wasm gms/unit tests.
To load in the resources, we have the Node JS script
find all files in the provided resources directory and serve
that as a JSON file (the HTML JS can't list files easily).
The HTML JS reads that file, then loads all those files as
ArrayBuffers.

After the testing WASM and the resources all load, we pre-load
them into the WASM memory, assigned with their name. This is
just a map of name -> SkData. The WASM code can't (easily)
make fetch calls, so rather than load these resources on demand
like we would in a real file system, we pre-load them all
and serve them from RAM. For simplicity (and consistency with
the known_hashes), this map is a global.

Finally, to connect the resources to the GMs, we overwrite the
gResourceFactory (defined in ResourceFactory.h) which is used
by tools/Resources.cpp to load any resource file (in theory).

One more change is to write some progress steps to window._log
so it can be read by puppeteer and dumped to disk to aid in
debugging.

Bug: skia:10812
Change-Id: Ie22c7f4b8d7cbbd18173b4e2ed755105c1b45249
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/328901
Reviewed-by: Leandro Lovisolo <lovisolo@google.com>
2020-10-21 20:40:29 +00:00
..
audioplayer SFML [1] backed for SkAudioPlayer/Linux 2020-08-18 17:58:55 +00:00
canvaskit [canvaskit] Load resources into wasm gms/unit tests. 2020-10-21 20:40:29 +00:00
particles move SkTPin to include/private 2020-10-16 19:45:11 +00:00
pathkit [pathkit] update to build with emsdk 2.0.6 2020-10-08 17:26:32 +00:00
skottie move SkTPin to include/private 2020-10-16 19:45:11 +00:00
skparagraph Underline decorations with gaps and no text 2020-10-21 19:43:33 +00:00
skplaintexteditor Enable ClangTidy check readability-const-return-type. 2020-08-07 17:42:38 +00:00
skresources move SkTPin to include/private 2020-10-16 19:45:11 +00:00
sksg move SkTPin to include/private 2020-10-16 19:45:11 +00:00
skshaper ICU project: script iterator in SkShaper 2020-10-16 16:08:12 +00:00
svg [svg] Add gradientUnits attribute, value, and parsing 2020-10-21 20:00:43 +00:00