diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-15 21:51:52 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-15 21:51:52 +0000 |
commit | 6b96d368f0dbd09bdec2e209a08fa6306c4a3603 (patch) | |
tree | 08eab3a5b09d04884a4c2a93568dd2ba4bbd010c | |
parent | ad65a3e5fb1f94699f183551b828efbcc6a133ce (diff) |
Enable caching of texture domain extents
https://codereview.chromium.org/14261009/
git-svn-id: http://skia.googlecode.com/svn/trunk@8690 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | src/gpu/effects/GrTextureDomainEffect.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpu/effects/GrTextureDomainEffect.cpp b/src/gpu/effects/GrTextureDomainEffect.cpp index f3838ae809..dcfda287ff 100644 --- a/src/gpu/effects/GrTextureDomainEffect.cpp +++ b/src/gpu/effects/GrTextureDomainEffect.cpp @@ -126,6 +126,7 @@ void GrGLTextureDomainEffect::setData(const GrGLUniformManager& uman, } if (0 != memcmp(values, fPrevDomain, 4 * sizeof(GrGLfloat))) { uman.set4fv(fNameUni, 0, 1, values); + memcpy(fPrevDomain, values, 4 * sizeof(GrGLfloat)); } fEffectMatrix.setData(uman, texDom.getMatrix(), |