skia2/include/ports
Leon Scroggins III 326b98981e Add platform image encoder for using NDK APIs
Bug: skia:10369

Add SkEncodeImageWithNDK, mirroring the CG and WIC versions, for
encoding with the NDK APIs added to R.

Rename SK_ENABLE_NDK_DECODING to SK_ENABLE_NDK_IMAGES and use it for
both encoding and decoding.

Move code for converting to/from NDK types into a common location.

Update encode_platform.cpp to use NDK encoding APIs when available and
to use both types of webp (lossy and lossless). Add tests specifically
for the new implementation.

Update NdkDecodeTest to use ToolUtils::equal_pixels for comparing
pixels.

Change-Id: Ic62f89af27372ccce90b8e028e01c388a135a68c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/308800
Commit-Queue: Leon Scroggins <scroggo@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
2020-08-13 15:21:41 +00:00
..
SkAudioPlayer.h audio player (for mac) 2020-08-13 15:09:32 +00:00
SkCFObject.h Change GrCFResource to sk_cf_obj and move to include/ports. 2019-06-10 18:44:28 +00:00
SkFontConfigInterface.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkFontMgr_android.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkFontMgr_directory.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkFontMgr_empty.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkFontMgr_fontconfig.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkFontMgr_FontConfigInterface.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkFontMgr_fuchsia.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkFontMgr_indirect.h Update DataEntry struct to properly support move semantics. 2020-07-27 23:27:31 +00:00
SkFontMgr_mac_ct.h Split out coretext fontmgr factory. 2020-06-06 04:06:32 +00:00
SkImageGeneratorCG.h Enable ClangTidy check llvm-namespace-comment. 2020-08-06 19:07:52 +00:00
SkImageGeneratorNDK.h Add platform image encoder for using NDK APIs 2020-08-13 15:21:41 +00:00
SkImageGeneratorWIC.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkRemotableFontMgr.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
SkTypeface_mac.h Remove CGFontRef parameter from SkMakeTypefaceFromCTFont 2020-01-31 18:35:10 +00:00
SkTypeface_win.h Move SkLeanWindows.h to src. 2019-05-21 13:48:00 +00:00