diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-12-12 18:45:07 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-12-12 18:45:07 +0000 |
commit | aa814fe4a148b05f9160a5f77cb4e630406ea62d (patch) | |
tree | 7c6cabf3451402200f130cdb5b42d5d9bcccaa49 /gm/texdata.cpp | |
parent | 4d4f281b28c3db0513ea1a68db4577e2518002b3 (diff) |
Access sampler matrices directly, cleanup GrSamplerState::reset()s
Review URL: http://codereview.appspot.com/5488048/
git-svn-id: http://skia.googlecode.com/svn/trunk@2854 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/texdata.cpp')
-rw-r--r-- | gm/texdata.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gm/texdata.cpp b/gm/texdata.cpp index 353c4c0626..c68a16a000 100644 --- a/gm/texdata.cpp +++ b/gm/texdata.cpp @@ -109,8 +109,9 @@ protected: ctx->setMatrix(vm); GrMatrix tm; tm = vm; - tm.postIDiv(2*S, 2*S); - paint.textureSampler(0)->setMatrix(tm); + GrMatrix* sampleMat = paint.textureSampler(0)->matrix(); + *sampleMat = vm; + sampleMat->postIDiv(2*S, 2*S); paint.setTexture(0, texture); ctx->drawRect(paint, GrRect::MakeWH(2*S, 2*S)); |