diff options
author | Mike Reed <reed@google.com> | 2017-07-17 10:13:58 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-17 20:37:28 +0000 |
commit | 262b319dcdbf6329d5ca3212b22323ebec7a7b49 (patch) | |
tree | b10f16da65b12d577c37981bee52be6316e05024 /src/core/SkConvertPixels.cpp | |
parent | 4d7a9bf0c0ec32394fb5923e01f816ca5ff29cd4 (diff) |
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 <scroggo@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'src/core/SkConvertPixels.cpp')
-rw-r--r-- | src/core/SkConvertPixels.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/core/SkConvertPixels.cpp b/src/core/SkConvertPixels.cpp index 2f4c889d1b..f7c6f247bb 100644 --- a/src/core/SkConvertPixels.cpp +++ b/src/core/SkConvertPixels.cpp @@ -243,21 +243,6 @@ static void convert_to_alpha8(uint8_t* dst, size_t dstRB, const SkImageInfo& src } break; } -#ifdef SK_SUPPORT_LEGACY_INDEX_8_COLORTYPE - case kIndex_8_SkColorType: { - SkASSERT(ctable); - const uint32_t* table = ctable->readColors(); - auto src8 = (const uint8_t*)src; - for (int y = 0; y < srcInfo.height(); y++) { - for (int x = 0; x < srcInfo.width(); x++) { - dst[x] = table[src8[x]] >> 24; - } - dst = SkTAddOffset<uint8_t>(dst, dstRB); - src8 = SkTAddOffset<const uint8_t>(src8, srcRB); - } - break; - } -#endif case kRGBA_F16_SkColorType: { auto src64 = (const uint64_t*) src; for (int y = 0; y < srcInfo.height(); y++) { @@ -430,16 +415,6 @@ void SkConvertPixels(const SkImageInfo& dstInfo, void* dstPixels, size_t dstRB, return; } -#ifdef SK_SUPPORT_LEGACY_INDEX_8_COLORTYPE - // Fast Path 4: Index 8 sources. - if (kIndex_8_SkColorType == srcInfo.colorType()) { - SkASSERT(ctable); - convert_from_index8(dstInfo, dstPixels, dstRB, srcInfo, (const uint8_t*) srcPixels, srcRB, - ctable, behavior); - return; - } -#endif - // Fast Path 5: Alpha 8 dsts. if (kAlpha_8_SkColorType == dstInfo.colorType()) { convert_to_alpha8((uint8_t*) dstPixels, dstRB, srcInfo, srcPixels, srcRB, ctable); |