Index: src/image/SkImageShader.cpp |
diff --git a/src/image/SkImageShader.cpp b/src/image/SkImageShader.cpp |
index 8407f10086999227cd22d1e953074745de739e4a..a1882ab6654125161235cb81f043926b664b9513 100644 |
--- a/src/image/SkImageShader.cpp |
+++ b/src/image/SkImageShader.cpp |
@@ -46,7 +46,7 @@ bool SkImageShader::isOpaque() const { |
} |
size_t SkImageShader::onContextSize(const ContextRec& rec) const { |
- return SkBitmapProcLegacyShader::ContextSize(rec, SkBitmapProvider(fImage.get()).info()); |
+ return SkBitmapProcLegacyShader::ContextSize(rec, as_IB(fImage)->onImageInfo()); |
} |
SkShader::Context* SkImageShader::onCreateContext(const ContextRec& rec, void* storage) const { |