diff options
author | Robert Phillips <robertphillips@google.com> | 2017-01-09 14:23:59 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-01-10 16:15:02 +0000 |
commit | e98234f231d66848e149db683c11b6388e10b233 (patch) | |
tree | 48bbfcde8b5519a3903a1be0e6b28b04dee6b819 /gm | |
parent | 8e619a2b4eb31753e6fcb4a9ec494d31ace755da (diff) |
Start making texture coordinates be absolute
The idea here is that we will pass GrTextureProxys in (where we're currently passing GrTextures) and defer the normalization until the texture is actually instantiated (and possibly move it to the GPU entirely)
This CL does (intentionally) change the texturedomaineffect GM but I believe the new behavior is more correct.
Change-Id: I4e0510b3dfb65ff0d0ee5921f9a6f94151e602d3
Reviewed-on: https://skia-review.googlesource.com/6807
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'gm')
-rw-r--r-- | gm/texturedomaineffect.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gm/texturedomaineffect.cpp b/gm/texturedomaineffect.cpp index f2c5fd4652..7313f89a3b 100644 --- a/gm/texturedomaineffect.cpp +++ b/gm/texturedomaineffect.cpp @@ -115,10 +115,10 @@ protected: GrPaint grPaint; grPaint.setXPFactory(GrPorterDuffXPFactory::Get(SkBlendMode::kSrc)); sk_sp<GrFragmentProcessor> fp( - GrTextureDomainEffect::Make(texture.get(), nullptr, textureMatrices[tm], - GrTextureDomain::MakeTexelDomain(texture.get(), - texelDomains[d]), - mode, GrSamplerParams::kNone_FilterMode)); + GrTextureDomainEffect::Make( + texture.get(), nullptr, textureMatrices[tm], + GrTextureDomain::MakeTexelDomainForMode(texelDomains[d], mode), + mode, GrSamplerParams::kNone_FilterMode)); if (!fp) { continue; |