Do not test images with alpha to 565
This should handle the untriaged images in Gold. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1635453002 Review URL: https://codereview.chromium.org/1635453002
This commit is contained in:
parent
c721196067
commit
d03b7ae1e2
@ -288,6 +288,11 @@ Error test_gen(SkCanvas* canvas, SkData* data) {
|
||||
// Currently, we will avoid creating a CodecSrc for this case (see DM.cpp).
|
||||
SkASSERT(kGray_8_SkColorType != gen->getInfo().colorType());
|
||||
|
||||
if (kOpaque_SkAlphaType != gen->getInfo().alphaType() &&
|
||||
kRGB_565_SkColorType == canvas->imageInfo().colorType()) {
|
||||
return Error::Nonfatal("Skip testing non-opaque images to 565.");
|
||||
}
|
||||
|
||||
SkAutoTDelete<SkImage> image(SkImage::NewFromGenerator(gen, nullptr));
|
||||
if (!image) {
|
||||
return "Could not create image from codec image generator.";
|
||||
|
Loading…
Reference in New Issue
Block a user