Now able to set the localMatrix when creating a SkShader from a SkImage
BUG=skia:2771
R=junov@chromium.org, reed@chromium.org, bsalomon@chromium.org, bsalomon@google.com
Author: piotaixr@chromium.org
Review URL: https://codereview.chromium.org/409653003
diff --git a/src/image/SkImage.cpp b/src/image/SkImage.cpp
index 9e136f5..c812f58 100644
--- a/src/image/SkImage.cpp
+++ b/src/image/SkImage.cpp
@@ -78,8 +78,10 @@
return as_IB(this)->onGetTexture();
}
-SkShader* SkImage::newShader(SkShader::TileMode tileX, SkShader::TileMode tileY) const {
- return as_IB(this)->onNewShader(tileX, tileY);
+SkShader* SkImage::newShader(SkShader::TileMode tileX,
+ SkShader::TileMode tileY,
+ const SkMatrix* localMatrix) const {
+ return as_IB(this)->onNewShader(tileX, tileY, localMatrix);
}
SkData* SkImage::encode(SkImageEncoder::Type type, int quality) const {