aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec/SkWbmpCodec.cpp
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2016-04-22 16:27:24 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-22 16:27:24 -0700
commit34e0ec40b10320765d4a4432f56e090556f9c75e (patch)
treef7b05f9dce7e83b666fe0309519daeab4b8f3f1f /src/codec/SkWbmpCodec.cpp
parenta45a668fa57eb968e24f379eceb2e56324e2cca2 (diff)
Support the non-native (RGBA/BGRA) swizzle
Diffstat (limited to 'src/codec/SkWbmpCodec.cpp')
-rw-r--r--src/codec/SkWbmpCodec.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/codec/SkWbmpCodec.cpp b/src/codec/SkWbmpCodec.cpp
index 1e165b4e1d..527565f6ab 100644
--- a/src/codec/SkWbmpCodec.cpp
+++ b/src/codec/SkWbmpCodec.cpp
@@ -32,7 +32,8 @@ static inline void setup_color_table(SkColorType colorType,
static inline bool valid_color_type(SkColorType colorType, SkAlphaType alphaType) {
switch (colorType) {
- case kN32_SkColorType:
+ case kRGBA_8888_SkColorType:
+ case kBGRA_8888_SkColorType:
case kIndex_8_SkColorType:
return true;
case kGray_8_SkColorType: