skia2/experimental/canvaskit
Alexander Khovansky 3e11933765 [canvaskit] Exposed SkPath::arc. Exposed SkEncodedImageFormat enum. Exposed SkImage::encodeToData overload with arguments
These changes expose the arc function for SkPath. The ApplyAddArc function is a copy from the PathKit bindings.

Also exposed the PNG and JPEG formats from the SkEncodedImageFormat enum and the SkImage::encodeToData overload that accepts format and quality options. The direct binding of encodeToData was replaced with a pre-js wrapper that calls the appropriate private overload

We are working on a PostCSS conic gradient polyfill plugin and want to use the CanvasKit to generate it.
Problem is - it lacks the arc function that technically exists but isn't exposed. And it would be really great to have encodeToData with options since generated PNGs are quite large.
More details on the issue can be found here: https://github.com/jonathantneal/postcss-conic-gradient/issues/10

R=kjlubick@google.com

Bug: skia:
Change-Id: I3f1dc88ad308369fe62004080bcc196c4fbbf742
Reviewed-on: https://skia-review.googlesource.com/c/171046
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
2018-11-15 02:52:02 +00:00
..
canvaskit [canvaskit] Update examples after enum name change 2018-11-07 15:45:14 +00:00
htmlcanvas [canvaskit] Add drawVertices API 2018-11-03 12:18:04 +00:00
perf [canvaskit] Increase timeout thresholds for perf 2018-10-18 14:54:33 +00:00
tests [canvaskit] Add catchException everywhere 2018-11-05 13:07:02 +00:00
canvaskit_bindings.cpp [canvaskit] Exposed SkPath::arc. Exposed SkEncodedImageFormat enum. Exposed SkImage::encodeToData overload with arguments 2018-11-15 02:52:02 +00:00
compile.sh Reland "simplify disabling effect deserialization" 2018-11-08 14:26:52 +00:00
cpu.js [canvaskit] POC working on Node.js 2018-10-17 12:48:24 +00:00
externs.js [canvaskit] Exposed SkPath::arc. Exposed SkEncodedImageFormat enum. Exposed SkImage::encodeToData overload with arguments 2018-11-15 02:52:02 +00:00
gpu.js [canvaskit] Fleshing out the beginnings of a Canvas API 2018-10-22 18:02:09 +00:00
helper.js
interface.js [canvaskit] Exposed SkPath::arc. Exposed SkEncodedImageFormat enum. Exposed SkImage::encodeToData overload with arguments 2018-11-15 02:52:02 +00:00
karma.bench.conf.js [canvaskit] Add perf jobs 2018-10-17 19:41:16 +00:00
karma.conf.js Add Correctness tests for CanvasKit 2018-10-16 14:32:28 +00:00
Makefile [canvaskit] Update examples after enum name change 2018-11-07 15:45:14 +00:00
package.json Add Correctness tests for CanvasKit 2018-10-16 14:32:28 +00:00
serve.py