Index: src/pdf/SkPDFShader.cpp |
diff --git a/src/pdf/SkPDFShader.cpp b/src/pdf/SkPDFShader.cpp |
index 31af569fe947ef39c90bbaff79d3c5a5a9e58b4e..885b7e6049bd2a991b80187fb4573153eb6d297a 100644 |
--- a/src/pdf/SkPDFShader.cpp |
+++ b/src/pdf/SkPDFShader.cpp |
@@ -1289,10 +1289,7 @@ SkPDFShader::State::State(SkShader* shader, const SkMatrix& canvasTransform, |
fType = shader->asAGradient(&fInfo); |
if (fType == SkShader::kNone_GradientType) { |
- SkMatrix matrix; |
- if (shader->isABitmap(&fImage, &matrix, fImageTileModes)) { |
- SkASSERT(matrix.isIdentity()); |
- } else { |
+ if (!shader->isABitmap(&fImage, nullptr, fImageTileModes)) { |
// Generic fallback for unsupported shaders: |
// * allocate a bbox-sized bitmap |
// * shade the whole area |