Index: src/gpu/SkGr.cpp |
diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp |
index 754a7be9aa45b051430fedebef404266f67d3313..db46b8690126c557d691767e55a5749725dc08ed 100644 |
--- a/src/gpu/SkGr.cpp |
+++ b/src/gpu/SkGr.cpp |
@@ -43,7 +43,7 @@ |
dstPI.fRowBytes = count * sizeof(SkPMColor); |
SkSrcPixelInfo srcPI; |
- srcPI.fColorType = kN32_SkColorType; |
+ srcPI.fColorType = kPMColor_SkColorType; |
srcPI.fAlphaType = kPremul_SkAlphaType; |
srcPI.fPixels = ctable->lockColors(); |
srcPI.fRowBytes = count * sizeof(SkPMColor); |
@@ -166,7 +166,7 @@ |
return result; |
} |
} else { |
- origBitmap.copyTo(&tmpBitmap, kN32_SkColorType); |
+ origBitmap.copyTo(&tmpBitmap, kPMColor_SkColorType); |
// now bitmap points to our temp, which has been promoted to 32bits |
bitmap = &tmpBitmap; |
desc.fConfig = SkBitmapConfig2GrPixelConfig(bitmap->config()); |