skia2/modules
Leon Scroggins III 94aaf7cdf5 Split building encoding from decoding
Bug: skia:9756

In CanvasKit, a large part of the binary is for encoding. Clients
would be happier with a smaller binary and no webp/jpeg encoding. Make
this an option by splitting up the GN arguments.

Split SK_HAS_WEBP_LIBRARY into SK_CODEC_DECODES_WEBP (to match the
existing SK_CODEC_DECODES_RAW) and SK_ENCODE_WEBP. Same for JPEG and
PNG.

Update CanvasKit compile script to disable webp and jpeg encoding.
Update debugger compile script to disable all encoding.

Change IsPng signature to match other SkCodecs.

Change-Id: Iec8466ee1b76bc3d1e377c24201068b776cd7718
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/273768
Commit-Queue: Leon Scroggins <scroggo@google.com>
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Reviewed-by: Nathaniel Nifong <nifong@google.com>
2020-03-06 18:50:40 +00:00
..
canvaskit Split building encoding from decoding 2020-03-06 18:50:40 +00:00
particles Fix crash when editing particle scripts 2020-02-10 15:08:00 +00:00
pathkit Fix wasm builds 2020-01-28 19:03:49 +00:00
skottie [skottie] Text anchor point grouping support 2020-03-02 23:07:39 +00:00
skparagraph Cache resolved typefaces by Unichar + SkFontStyle + locale 2020-03-06 15:58:19 +00:00
skplaintexteditor Remove SkTMin and SkTMax 2020-02-07 18:40:09 +00:00
skresources use std::make_unique 2019-12-12 22:32:45 +00:00
sksg [skottie] Stroke dash support 2020-03-02 16:56:22 +00:00
skshaper Remove SkTMin and SkTMax 2020-02-07 18:40:09 +00:00