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/SkLinearBitmapPipeline_sample.h | |
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/SkLinearBitmapPipeline_sample.h')
-rw-r--r-- | src/core/SkLinearBitmapPipeline_sample.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/core/SkLinearBitmapPipeline_sample.h b/src/core/SkLinearBitmapPipeline_sample.h index 74599786c8..4238931774 100644 --- a/src/core/SkLinearBitmapPipeline_sample.h +++ b/src/core/SkLinearBitmapPipeline_sample.h @@ -132,42 +132,6 @@ public: gammaType == kSRGB_SkGammaType ? Sk4f_fromS32(pixel) : Sk4f_fromL32(pixel)); } }; - -#ifdef SK_SUPPORT_LEGACY_INDEX_8_COLORTYPE -template <SkGammaType gammaType> -class PixelConverter<kIndex_8_SkColorType, gammaType> { -public: - using Element = uint8_t; - PixelConverter(const SkPixmap& srcPixmap) - : fColorTableSize(srcPixmap.ctable()->count()){ - SkColorTable* skColorTable = srcPixmap.ctable(); - SkASSERT(skColorTable != nullptr); - - fColorTable = (Sk4f*)SkAlign16((intptr_t)fColorTableStorage.get()); - for (int i = 0; i < fColorTableSize; i++) { - fColorTable[i] = pmcolor_to_rgba<gammaType>((*skColorTable)[i]); - } - } - - PixelConverter(const PixelConverter& strategy) - : fColorTableSize{strategy.fColorTableSize}{ - fColorTable = (Sk4f*)SkAlign16((intptr_t)fColorTableStorage.get()); - for (int i = 0; i < fColorTableSize; i++) { - fColorTable[i] = strategy.fColorTable[i]; - } - } - - Sk4f toSk4f(Element index) const { - return fColorTable[index]; - } - -private: - static const size_t kColorTableSize = sizeof(Sk4f[256]) + 12; - const int fColorTableSize; - SkAutoMalloc fColorTableStorage{kColorTableSize}; - Sk4f* fColorTable; -}; -#endif template <SkGammaType gammaType> class PixelConverter<kGray_8_SkColorType, gammaType> { |