aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkBitmapDevice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkBitmapDevice.cpp')
-rw-r--r--src/core/SkBitmapDevice.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/core/SkBitmapDevice.cpp b/src/core/SkBitmapDevice.cpp
index f49872cf7d..fee004125c 100644
--- a/src/core/SkBitmapDevice.cpp
+++ b/src/core/SkBitmapDevice.cpp
@@ -43,19 +43,18 @@ static bool valid_for_bitmap_device(const SkImageInfo& info,
switch (info.colorType()) {
case kAlpha_8_SkColorType:
+ case kARGB_4444_SkColorType:
+ case kRGBA_8888_SkColorType:
+ case kBGRA_8888_SkColorType:
+ case kRGBA_1010102_SkColorType:
+ case kRGBA_F16_SkColorType:
break;
case kGray_8_SkColorType:
- canonicalAlphaType = kOpaque_SkAlphaType;
- break;
case kRGB_565_SkColorType:
+ case kRGB_888x_SkColorType:
+ case kRGB_101010x_SkColorType:
canonicalAlphaType = kOpaque_SkAlphaType;
break;
- case kARGB_4444_SkColorType:
- break;
- case kN32_SkColorType:
- break;
- case kRGBA_F16_SkColorType:
- break;
default:
return false;
}