skia2/experimental
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
..
c-api-example remove more old cmake files 2016-11-30 20:37:45 +00:00
canvaskit [canvaskit] Exposed SkPath::arc. Exposed SkEncodedImageFormat enum. Exposed SkImage::encodeToData overload with arguments 2018-11-15 02:52:02 +00:00
docs
documentation experimental/tools/gerrit-change-id-to-number 2017-12-18 17:21:42 +00:00
go-demo Experimental Go bindings for Skia 2017-05-10 15:32:19 +00:00
go-skia Fix go syntax for Debian compile 2018-03-19 20:26:46 +00:00
Networking Remove a huge pile of views code 2017-11-22 18:59:44 +00:00
nima Refactor Nima code 2018-10-30 19:32:52 +00:00
pvg add pvg experiment 2018-11-02 15:35:21 +00:00
svg/model migrating SkTDArray towards std::vector api 2018-08-08 15:51:44 +00:00
tools experimental/tools/generate-unicode-test-txt: update 2018-10-31 17:05:54 +00:00
xps_to_png experimental/xps_to_png: pass in DPI as program argument 2016-11-14 15:39:09 +00:00