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/SkSampler.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/SkSampler.cpp')
-rw-r--r-- | src/codec/SkSampler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/codec/SkSampler.cpp b/src/codec/SkSampler.cpp index c69d003c0f..ccfe400ec9 100644 --- a/src/codec/SkSampler.cpp +++ b/src/codec/SkSampler.cpp @@ -21,7 +21,8 @@ void SkSampler::Fill(const SkImageInfo& info, void* dst, size_t rowBytes, // Use the proper memset routine to fill the remaining bytes switch (info.colorType()) { - case kN32_SkColorType: { + case kRGBA_8888_SkColorType: + case kBGRA_8888_SkColorType: { // If memory is zero initialized, we may not need to fill uint32_t color = colorOrIndex; if (SkCodec::kYes_ZeroInitialized == zeroInit && 0 == color) { |