Fix YUVA index check
Bug: skia:7901 Change-Id: If43eb80e1c8ab25074b1e0fda68139d4e6c44729 Reviewed-on: https://skia-review.googlesource.com/c/162020 Auto-Submit: Jim Van Verth <jvanverth@google.com> Commit-Queue: Jim Van Verth <jvanverth@google.com> Reviewed-by: Jim Van Verth <jvanverth@google.com>
This commit is contained in:
parent
646d917d3c
commit
c6a17104ad
@ -238,7 +238,7 @@ sk_sp<SkImage> SkImage_GpuYUVA::MakePromiseYUVATexture(GrContext* context,
|
||||
for (int yuvIndex = 0; yuvIndex < 4; ++yuvIndex) {
|
||||
int texIdx = yuvaIndices[yuvIndex].fIndex;
|
||||
if (texIdx < 0) {
|
||||
SkASSERT(SkYUVAIndex::kA_Index);
|
||||
SkASSERT(SkYUVAIndex::kA_Index == yuvIndex);
|
||||
continue;
|
||||
}
|
||||
if (kUnknown_SkColorType == texColorTypes[texIdx]) {
|
||||
|
Loading…
Reference in New Issue
Block a user