diff options
Diffstat (limited to 'src/core/SkPixmap.cpp')
-rw-r--r-- | src/core/SkPixmap.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/core/SkPixmap.cpp b/src/core/SkPixmap.cpp index cbb40a8fdc..d62fb6200b 100644 --- a/src/core/SkPixmap.cpp +++ b/src/core/SkPixmap.cpp @@ -272,13 +272,6 @@ SkColor SkPixmap::getColor(int x, int y) const { case kAlpha_8_SkColorType: { return SkColorSetA(0, *this->addr8(x, y)); } -#ifdef SK_SUPPORT_LEGACY_INDEX_8_COLORTYPE - case kIndex_8_SkColorType: { - SkASSERT(this->ctable()); - SkPMColor c = (*this->ctable())[*this->addr8(x, y)]; - return toColor(c); - } -#endif case kRGB_565_SkColorType: { return SkPixel16ToColor(*this->addr16(x, y)); } @@ -334,20 +327,6 @@ bool SkPixmap::computeIsOpaque() const { } return true; } break; -#ifdef SK_SUPPORT_LEGACY_INDEX_8_COLORTYPE - case kIndex_8_SkColorType: { - const SkColorTable* ctable = this->ctable(); - if (nullptr == ctable) { - return false; - } - const SkPMColor* table = ctable->readColors(); - SkPMColor c = (SkPMColor)~0; - for (int i = ctable->count() - 1; i >= 0; --i) { - c &= table[i]; - } - return 0xFF == SkGetPackedA32(c); - } break; -#endif case kRGB_565_SkColorType: case kGray_8_SkColorType: return true; |