Index: tools/SkBitmapRegionDecoderInterface.cpp |
diff --git a/tools/SkBitmapRegionDecoderInterface.cpp b/tools/SkBitmapRegionDecoderInterface.cpp |
index 59415383d3669876c257f68e36d8c9e55398f0fe..d009b27f3a3dd5cbc160a1a23906557878248de0 100644 |
--- a/tools/SkBitmapRegionDecoderInterface.cpp |
+++ b/tools/SkBitmapRegionDecoderInterface.cpp |
@@ -44,6 +44,13 @@ SkBitmapRegionDecoderInterface* SkBitmapRegionDecoderInterface::CreateBitmapRegi |
SkCodecPrintf("Error: Failed to create decoder.\n"); |
return nullptr; |
} |
+ |
+ if (SkEncodedFormat::kWEBP_SkEncodedFormat == codec->getEncodedFormat()) { |
+ // FIXME: Support webp using a special case. Webp does not support |
+ // scanline decoding. |
+ return nullptr; |
+ } |
+ |
switch (codec->getScanlineOrder()) { |
case SkCodec::kTopDown_SkScanlineOrder: |
case SkCodec::kNone_SkScanlineOrder: |