Add LUM8 case to GrGLCaps::getYUVAColorTypeFromBackendFormat
This omission appears to have been causing YUV problems in Chrome. Change-Id: I7f13b18ba5c367dcdc242eff3532cacb2e06d1da Reviewed-on: https://skia-review.googlesource.com/c/skia/+/231100 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
This commit is contained in:
parent
fe125a1103
commit
1a607e7b6e
@ -4030,6 +4030,7 @@ GrColorType GrGLCaps::getYUVAColorTypeFromBackendFormat(const GrBackendFormat& f
|
||||
GrGLFormat grGLFormat = GrGLBackendFormatToGLFormat(format);
|
||||
|
||||
switch (grGLFormat) {
|
||||
case GrGLFormat::kLUMINANCE8: return GrColorType::kGray_8;
|
||||
case GrGLFormat::kALPHA8: // fall through
|
||||
case GrGLFormat::kR8: return GrColorType::kAlpha_8;
|
||||
case GrGLFormat::kRG8: return GrColorType::kRG_88;
|
||||
|
Loading…
Reference in New Issue
Block a user