Index: samplecode/SampleTextOnPath.cpp |
diff --git a/samplecode/SampleTextOnPath.cpp b/samplecode/SampleTextOnPath.cpp |
index f2b9af6732e92e89314f2c8240997920541fa692..6d79e2075517a1f3d034a956a0ea49b6767ae7d8 100644 |
--- a/samplecode/SampleTextOnPath.cpp |
+++ b/samplecode/SampleTextOnPath.cpp |
@@ -35,10 +35,10 @@ static void textStrokePath(SkCanvas* canvas) { |
canvas->drawPath(path, paint); |
- paint.setLooper(new SkBlurDrawLooper(SK_ColorBLACK, |
- SkBlurMask::ConvertRadiusToSigma(0.002f), |
- 0.0f, |
- 0.0f))->unref(); |
+ paint.setLooper(SkBlurDrawLooper::Create(SK_ColorBLACK, |
+ SkBlurMask::ConvertRadiusToSigma(0.002f), |
+ 0.0f, |
+ 0.0f))->unref(); |
const char* text = "DRAWING STROKED TEXT WITH A BLUR ON A PATH"; |
size_t len = strlen(text); |