Index: src/core/SkBitmap.cpp |
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp |
index 563fc2875c41221e1cacec39d108febd1f084377..36e31f56e5b82c0af671164c9bd614d09285f6d6 100644 |
--- a/src/core/SkBitmap.cpp |
+++ b/src/core/SkBitmap.cpp |
@@ -344,6 +344,9 @@ bool SkBitmap::installPixels(const SkImageInfo& requestedInfo, void* pixels, siz |
this->reset(); |
return false; |
} |
+ if (NULL == pixels) { |
+ return true; // we behaved as if they called setInfo() |
+ } |
// setInfo may have corrected info (e.g. 565 is always opaque). |
const SkImageInfo& correctedInfo = this->info(); |