Index: src/core/SkBitmapDevice.cpp |
diff --git a/src/core/SkBitmapDevice.cpp b/src/core/SkBitmapDevice.cpp |
index 07ae3dfd7e05c65061da53da81bd4e98915bf985..7ed8058c6a371b0f7e69221a8d786fe3f6927c27 100644 |
--- a/src/core/SkBitmapDevice.cpp |
+++ b/src/core/SkBitmapDevice.cpp |
@@ -189,9 +189,9 @@ bool SkBitmapDevice::onReadPixels(const SkBitmap& bitmap, |
if (!src.extractSubset(&subset, srcRect)) { |
return false; |
} |
- if (SkBitmap::kARGB_8888_Config != subset.config()) { |
+ if (kPMColor_SkColorType != subset.colorType()) { |
// It'd be preferable to do this directly to bitmap. |
- subset.copyTo(&subset, SkBitmap::kARGB_8888_Config); |
+ subset.copyTo(&subset, kPMColor_SkColorType); |
} |
SkAutoLockPixels alp(bitmap); |
uint32_t* bmpPixels = reinterpret_cast<uint32_t*>(bitmap.getPixels()); |