Index: src/effects/gradients/SkGradientShader.cpp |
diff --git a/src/effects/gradients/SkGradientShader.cpp b/src/effects/gradients/SkGradientShader.cpp |
index cd448b9cb89f901a70933e1651bb2480d3bf1b20..b1fa560dfcc13df980c92815711e22a1932202be 100644 |
--- a/src/effects/gradients/SkGradientShader.cpp |
+++ b/src/effects/gradients/SkGradientShader.cpp |
@@ -233,12 +233,7 @@ bool SkGradientShaderBase::setContext(const SkBitmap& device, |
const SkMatrix& inverse = this->getTotalInverse(); |
- if (!fDstToIndex.setConcat(fPtsToUnit, inverse)) { |
- // need to keep our set/end context calls balanced. |
- this->INHERITED::endContext(); |
- return false; |
- } |
- |
+ fDstToIndex.setConcat(fPtsToUnit, inverse); |
fDstToIndexProc = fDstToIndex.getMapXYProc(); |
fDstToIndexClass = (uint8_t)SkShader::ComputeMatrixClass(fDstToIndex); |