diff options
Diffstat (limited to 'src/utils/mac/SkCreateCGImageRef.cpp')
-rw-r--r-- | src/utils/mac/SkCreateCGImageRef.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/utils/mac/SkCreateCGImageRef.cpp b/src/utils/mac/SkCreateCGImageRef.cpp index 51a5ed9c03..4675d7185e 100644 --- a/src/utils/mac/SkCreateCGImageRef.cpp +++ b/src/utils/mac/SkCreateCGImageRef.cpp @@ -12,8 +12,9 @@ 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: @@ -29,8 +30,9 @@ static CGBitmapInfo ComputeCGAlphaInfo_RGBA(SkAlphaType at) { 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: |