From 6b96d368f0dbd09bdec2e209a08fa6306c4a3603 Mon Sep 17 00:00:00 2001 From: "robertphillips@google.com" Date: Mon, 15 Apr 2013 21:51:52 +0000 Subject: [PATCH] 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 --- src/gpu/effects/GrTextureDomainEffect.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gpu/effects/GrTextureDomainEffect.cpp b/src/gpu/effects/GrTextureDomainEffect.cpp index f3838ae..dcfda28 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(), -- 2.7.4