diff options
author | msarett <msarett@google.com> | 2016-04-22 16:27:24 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-22 16:27:24 -0700 |
commit | 34e0ec40b10320765d4a4432f56e090556f9c75e (patch) | |
tree | f7b05f9dce7e83b666fe0309519daeab4b8f3f1f /src/codec/SkWbmpCodec.cpp | |
parent | a45a668fa57eb968e24f379eceb2e56324e2cca2 (diff) |
Support the non-native (RGBA/BGRA) swizzle
BUG=skia:4456
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1907593004
Review URL: https://codereview.chromium.org/1907593004
Diffstat (limited to 'src/codec/SkWbmpCodec.cpp')
-rw-r--r-- | src/codec/SkWbmpCodec.cpp | 3 |
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: |