diff options
author | joshualitt <joshualitt@chromium.org> | 2014-12-29 15:10:07 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-29 15:10:07 -0800 |
commit | 8059eb9f6e24ed609393fbda4ad71edea03ac258 (patch) | |
tree | c9a8e1881739206f49a5319bf1077a5900b42db1 /gm/texturedomaineffect.cpp | |
parent | 4f662e62cd44e302ef689fabdb2c0ae8d9471b02 (diff) |
Move ViewMatrix off of drawstate
BUG=skia:
Review URL: https://codereview.chromium.org/815553003
Diffstat (limited to 'gm/texturedomaineffect.cpp')
-rw-r--r-- | gm/texturedomaineffect.cpp | 4 |
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; |