aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-15 21:51:52 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-15 21:51:52 +0000
commit6b96d368f0dbd09bdec2e209a08fa6306c4a3603 (patch)
tree08eab3a5b09d04884a4c2a93568dd2ba4bbd010c /src/gpu
parentad65a3e5fb1f94699f183551b828efbcc6a133ce (diff)
Enable caching of texture domain extents
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/effects/GrTextureDomainEffect.cpp1
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(),