[rust png] Add new API: `SkColorSpace::MakeCICP`.
`SkPngRustCodec` needs to create `SkEncodedInfo::ICCProfile` from PNG
`cICP` chunk. This CL supports this by adding a new public API:
`SkColorSpace::MakeCICP`. Integration with the `SkPngRustCodec` can
be found in a follow-up CL at http://review.skia.org/917216.
This CL mostly copies/moves already existing code from Chromium's
`//skia/ext/cicp.h` and already existing constants from
`//skia/ext/skcolorspace_primaries.h` and
`//skia/ext/skcolorspace_trfn.h`. A follow-up Chromium CL to remove
them can be found at https://crrev.com/c/6012927.
Bug: chromium:376758571
Change-Id: Iaf25fc4652b91cf2297749b21680095edb8bb17c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/919127
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
Commit-Queue: Ćukasz Anforowicz <lukasza@google.com>
Reviewed-by: Christopher Cameron <ccameron@google.com>
3 files changed