Index: src/utils/mac/SkCreateCGImageRef.cpp |
diff --git a/src/utils/mac/SkCreateCGImageRef.cpp b/src/utils/mac/SkCreateCGImageRef.cpp |
index 4675d7185eb6a3813c1d17abef1511a4e9d49ee8..51a5ed9c033d5c6002b8eb44131a4cf98994d114 100644 |
--- a/src/utils/mac/SkCreateCGImageRef.cpp |
+++ b/src/utils/mac/SkCreateCGImageRef.cpp |
@@ -12,9 +12,8 @@ |
static CGBitmapInfo ComputeCGAlphaInfo_RGBA(SkAlphaType at) { |
CGBitmapInfo info = kCGBitmapByteOrder32Big; |
switch (at) { |
- case kUnknown_SkAlphaType: |
- break; |
case kOpaque_SkAlphaType: |
+ case kIgnore_SkAlphaType: |
info |= kCGImageAlphaNoneSkipLast; |
break; |
case kPremul_SkAlphaType: |
@@ -30,9 +29,8 @@ |
static CGBitmapInfo ComputeCGAlphaInfo_BGRA(SkAlphaType at) { |
CGBitmapInfo info = kCGBitmapByteOrder32Little; |
switch (at) { |
- case kUnknown_SkAlphaType: |
- break; |
case kOpaque_SkAlphaType: |
+ case kIgnore_SkAlphaType: |
info |= kCGImageAlphaNoneSkipFirst; |
break; |
case kPremul_SkAlphaType: |