Index: src/lazy/SkDiscardablePixelRef.cpp |
diff --git a/src/lazy/SkDiscardablePixelRef.cpp b/src/lazy/SkDiscardablePixelRef.cpp |
index c4e3654d1a73da586b2a9f37113276ef97005876..84152ed188a4d32ec2c58f74289da55396b46bda 100644 |
--- a/src/lazy/SkDiscardablePixelRef.cpp |
+++ b/src/lazy/SkDiscardablePixelRef.cpp |
@@ -98,6 +98,7 @@ bool SkInstallDiscardablePixelRef(SkImageGenerator* generator, SkBitmap* dst, |
SkAutoTDelete<SkImageGenerator> autoGenerator(generator); |
if ((NULL == autoGenerator.get()) |
|| (!autoGenerator->getInfo(&info)) |
+ || info.isEmpty() |
|| (!dst->setInfo(info))) { |
return false; |
} |