Add SkGradientShader::ColorSpace::kOKLabGamutMap and kOKLCHGamutMap
These are like OKLab and OKLCH, but have gamut mapping to a polyhedral
approximation of the Rec2020 gamut baked into them.
This includes only the SKSL implementation. The CPU implementation is
not complete, and turns all colors to greyscale.
Bug: chromium:1508329
Change-Id: I1f701b322a0e05bc567caad58c84c773c05199bc
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/789816
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: ccameron chromium <ccameron@chromium.org>
11 files changed