Index: samplecode/SamplePathUtils.cpp |
diff --git a/samplecode/SamplePathUtils.cpp b/samplecode/SamplePathUtils.cpp |
index 09ab7738e976dd732b365c6369002f90b018c471..5e1ff97c35dcdd81970ce19d60ca356d7ff164cc 100644 |
--- a/samplecode/SamplePathUtils.cpp |
+++ b/samplecode/SamplePathUtils.cpp |
@@ -67,12 +67,12 @@ protected: |
SkScalar intervals[8] = { .5f, .3f, .5f, .3f, .5f, .3f, .5f, .3f }; |
SkDashPathEffect dash(intervals, 2, fPhase); |
SkCornerPathEffect corner(.25f); |
- SkComposePathEffect compose(&dash, &corner); |
+ SkAutoTUnref<SkComposePathEffect> compose(SkComposePathEffect::Create(&dash, &corner)); |
SkPaint outlinePaint; |
outlinePaint.setAntiAlias(true); // dashed paint for bitmap |
outlinePaint.setStyle(SkPaint::kStroke_Style); |
- outlinePaint.setPathEffect(&compose); |
+ outlinePaint.setPathEffect(compose); |
canvas->scale(10.0f, 10.0f); // scales up |