Treat kIncompleteInput as successes in get_images_from_skps
Context: https://bugs.chromium.org/p/skia/issues/detail?id=5226 and https://codereview.chromium.org/1844713003/diff/160001/tools/get_images_from_skps.cpp#newcode83 BUG=skia:5226 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1917413003 Review URL: https://codereview.chromium.org/1917413003
This commit is contained in:
parent
338eaea602
commit
6f47dbaff5
@ -82,7 +82,9 @@ struct Sniffer : public SkPixelSerializer {
|
||||
SkBitmap bitmap;
|
||||
SkImageInfo info = codec->getInfo().makeColorType(kN32_SkColorType);
|
||||
bitmap.allocPixels(info);
|
||||
if (SkCodec::kSuccess != codec->getPixels(info, bitmap.getPixels(), bitmap.rowBytes()))
|
||||
const SkCodec::Result result = codec->getPixels(
|
||||
info, bitmap.getPixels(), bitmap.rowBytes());
|
||||
if (SkCodec::kIncompleteInput != result && SkCodec::kSuccess != result)
|
||||
{
|
||||
SkDebugf("Decoding failed for %s\n", skpName.c_str());
|
||||
gSkpToUnknownCount[skpName]++;
|
||||
|
Loading…
Reference in New Issue
Block a user