diff options
Diffstat (limited to 'gm/texdata.cpp')
-rw-r--r-- | gm/texdata.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gm/texdata.cpp b/gm/texdata.cpp index 56dfd24ed0..b8c2431c9b 100644 --- a/gm/texdata.cpp +++ b/gm/texdata.cpp @@ -109,13 +109,12 @@ protected: } else { vm.reset(); } - ctx->setMatrix(vm); SkMatrix tm; tm = vm; tm.postIDiv(2*S, 2*S); paint.addColorTextureProcessor(texture, tm); - ctx->drawRect(paint, SkRect::MakeWH(2*S, 2*S)); + ctx->drawRect(paint, vm, SkRect::MakeWH(2*S, 2*S)); // now update the lower right of the texture in first pass // or upper right in second pass @@ -129,7 +128,7 @@ protected: texture->writePixels(S, (i ? 0 : S), S, S, texture->config(), gTextureData.get(), 4 * stride); - ctx->drawRect(paint, SkRect::MakeWH(2*S, 2*S)); + ctx->drawRect(paint, vm, SkRect::MakeWH(2*S, 2*S)); } } } |