skia2/src/codec
Leon Scroggins III a77f30c7db Reland "Split building encoding from decoding"
This reverts commit 9d4b788807.
Copyright issue has been fixed in
https://skia-review.googlesource.com/c/skia/+/275998.

Original description:
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.

TBR=djsollen@google.com

Change-Id: Ic847bae0154e0a2922100b3f2ee14a077ee5635a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/276007
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Commit-Queue: Leon Scroggins <scroggo@google.com>
2020-03-09 20:21:19 +00:00
..
SkAndroidCodec.cpp Reland "Split building encoding from decoding" 2020-03-09 20:21:19 +00:00
SkAndroidCodecAdapter.cpp rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkAndroidCodecAdapter.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkBmpBaseCodec.cpp rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkBmpBaseCodec.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkBmpCodec.cpp rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkBmpCodec.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkBmpMaskCodec.cpp rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkBmpMaskCodec.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkBmpRLECodec.cpp Remove SkTMin and SkTMax 2020-02-07 18:40:09 +00:00
SkBmpRLECodec.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkBmpStandardCodec.cpp Remove SkTMin and SkTMax 2020-02-07 18:40:09 +00:00
SkBmpStandardCodec.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkCodec.cpp Reland "Split building encoding from decoding" 2020-03-09 20:21:19 +00:00
SkCodecAnimationPriv.h Make SkCodec more flexible about its required frame 2017-06-07 20:15:17 +00:00
SkCodecImageGenerator.cpp use std::make_unique 2019-12-12 22:32:45 +00:00
SkCodecImageGenerator.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkCodecPriv.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkColorTable.cpp rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkColorTable.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkEncodedInfo.cpp rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkFrameHolder.h header self-sufficiency and idempotency 2019-06-26 19:12:43 +00:00
SkHeifCodec.cpp heif: Update to actual frame duration when the frame is decoded 2019-08-26 18:56:21 +00:00
SkHeifCodec.h heif: Update to actual frame duration when the frame is decoded 2019-08-26 18:56:21 +00:00
SkIcoCodec.cpp rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkIcoCodec.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkJpegCodec.cpp SkJpegCodec: Gracefully handle malloc failure 2020-03-02 18:40:49 +00:00
SkJpegCodec.h SkJpegCodec: Gracefully handle malloc failure 2020-03-02 18:40:49 +00:00
SkJpegDecoderMgr.cpp rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkJpegDecoderMgr.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkJpegPriv.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkJpegUtility.cpp rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkJpegUtility.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkMasks.cpp Remove 565 mask data from GrStrikeCache to constexpr varialbe 2020-02-03 16:27:05 +00:00
SkMasks.h Remove 565 mask data from GrStrikeCache to constexpr varialbe 2020-02-03 16:27:05 +00:00
SkMaskSwizzler.cpp rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkMaskSwizzler.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkParseEncodedOrigin.cpp Remove SkTMin and SkTMax 2020-02-07 18:40:09 +00:00
SkParseEncodedOrigin.h Move is_orientation_marker into its own file 2019-09-24 17:08:03 +00:00
SkPngCodec.cpp Reland "Split building encoding from decoding" 2020-03-09 20:21:19 +00:00
SkPngCodec.h Reland "Split building encoding from decoding" 2020-03-09 20:21:19 +00:00
SkPngPriv.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkRawCodec.cpp Remove SkTMin and SkTMax 2020-02-07 18:40:09 +00:00
SkRawCodec.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkSampledCodec.cpp SkJpegCodec: Gracefully handle malloc failure 2020-03-02 18:40:49 +00:00
SkSampledCodec.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkSampler.cpp rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkSampler.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkScalingCodec.h Remove SkTMin and SkTMax 2020-02-07 18:40:09 +00:00
SkStreamBuffer.cpp Remove SkTMin and SkTMax 2020-02-07 18:40:09 +00:00
SkStreamBuffer.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkStubHeifDecoderAPI.h Remove SK_LEGACY_HEIF_API 2019-08-22 16:28:29 +00:00
SkSwizzler.cpp rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkSwizzler.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkWbmpCodec.cpp rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkWbmpCodec.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkWebpCodec.cpp Remove SkTMin and SkTMax 2020-02-07 18:40:09 +00:00
SkWebpCodec.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkWuffsCodec.cpp Have SkWuffsCodec.cpp link to Wuffs API docs 2019-12-16 15:06:04 +00:00
SkWuffsCodec.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00