| Index: src/gpu/SkGrPixelRef.cpp
|
| diff --git a/src/gpu/SkGrPixelRef.cpp b/src/gpu/SkGrPixelRef.cpp
|
| index 8a16437780e3183b77cc0a6c849c2d119a256437..fdf94870ccdec1869c816a5744d57f5de797ed26 100644
|
| --- a/src/gpu/SkGrPixelRef.cpp
|
| +++ b/src/gpu/SkGrPixelRef.cpp
|
| @@ -178,8 +178,7 @@ bool SkGrPixelRef::onReadPixels(SkBitmap* dst, const SkIRect* subset) {
|
| top = 0;
|
| height = fSurface->height();
|
| }
|
| - dst->setConfig(SkBitmap::kARGB_8888_Config, width, height);
|
| - if (!dst->allocPixels()) {
|
| + if (!dst->allocPixels(SkImageInfo::MakeN32Premul(width, height))) {
|
| SkDebugf("SkGrPixelRef::onReadPixels failed to alloc bitmap for result!\n");
|
| return false;
|
| }
|
|
|