skia2/modules/canvaskit/tests
Kevin Lubick 6aa3869f76 [canvaskit] Use scratch arrays for colors and matrices
At startup, we allocate a few scratch arrays and then use those
instead of having to malloc and free a bunch of arrays during
runtime.

The benchmark that was added is a bit noisy (probably because
of the garbage collection going on from the created Float32Arrays),
but a few percent faster.

We also don't set the paragraph background/foreground colors to
transparent because we check them being falsey before sending them
over the wire. I noticed that if foreground was transparent black,
no text shows up at all, which was unexpected.

Change-Id: I9f3a590a122d7de222cb5f58ea40e86b2d261c96
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/292685
Reviewed-by: Nathaniel Nifong <nifong@google.com>
2020-06-01 15:47:07 +00:00
..
assets [canvaskit] Fix support for fonts with CFF 2020-01-29 12:39:55 +00:00
canvas2d.spec.js [canvaskit] Add gm helper functions to tests. 2020-04-03 19:12:02 +00:00
canvas.spec.js [canvaskit] Use scratch arrays for colors and matrices 2020-06-01 15:47:07 +00:00
canvaskitinit.js Upgrade CanvasKit emscripten to version 1.39.16. 2020-05-21 14:18:48 +00:00
core.spec.js [canvaskit] Use scratch arrays for colors and matrices 2020-06-01 15:47:07 +00:00
font.spec.js [canvaskit] Enable font edging 2020-05-08 13:22:18 +00:00
matrix.spec.js [canvaskit] Add gm helper functions to tests. 2020-04-03 19:12:02 +00:00
paragraph.spec.js Record code coverage in canvaskit tests, increase coverage 2020-05-29 15:53:35 +00:00
path.spec.js [canvaskit] Do not automatically free things provided by Malloc. 2020-05-28 19:45:52 +00:00
rtshader.spec.js Add 'shader' as an alias for 'fragmentProcessor' 2020-05-15 13:52:15 +00:00
skottie.spec.js [canvaskit] Add gm helper functions to tests. 2020-04-03 19:12:02 +00:00
util.js [canvaskit] Add gm helper functions to tests. 2020-04-03 19:12:02 +00:00