Index: src/image/SkImage.cpp |
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp |
index b639821a95375e019a30b3f599fd3487daa0d85f..ee76a7ea39ed825e357227fe812cb12c5f3b4e67 100644 |
--- a/src/image/SkImage.cpp |
+++ b/src/image/SkImage.cpp |
@@ -11,6 +11,7 @@ |
#include "SkData.h" |
#include "SkImageGenerator.h" |
#include "SkImagePriv.h" |
+#include "SkImageShader.h" |
#include "SkImage_Base.h" |
#include "SkNextID.h" |
#include "SkPixelRef.h" |
@@ -69,7 +70,7 @@ void SkImage::preroll(GrContext* ctx) const { |
SkShader* SkImage::newShader(SkShader::TileMode tileX, |
SkShader::TileMode tileY, |
const SkMatrix* localMatrix) const { |
- return as_IB(this)->onNewShader(tileX, tileY, localMatrix); |
+ return SkImageShader::Create(this, tileX, tileY, localMatrix); |
} |
SkData* SkImage::encode(SkImageEncoder::Type type, int quality) const { |