Index: gm/texdata.cpp |
diff --git a/gm/texdata.cpp b/gm/texdata.cpp |
index 56dfd24ed00151b422294af380bc6c1bf31fd47b..b8c2431c9b7444d5361d9446100d88155e2fd143 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)); |
} |
} |
} |