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> |
||
---|---|---|
animations | ||
bench | ||
bin | ||
dm | ||
docker | ||
docs | ||
example | ||
experimental | ||
fuzz | ||
gm | ||
gn | ||
include | ||
infra | ||
modules | ||
platform_tools | ||
resources | ||
samplecode | ||
site | ||
src | ||
tests | ||
third_party | ||
tools | ||
.clang-format | ||
.gitignore | ||
.gn | ||
AUTHORS | ||
BUILD.gn | ||
codereview.settings | ||
CONTRIBUTING | ||
CQ_COMMITTERS | ||
DEPS | ||
Doxyfile | ||
LICENSE | ||
OWNERS | ||
PRESUBMIT.py | ||
public.bzl | ||
README | ||
README.chromium | ||
whitespace.txt |
Skia is a complete 2D graphic library for drawing Text, Geometries, and Images. See full details, and build instructions, at https://skia.org.