SkYUVAPixmapInfo::DefaultColorTypeForDataType: Add red option
Add the build flag SK_YUVA_DEFAULT_RED which will default YUVA to use R
instead of Alpha or Grey for single channels.
Leave this as opt-in at build time as we clean up the projects that use
this (Chromium has lots of places to clean up).
Wire up missing GrColorType::kR_16 (and kR_8) entries in GrGLCaps,
GrMtlCaps, and GrMockCaps so defaultBackendFormat and texture uploads
for kR16_unorm_SkColorType succeed on OpenGL, Metal, and Mock contexts.
Bug: 40261346
Change-Id: Ia0cfa4d976193bb4dcb8cb685dd2b9e0f9b53dc7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/1428636
Commit-Queue: Christopher Cameron <ccameron@google.com>
Reviewed-by: Michael Ludwig <michaelludwig@google.com>
5 files changed