Index: samplecode/PerlinPatch.cpp |
diff --git a/samplecode/PerlinPatch.cpp b/samplecode/PerlinPatch.cpp |
index c5a0db8b6bf17b9b170231a39110798a785ad059..8f7e28d4d0eba02546c8e40cd6030f722210f967 100644 |
--- a/samplecode/PerlinPatch.cpp |
+++ b/samplecode/PerlinPatch.cpp |
@@ -138,8 +138,8 @@ protected: |
{ fTexX + texWidth, fTexY + texHeight}, |
{ fTexX - texWidth, fTexY + texHeight}} |
; |
- |
- SkAutoTUnref<SkXfermode> xfer(SkXfermode::Create(SkXfermode::kSrc_Mode)); |
+ |
+ sk_sp<SkXfermode> xfer(SkXfermode::Make(SkXfermode::kSrc_Mode)); |
SkScalar scaleFreq = 2.0; |
fShader1 = SkPerlinNoiseShader2::MakeImprovedNoise(fXFreq/scaleFreq, fYFreq/scaleFreq, 4, |