Reland "Add LUM8 case to GrGLCaps::getYUVAColorTypeFromBackendFormat"
This reverts commit6779aefa73
. Reason for revert: Reverted wrong CL 🤦 Original change's description: > Revert "Add LUM8 case to GrGLCaps::getYUVAColorTypeFromBackendFormat" > > This reverts commit1a607e7b6e
. > > Reason for revert: Causing Valgrind failures > > Original change's description: > > 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> > > TBR=bsalomon@google.com,robertphillips@google.com > > Change-Id: I741283ff4681a49eb84a48935ec17eb6aeffd8e3 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/231257 > Reviewed-by: Ben Wagner aka dogben <benjaminwagner@google.com> > Commit-Queue: Ben Wagner aka dogben <benjaminwagner@google.com> TBR=bsalomon@google.com,benjaminwagner@google.com,robertphillips@google.com Change-Id: I637b626e6707d625bcc17df01234246995b78243 No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://skia-review.googlesource.com/c/skia/+/231261 Reviewed-by: Ben Wagner aka dogben <benjaminwagner@google.com> Commit-Queue: Ben Wagner aka dogben <benjaminwagner@google.com>
This commit is contained in:
parent
acd8dbea94
commit
579e86247c
@ -4031,6 +4031,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