From 1c8aeeaebce9675197be31bd769e8ffa2531bf86 Mon Sep 17 00:00:00 2001 From: reed Date: Fri, 27 Feb 2015 06:00:33 -0800 Subject: replace kIgnore_SkAlphaType with kUnknown_SkAlphaType BUG=skia: TBR= Review URL: https://codereview.chromium.org/964613002 --- src/utils/mac/SkCreateCGImageRef.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/utils/mac/SkCreateCGImageRef.cpp') 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: -- cgit v1.2.3