aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPixmap.h
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 /include/core/SkPixmap.h
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 'include/core/SkPixmap.h')
-rw-r--r--include/core/SkPixmap.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/core/SkPixmap.h b/include/core/SkPixmap.h
index 1e79bba225..be821ec470 100644
--- a/include/core/SkPixmap.h
+++ b/include/core/SkPixmap.h
@@ -30,9 +30,12 @@ public:
SkColorTable* ctable = NULL)
: fPixels(addr), fCTable(ctable), fRowBytes(rowBytes), fInfo(info)
{
+#ifdef SK_SUPPORT_LEGACY_INDEX_8_COLORTYPE
if (kIndex_8_SkColorType == info.colorType()) {
SkASSERT(ctable);
- } else {
+ } else
+#endif
+ {
SkASSERT(NULL == ctable);
}
}