Fix up wacky_yuv_formats GM
This makes NV12 and NV21 toggle on/off as a pair. Bug: skia:9155 Change-Id: Ie0d3f2b3c0aba9a1777a722190bcf6aa5b5e85c3 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/222460 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
This commit is contained in:
parent
3e8e34e944
commit
712f0a7bd3
@ -100,10 +100,11 @@ static bool format_has_builtin_alpha(YUVFormat yuvFormat) {
|
||||
}
|
||||
|
||||
static bool format_cant_be_represented_with_pixmaps(YUVFormat yuvFormat) {
|
||||
return kP016_YUVFormat == yuvFormat ||
|
||||
kP010_YUVFormat == yuvFormat ||
|
||||
kY416_YUVFormat == yuvFormat ||
|
||||
kY410_YUVFormat == yuvFormat;
|
||||
return kP016_YUVFormat == yuvFormat || // bc missing SkColorType::kRG_1616 and kR_16
|
||||
kP010_YUVFormat == yuvFormat || // bc missing SkColorType::kRG_1616 and kR_16
|
||||
kY416_YUVFormat == yuvFormat || // bc missing SkColorType::kRGBA_16161616
|
||||
kNV12_YUVFormat == yuvFormat || // bc missing SkColorType::kRG_88
|
||||
kNV21_YUVFormat == yuvFormat; // bc missing SkColorType::kRG_88
|
||||
}
|
||||
|
||||
// Helper to setup the SkYUVAIndex array correctly
|
||||
|
Loading…
Reference in New Issue
Block a user