skia2/modules
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
..
canvaskit [canvaskit] Use scratch arrays for colors and matrices 2020-06-01 15:47:07 +00:00
particles Revert "Omit dead SkSL functions" 2020-06-01 15:00:00 +00:00
pathkit Upgrade CanvasKit emscripten to version 1.39.16. 2020-05-21 14:18:48 +00:00
skottie SkMatrix::Rotate() 2020-05-25 17:58:54 +00:00
skparagraph Hide ICU C++ API from Skia users. 2020-05-29 21:43:19 +00:00
skplaintexteditor Hide ICU C++ API from Skia users. 2020-05-29 21:43:19 +00:00
skresources [skottie/tools] Video playback support 2020-04-24 15:56:50 +00:00
sksg Revert "Revert "move onto new factories for SkMatrix"" 2020-05-21 16:58:39 +00:00
skshaper Hide ICU C++ API from Skia users. 2020-05-29 21:43:19 +00:00