Index: src/core/SkBitmap.cpp |
diff --git a/src/core/SkBitmap.cpp b/src/core/SkBitmap.cpp |
index c66a5b2fd5c2495e05386fe3c6d81568c4d87adc..bdf1daafccc25434f6286df55223c5475f665ddd 100644 |
--- a/src/core/SkBitmap.cpp |
+++ b/src/core/SkBitmap.cpp |
@@ -828,7 +828,7 @@ bool SkBitmap::copyTo(SkBitmap* dst, SkColorType dstColorType, Allocator* alloc) |
SkIRect subset; |
subset.setXYWH(fPixelRefOrigin.fX, fPixelRefOrigin.fY, |
fInfo.width(), fInfo.height()); |
- if (fPixelRef->readPixels(&tmpSrc, &subset)) { |
+ if (fPixelRef->readPixels(&tmpSrc, dstColorType, &subset)) { |
if (fPixelRef->info().alphaType() == kUnpremul_SkAlphaType) { |
// FIXME: The only meaningful implementation of readPixels |
// (GrPixelRef) assumes premultiplied pixels. |