644d8e7175
Because of https://skia-review.googlesource.com/c/skia/+/146165 and https://skia-review.googlesource.com/c/skia/+/146100 we have a way to turn PathOps tests into JSON, which has input paths (as Cmd arrays), combination verb and expected output. In this CL, we make tests from the JSON, compare them to the expected output and, optionally, create SVGs to visualize the difference if any. API changes (nothing breaking on release builds): - Exposes SkRect as a JS Object. No need to call delete() on this. - expose path.getBounds() and path.computeTightBounds() - Remove SkRegion exposure (debug/test only), which was going to be used for this purpose, but the approach in this CL works fine. - Add loadCmdsTypedArray(cmd) helper function to JS [see helper.js]. This was previously known as `floatTypedArrayFrom2D` in the old shell.html, and is now exposed to avoid clients having to implement this boilerplate by themselves. - Add set/getFillType - mostly for testing the difference between a Winding and an EvenOdd path. Bug: skia:8216 Change-Id: I2cd25ce2e1e7f285c79c596678678e62135963f0 Reviewed-on: https://skia-review.googlesource.com/146524 Reviewed-by: Cary Clark <caryclark@google.com> |
||
---|---|---|
.. | ||
c-api-example | ||
docs | ||
documentation | ||
go-demo | ||
go-skia | ||
Networking | ||
pathkit | ||
svg/model | ||
tools | ||
xps_to_png |