From 262b319dcdbf6329d5ca3212b22323ebec7a7b49 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Mon, 17 Jul 2017 10:13:58 -0400 Subject: Index8 is dead, remove guarded code Needs google3 to be updated before this can land. Bug: skia:6828 Change-Id: I2c16be13c6937ffa48768cc24f9f980171c824d6 Reviewed-on: https://skia-review.googlesource.com/23940 Reviewed-by: Leon Scroggins Commit-Queue: Mike Reed --- src/shaders/SkImageShader.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/shaders') diff --git a/src/shaders/SkImageShader.cpp b/src/shaders/SkImageShader.cpp index 1fc9145b6a..02cc2fdf49 100644 --- a/src/shaders/SkImageShader.cpp +++ b/src/shaders/SkImageShader.cpp @@ -326,9 +326,6 @@ bool SkImageShader::onAppendStages(SkRasterPipeline* p, SkColorSpace* dstCS, SkA } switch (info.colorType()) { case kAlpha_8_SkColorType: p->append(SkRasterPipeline::gather_a8, gather); break; -#ifdef SK_SUPPORT_LEGACY_INDEX_8_COLORTYPE - case kIndex_8_SkColorType: p->append(SkRasterPipeline::gather_i8, gather); break; -#endif case kGray_8_SkColorType: p->append(SkRasterPipeline::gather_g8, gather); break; case kRGB_565_SkColorType: p->append(SkRasterPipeline::gather_565, gather); break; case kARGB_4444_SkColorType: p->append(SkRasterPipeline::gather_4444, gather); break; @@ -392,11 +389,6 @@ bool SkImageShader::onAppendStages(SkRasterPipeline* p, SkColorSpace* dstCS, SkA p->append(SkRasterPipeline::move_dst_src); } -#ifdef SK_SUPPORT_LEGACY_INDEX_8_COLORTYPE - if (info.colorType() == kIndex_8_SkColorType && kN32_SkColorType == kBGRA_8888_SkColorType) { - p->append(SkRasterPipeline::swap_rb); - } -#endif if (info.colorType() == kAlpha_8_SkColorType) { p->append(SkRasterPipeline::set_rgb, &misc->paint_color); } -- cgit v1.2.3