Go to file
Kevin Lubick 644d8e7175 [PathKit] Add PathOps Op and Simplify tests imported from the C++ tests.
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>
2018-08-09 18:13:48 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Remove dead code from Benchmark 2018-08-09 13:07:28 +00:00
bin add --sync to adb push in bin/droid 2018-06-28 15:46:57 +00:00
dm Remove old sRGB config support from backend render target tool utilities 2018-08-09 15:27:24 +00:00
docker Use a larger machine for our cloud build. 2018-07-31 20:40:33 +00:00
docs fix bookmaker bot 2018-07-24 12:14:25 +00:00
example Compile with GCC 7.2.0. 2018-03-13 22:18:18 +00:00
experimental [PathKit] Add PathOps Op and Simplify tests imported from the C++ tests. 2018-08-09 18:13:48 +00:00
fuzz clean up includes 2018-08-06 14:49:46 +00:00
gm Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
gn Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
include Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
infra [PathKit] Add PathOps Op and Simplify tests imported from the C++ tests. 2018-08-09 18:13:48 +00:00
modules Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
platform_tools Prototype an Android lottie player 2018-08-02 16:20:13 +00:00
resources Add sRGB profile to mandrill images 2018-07-09 23:02:39 +00:00
samplecode Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
site add skia.org modules section, animation page 2018-08-08 14:30:03 +00:00
src Remove old sRGB config support from backend render target tool utilities 2018-08-09 15:27:24 +00:00
tests Remove old sRGB config support from backend render target tool utilities 2018-08-09 15:27:24 +00:00
third_party Roll skia/third_party/skcms 5b1292eaeda5..f1e2b45d18fa (1 commits) 2018-08-08 22:04:29 +00:00
tools Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
.clang-format Update .clang-format to handle Objective-C files 2018-07-27 21:33:30 +00:00
.gitignore Add OpenCL build. 2018-06-29 13:06:57 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS Fixed SkVertices crashing on Windows DLL builds 2018-04-22 14:42:01 +00:00
BUILD.gn Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
CQ_COMMITTERS Moved committer list to chrome-infra-auth and deleted it from the repo 2015-09-02 13:37:54 -07:00
DEPS Roll third_party/externals/angle2 c86c8b0cecf0..c43cdad25851 (6 commits) 2018-08-09 02:59:39 +00:00
Doxyfile Make the housekeeper upload doxygen to a newer bucket 2016-10-04 13:23:57 -07:00
LICENSE BUG=skia:5602 2016-09-02 11:19:34 -07:00
OWNERS add OWNERS file 2017-12-01 19:50:19 +00:00
PRESUBMIT.py Make CR and trailing whitespace errors. 2018-07-11 20:48:38 +00:00
public.bzl Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
README Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
README.chromium Update README.chromium. 2015-06-11 13:19:24 -07:00
whitespace.txt Whitespace change to trigger flutter roller 2018-06-22 01:18:46 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.