Index: src/utils/mac/SkCreateCGImageRef.cpp |
diff --git a/src/utils/mac/SkCreateCGImageRef.cpp b/src/utils/mac/SkCreateCGImageRef.cpp |
index 7687c3c7e4a05b4688977eddf10719577ab714a9..00166e9ed7488b4976d8c426a90061a7d3b40fd3 100644 |
--- a/src/utils/mac/SkCreateCGImageRef.cpp |
+++ b/src/utils/mac/SkCreateCGImageRef.cpp |
@@ -34,7 +34,7 @@ static bool getBitmapInfo(const SkBitmap& bm, |
*upscaleTo32 = true; |
} |
// fall through |
- case kPMColor_SkColorType: |
+ case kN32_SkColorType: |
*bitsPerComponent = 8; |
#if SK_PMCOLOR_BYTE_ORDER(R,G,B,A) |
*info = kCGBitmapByteOrder32Big; |
@@ -94,7 +94,7 @@ static SkBitmap* prepareForImageRef(const SkBitmap& bm, |
copy = new SkBitmap; |
// here we make a ceep copy of the pixels, since CG won't take our |
// 565 directly |
- bm.copyTo(copy, kPMColor_SkColorType); |
+ bm.copyTo(copy, kN32_SkColorType); |
} else { |
copy = new SkBitmap(bm); |
} |