diff options
author | 2012-10-16 15:19:45 +0000 | |
---|---|---|
committer | 2012-10-16 15:19:45 +0000 | |
commit | dfdb7e5240276493077b7c6e1f3cc8b8a0e195ba (patch) | |
tree | 8052c43cb50ba6f2c5c2f8fb9a3c518e17b43d2c /gm | |
parent | f6eac8af585e44d56e6b18d269e6c34f9917ea88 (diff) |
Reland r5963 with two fixes:
Missing ref in GrSweepGradient::TestCreate.
Must reset() the sampler in setup_drawstate_aaclip() to avoid hitting a (dubious) assert.
git-svn-id: http://skia.googlecode.com/svn/trunk@5964 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm')
-rw-r--r-- | gm/texdata.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gm/texdata.cpp b/gm/texdata.cpp index 724b4ec826..09721acc13 100644 --- a/gm/texdata.cpp +++ b/gm/texdata.cpp @@ -112,12 +112,9 @@ protected: ctx->setMatrix(vm); GrMatrix tm; tm = vm; - GrMatrix* sampleMat = paint.colorSampler(0)->matrix(); - *sampleMat = vm; - sampleMat->postIDiv(2*S, 2*S); - paint.colorSampler(0)->setCustomStage( - SkNEW_ARGS(GrSingleTextureEffect, (texture)))->unref(); - + tm.postIDiv(2*S, 2*S); + paint.colorSampler(0)->setCustomStage(SkNEW_ARGS(GrSingleTextureEffect, + (texture)), tm)->unref(); ctx->drawRect(paint, GrRect::MakeWH(2*S, 2*S)); |