Index: src/core/SkBitmap.cpp |
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp |
index 5b83b44a66375ff391090c4689c8f94400d6387c..6c9e81f120f88001807295654d9b08c24e605bbe 100644 |
--- a/src/core/SkBitmap.cpp |
+++ b/src/core/SkBitmap.cpp |
@@ -503,11 +503,6 @@ bool SkBitmap::installPixels(const SkImageInfo& info, void* pixels, size_t rb, |
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 @@ bool SkBitmap::installPixels(const SkImageInfo& info, void* pixels, size_t rb, |
// since we're already allocated, we lockPixels right away |
this->lockPixels(); |
- SkASSERT(this->getPixels()); |
SkDEBUGCODE(this->validate();) |
return true; |
} |