aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/texturedomaineffect.cpp
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2014-12-29 15:10:07 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-29 15:10:07 -0800
commit8059eb9f6e24ed609393fbda4ad71edea03ac258 (patch)
treec9a8e1881739206f49a5319bf1077a5900b42db1 /gm/texturedomaineffect.cpp
parent4f662e62cd44e302ef689fabdb2c0ae8d9471b02 (diff)
Move ViewMatrix off of drawstate
Diffstat (limited to 'gm/texturedomaineffect.cpp')
-rw-r--r--gm/texturedomaineffect.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/texturedomaineffect.cpp b/gm/texturedomaineffect.cpp
index beb98b6dd3..8a5953262a 100644
--- a/gm/texturedomaineffect.cpp
+++ b/gm/texturedomaineffect.cpp
@@ -130,11 +130,11 @@ protected:
}
SkMatrix viewMatrix;
viewMatrix.setTranslate(x, y);
- GrDrawState drawState(viewMatrix);
+ GrDrawState drawState;
drawState.setRenderTarget(rt);
drawState.addColorProcessor(fp);
- tt.target()->drawSimpleRect(&drawState, GrColor_WHITE, renderRect);
+ tt.target()->drawSimpleRect(&drawState, GrColor_WHITE, viewMatrix, renderRect);
x += renderRect.width() + kTestPad;
}
y += renderRect.height() + kTestPad;