[Fontations-backend] Resolve palettes FFI functionality
Add a palette resolution function to accept Skia palette overrides and
return a CXX rust::Vec<u32> of Skia compatible color values.
Preparation for Fontations COLRv1 support. Remove the previous approach
for COLRv0 - COLRv0 will be a subset of the COLRv1 implementation.
For palette resolution, the resolved palette will be computed on the
Rust side and will be kept as a CXX rust::Vec in the SkTypeface
implementation.
Bug: b/301562314
Cq-Include-Trybots: luci.skia.skia.primary:Build-Debian10-Clang-x86_64-Debug-Fontations,Build-Mac-Clang-x86_64-Debug-Fontations,Test-Debian10-Clang-GCE-CPU-AVX2-x86_64-Debug-All-Fontations,Test-Mac12-Clang-MacBookPro16.2-CPU-AppleIntel-x86_64-Debug-All-Fontations
Change-Id: Ibfc93171ca8682c7d6073a07b65de32f9e885678
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/792856
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Dominik Röttsches <drott@google.com>
2 files changed