Index: src/core/SkPictureCommon.h |
diff --git a/src/core/SkPictureCommon.h b/src/core/SkPictureCommon.h |
index 827bf117de40dcde0bd61c8aaaddc30521710ce2..3d64888641df2e6e09013f24908af8aef39223c6 100644 |
--- a/src/core/SkPictureCommon.h |
+++ b/src/core/SkPictureCommon.h |
@@ -59,8 +59,7 @@ struct SkBitmapHunter { |
const SkPaint* paint = AsPtr(r.paint); |
if (paint) { |
const SkShader* shader = paint->getShader(); |
- if (shader && |
- shader->asABitmap(nullptr, nullptr, nullptr) == SkShader::kDefault_BitmapType) { |
+ if (shader && shader->isABitmap()) { |
return true; |
} |
} |