Index: src/core/SkOrderedReadBuffer.cpp |
diff --git a/src/core/SkOrderedReadBuffer.cpp b/src/core/SkOrderedReadBuffer.cpp |
index 69c60cbe097ed1040c41dd7fa97a6f8ed11afa34..1ebaac4da860993fca7061add986496fb3161f85 100644 |
--- a/src/core/SkOrderedReadBuffer.cpp |
+++ b/src/core/SkOrderedReadBuffer.cpp |
@@ -252,8 +252,7 @@ void SkOrderedReadBuffer::readBitmap(SkBitmap* bitmap) { |
} |
} |
// Could not read the SkBitmap. Use a placeholder bitmap. |
- bitmap->setConfig(SkBitmap::kARGB_8888_Config, width, height); |
- bitmap->allocPixels(); |
+ bitmap->allocPixels(SkImageInfo::MakeN32Premul(width, height)); |
bitmap->eraseColor(SK_ColorRED); |
} |