aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec/SkSampler.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/SkSampler.cpp
parenta45a668fa57eb968e24f379eceb2e56324e2cca2 (diff)
Support the non-native (RGBA/BGRA) swizzle
Diffstat (limited to 'src/codec/SkSampler.cpp')
-rw-r--r--src/codec/SkSampler.cpp3
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) {