Index: gm/texturedomaineffect.cpp |
diff --git a/gm/texturedomaineffect.cpp b/gm/texturedomaineffect.cpp |
index cac193b205e756f075cd63fa980b769c2c06083e..712fea46b575c5f52993f3a1d5cc0e97b7d8df5b 100644 |
--- a/gm/texturedomaineffect.cpp |
+++ b/gm/texturedomaineffect.cpp |
@@ -117,7 +117,8 @@ protected: |
grPaint.setXPFactory(GrPorterDuffXPFactory::Make(SkBlendMode::kSrc)); |
sk_sp<GrFragmentProcessor> fp( |
GrTextureDomainEffect::Make(texture.get(), nullptr, textureMatrices[tm], |
- GrTextureDomain::MakeTexelDomain(texture.get(), |
+ GrTextureDomain::MakeTexelDomain(texture->width(), |
+ texture->height(), |
texelDomains[d]), |
mode, GrTextureParams::kNone_FilterMode)); |