Index: samplecode/SampleUnpremul.cpp |
diff --git a/samplecode/SampleUnpremul.cpp b/samplecode/SampleUnpremul.cpp |
index fb9735c017cd771a63762725ab299ad91bf21908..919fb64e7523ee181f72be5f691913c94043a81b 100644 |
--- a/samplecode/SampleUnpremul.cpp |
+++ b/samplecode/SampleUnpremul.cpp |
@@ -80,10 +80,9 @@ protected: |
SkPaint paint; |
paint.setAntiAlias(true); |
paint.setTextSize(SkIntToScalar(24)); |
- SkAutoTUnref<SkDrawLooper> looper( |
- SkBlurDrawLooper::Create(SK_ColorBLUE, |
- SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(2)), |
- 0, 0)); |
+ auto looper( |
+ SkBlurDrawLooper::Make(SK_ColorBLUE, SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(2)), |
+ 0, 0)); |
paint.setLooper(looper); |
SkScalar height = paint.getFontMetrics(nullptr); |
if (!fDecodeSucceeded) { |