aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/mac/SkCreateCGImageRef.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@chromium.org>2015-02-27 06:00:33 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-27 06:00:33 -0800
commit1c8aeeaebce9675197be31bd769e8ffa2531bf86 (patch)
treede11ad8fdcd9d919b54d603709be5e75ddc3b083 /src/utils/mac/SkCreateCGImageRef.cpp
parent71d7f7f002332b9904bf12eb3f1908883f99120e (diff)
replace kIgnore_SkAlphaType with kUnknown_SkAlphaType
BUG=skia: TBR= Review URL: https://codereview.chromium.org/964613002
Diffstat (limited to 'src/utils/mac/SkCreateCGImageRef.cpp')
-rw-r--r--src/utils/mac/SkCreateCGImageRef.cpp6
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: