revert to previous behavior in installPixels, allowing for NULL address
BUG=skia:
Review URL: https://codereview.chromium.org/172603002
git-svn-id: http://skia.googlecode.com/svn/trunk@13501 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp
index 5b83b44..6c9e81f 100644
--- a/src/core/SkBitmap.cpp
+++ b/src/core/SkBitmap.cpp
@@ -503,11 +503,6 @@
return false;
}
- // No pixels means just behave like setConfig()
- if (NULL == pixels) {
- return true;
- }
-
SkPixelRef* pr = SkMallocPixelRef::NewWithProc(info, rb, NULL, pixels,
releaseProc, context);
if (!pr) {
@@ -519,7 +514,6 @@
// since we're already allocated, we lockPixels right away
this->lockPixels();
- SkASSERT(this->getPixels());
SkDEBUGCODE(this->validate();)
return true;
}