Add YCgCo color space support for multiplanar formats.

With multiplanar shared images, yuv/rgb color space conversion is
done through skia instead of through ui/gfx color space conversion
filters with values provided by media.

gfx::ColorSpace has some special ColorSpaces which are not handled by
Skia yet. This change adds support for YCgCo color space conversion
along with their bit depth.

Future follow-ups will add corresponding support for others such as
GBR, FCC, YDZDX etc.

Bug: b/41486014
Change-Id: Ic45d7213031121c5d51b7abd313c701af9f31a0a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/826399
Commit-Queue: Saifuddin Hitawala <hitawala@chromium.org>
Reviewed-by: Brian Osman <brianosman@google.com>
3 files changed