aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec/SkSampler.cpp
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-07-12 22:10:29 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-13 10:44:42 +0000
commit580501382fb1418fff7acc63680f3a9a6bf3938c (patch)
tree16a93a72852e282b1f520dcc947985e2190a45bf /src/codec/SkSampler.cpp
parent4d41b8f2fdae21a6ed16fca6242d53e7c08349d0 (diff)
Guard to remove kIndex_8_SkColorType
Bug: skia:6828 Change-Id: Ia942a36abb18213184f8d436555a658270d97d47 Reviewed-on: https://skia-review.googlesource.com/22721 Commit-Queue: Mike Reed <reed@google.com> Reviewed-by: Florin Malita <fmalita@chromium.org> Reviewed-by: Herb Derby <herb@google.com>
Diffstat (limited to 'src/codec/SkSampler.cpp')
-rw-r--r--src/codec/SkSampler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codec/SkSampler.cpp b/src/codec/SkSampler.cpp
index 244aa3b873..0dbe320827 100644
--- a/src/codec/SkSampler.cpp
+++ b/src/codec/SkSampler.cpp
@@ -57,9 +57,11 @@ void SkSampler::Fill(const SkImageInfo& info, void* dst, size_t rowBytes,
}
break;
}
+#ifdef SK_SUPPORT_LEGACY_INDEX_8_COLORTYPE
case kIndex_8_SkColorType:
// On an index destination color type, always assume the input is an index.
// Fall through
+#endif
case kGray_8_SkColorType:
// If the destination is kGray, the caller passes in an 8-bit color.
// We will not assert that the high bits of colorOrIndex must be zeroed.