Index: src/effects/gradients/SkGradientShader.cpp |
diff --git a/src/effects/gradients/SkGradientShader.cpp b/src/effects/gradients/SkGradientShader.cpp |
index a84c6fda253a955e057e99fb96a866a2c9757d79..d7b51440b346ee6d76142a34c041b746c881c402 100644 |
--- a/src/effects/gradients/SkGradientShader.cpp |
+++ b/src/effects/gradients/SkGradientShader.cpp |
@@ -209,11 +209,6 @@ static uint32_t unpack_flags(uint32_t packed) { |
} |
SkGradientShaderBase::SkGradientShaderBase(SkReadBuffer& buffer) : INHERITED(buffer) { |
- if (buffer.isVersionLT(SkReadBuffer::kNoUnitMappers_Version)) { |
- // skip the old SkUnitMapper slot |
- buffer.skipFlattenable(); |
- } |
- |
int colorCount = fColorCount = buffer.getArrayCount(); |
if (colorCount > kColorStorageCount) { |
size_t allocSize = (sizeof(SkColor) + sizeof(SkScalar) + sizeof(Rec)) * colorCount; |
@@ -318,10 +313,6 @@ void SkGradientShaderBase::FlipGradientColors(SkColor* colorDst, Rec* recDst, |
memcpy(colorDst, colorsTemp.get(), count * sizeof(SkColor)); |
} |
-void SkGradientShaderBase::flipGradientColors() { |
- FlipGradientColors(fOrigColors, fRecs, fOrigColors, fRecs, fColorCount); |
-} |
- |
bool SkGradientShaderBase::isOpaque() const { |
return fColorsAreOpaque; |
} |