Index: gm/perlinnoise.cpp |
diff --git a/gm/perlinnoise.cpp b/gm/perlinnoise.cpp |
index 1351ed718432aeada5945cf3e09cb465ab63f341..8ffb7af80b903d819b309679ae290a4e842f7227 100644 |
--- a/gm/perlinnoise.cpp |
+++ b/gm/perlinnoise.cpp |
@@ -145,7 +145,7 @@ protected: |
SkMatrix lm; |
lm.setScale(2, 2); |
- paint.getShader()->setLocalMatrix(lm); |
+ paint.setShader(SkShader::CreateLocalMatrixShader(paint.getShader(), lm))->unref(); |
r.fRight += r.width(); |
r.fBottom += r.height(); |