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:
Robert Phillips 2019-12-16 11:22:17 -05:00 committed by Skia Commit-Bot
parent 07c4e1da31
commit e84bffc746

View File

@ -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;
}