Fix DDL bots
This fixes the proximal issue w/ the new DDL images. The underlying issue appears to be that the GIF decoder isn't available on all platforms. Change-Id: I117b6460e09b2c7815d84929a340579690c15945 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/260276 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
This commit is contained in:
parent
07c4e1da31
commit
e84bffc746
@ -293,6 +293,9 @@ int DDLPromiseImageHelper::addImage(SkImage* image) {
|
||||
}
|
||||
} else {
|
||||
sk_sp<SkImage> rasterImage = image->makeRasterImage(); // force decoding of lazy images
|
||||
if (!rasterImage) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
SkBitmap tmp;
|
||||
tmp.allocPixels(overallII);
|
||||
@ -317,6 +320,5 @@ int DDLPromiseImageHelper::findOrDefineImage(SkImage* image) {
|
||||
}
|
||||
|
||||
int newID = this->addImage(image);
|
||||
SkASSERT(this->isValidID(newID));
|
||||
return newID;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user