skia2/infra
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
..
bots [canvaskit] Load resources into wasm gms/unit tests. 2020-10-21 20:40:29 +00:00
canvaskit [canvaskit] Add job to compile GMTests js/wasm 2020-10-09 20:41:43 +00:00
cmake [infra] Change CMake build to use a temporary directory 2020-01-14 11:41:55 +00:00
config [infra] Update recipe dependencies 2020-08-03 11:34:57 +00:00
cross-compile/docker/cross-linux-arm64 Add dockerfile to cross-compile for arm64 linux 2019-02-20 19:04:11 +00:00
docker [infra] Add Debian9 docker image. 2020-04-14 12:47:14 +00:00
gcc remove support for mips64el/loongson3a 2020-05-19 19:22:49 +00:00
lottiecap Update gold aggregators to use new struct 2019-09-30 14:30:48 +00:00
pathkit [canvaskit,pathkit] Update to emsdk 2.0 2020-08-20 14:55:50 +00:00
project-config Delete swarm_trigger recipe 2016-12-13 12:53:00 +00:00
skqp Update skqp's Android NDK to r20 2019-07-03 20:45:24 +00:00
wasm-common [canvaskit] Update emsdk to 2.0.6 2020-10-08 16:38:10 +00:00
README.md

This directory contains infra-specific files. The branch-config/ directory contains configs that are specific to the master branch (e.g. config for the CQ committing to the master branch), while project-config/ directory contains project-wide configuration (e.g. list of buckets for cr-buildbucket service and list of refs known to the infra services).