Index: gm/texturedomaineffect.cpp |
diff --git a/gm/texturedomaineffect.cpp b/gm/texturedomaineffect.cpp |
index b85d2089d6d0a5b372c665336ddbcf6152490be7..6104d46f8ada598ed27e47fc9dbb061ae5e1eadb 100644 |
--- a/gm/texturedomaineffect.cpp |
+++ b/gm/texturedomaineffect.cpp |
@@ -124,8 +124,7 @@ protected: |
if (!fp) { |
continue; |
} |
- SkMatrix viewMatrix; |
- viewMatrix.setTranslate(x, y); |
+ const SkMatrix viewMatrix = SkMatrix::MakeTrans(x, y); |
GrPipelineBuilder pipelineBuilder; |
pipelineBuilder.setRenderTarget(rt); |
pipelineBuilder.addColorProcessor(fp); |