skia2/modules/canvaskit/tests
Kevin Lubick 2753b12ff5 [canvaskit] Add drawRect4f as example 'fast path' API
I added 3 tests, one using the drawRect API naively,
one using drawRect with a Malloc'd array, and one using
the drawRect4f.

rough local measurements:
 - [baseline with tip of tree code]: 50ms
 - naive drawRect: 40ms
 - drawRect with malloc: 28ms
 - drawRect4f: 27ms

I also tried the benchmarks locally with taking in paint
as a const reference. I did not see any changes, but that
could just be small sample size. I plan to land the code
as is for now, collect a bit of data in Perf and then try
landing the const reference stuff and see if we get
something measurable.

To aid this, I added in a helper list of tests to only run
some benchmarks easily.

Change-Id: I790b2d6fc32c125a4d371768fffb19ab22633d4e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/314622
Reviewed-by: Kevin Lubick <kjlubick@google.com>
2020-09-02 20:10:30 +00:00
..
assets [canvaskit] Quick fix for older skp format 2020-07-15 12:30:50 +00:00
canvas2d.spec.js [canvaskit] Add gm helper functions to tests. 2020-04-03 19:12:02 +00:00
canvas.spec.js [canvaskit] Add drawRect4f as example 'fast path' API 2020-09-02 20:10:30 +00:00
canvaskitinit.js Added CanvasKit.MakeImageFromCanvasImageSource which is useful as an alternative to 2020-06-15 19:35:09 +00:00
core.spec.js [canvaskit] Change SkRects to be arrays, not objects. 2020-09-02 20:10:30 +00:00
font.spec.js [canvaskit] Change SkRects to be arrays, not objects. 2020-09-02 20:10:30 +00:00
matrix.spec.js Helper function for camera setup 2020-07-07 00:30:03 +00:00
paragraph.spec.js [CanvasKit] Expose TypefaceFontProvider. 2020-08-04 20:55:21 +00:00
path.spec.js [canvaskit] Change SkRects to be arrays, not objects. 2020-09-02 20:10:30 +00:00
rtshader.spec.js SkRuntimeEffect SkSL has a new signature for main() 2020-08-25 13:36:28 +00:00
skottie.spec.js [canvaskit] Change SkRects to be arrays, not objects. 2020-09-02 20:10:30 +00:00
util.js Added CanvasKit.MakeImageFromCanvasImageSource which is useful as an alternative to 2020-06-15 19:35:09 +00:00