diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-10-16 14:16:11 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-10-16 14:16:11 +0000 |
commit | b022177777c3602c47bb71c07920e63a261c5038 (patch) | |
tree | 9a23dbdc3b2c265bea0a5749bfd10b8602686be9 /gm | |
parent | 1708eea54ddd2c6c5f96e9e132980ec3fd2ee648 (diff) |
Require matrix for custom stage to be set when custom stage is installed.
Review URL: https://codereview.appspot.com/6696044
git-svn-id: http://skia.googlecode.com/svn/trunk@5962 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)); |