skia2/modules/canvaskit/perf
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] Move from experimental to modules 2019-03-11 21:09:52 +00:00
animation.bench.js [canvaskit] Roll chrome version for testing 2019-10-18 17:37:52 +00:00
canvas.bench.js [canvaskit] Use scratch arrays for colors and matrices 2020-06-01 15:47:07 +00:00
matrix.bench.js [canvaskit] Handle 4x4 matrix passing ourselves. 2020-04-06 19:21:58 +00:00