Index: src/core/SkSpecialImage.cpp |
diff --git a/src/core/SkSpecialImage.cpp b/src/core/SkSpecialImage.cpp |
index dfbde75dc7eea30813401f1e45ecde11893d48a8..0a25034af6cf02e7fa1b2ffae7d88df16e809e73 100644 |
--- a/src/core/SkSpecialImage.cpp |
+++ b/src/core/SkSpecialImage.cpp |
@@ -67,6 +67,10 @@ sk_sp<SkSpecialImage> SkSpecialImage::makeTextureImage(SkImageFilter::Proxy* pro |
return nullptr; |
} |
+ if (bmp.empty()) { |
+ return SkSpecialImage::MakeFromRaster(proxy, SkIRect::MakeEmpty(), bmp); |
+ } |
+ |
SkAutoTUnref<GrTexture> resultTex( |
GrRefCachedBitmapTexture(context, bmp, GrTextureParams::ClampNoFilter())); |
if (!resultTex) { |