aboutsummaryrefslogtreecommitdiff
path: root/samplecode/SampleTextOnPath.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/SampleTextOnPath.cpp')
-rw-r--r--samplecode/SampleTextOnPath.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/samplecode/SampleTextOnPath.cpp b/samplecode/SampleTextOnPath.cpp
index f2b9af6732..6d79e20755 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);