Index: tests/DashPathEffectTest.cpp |
diff --git a/tests/DashPathEffectTest.cpp b/tests/DashPathEffectTest.cpp |
index 7e832cdd6698ab5197f01270910733ad14e069a8..fa2395ef7585668258374dbea51b08ed3772df36 100644 |
--- a/tests/DashPathEffectTest.cpp |
+++ b/tests/DashPathEffectTest.cpp |
@@ -18,7 +18,7 @@ |
SkScalar intervals[] = { 1.76934361e+36f, 2.80259693e-45f }; // Values from bug. |
const int count = 2; |
SkScalar phase = SK_ScalarInfinity; // Used to force a nonsense effect. |
- sk_sp<SkPathEffect> dash(SkDashPathEffect::Make(intervals, count, phase)); |
+ SkAutoTUnref<SkPathEffect> dash(SkDashPathEffect::Create(intervals, count, phase)); |
REPORTER_ASSERT(r, dash == nullptr); |
} |
@@ -28,7 +28,7 @@ |
const SkScalar intervals[] = { 1.0f, 1.0f }; |
const int count = 2; |
- sk_sp<SkPathEffect> dash(SkDashPathEffect::Make(intervals, count, 0.0f)); |
+ SkAutoTUnref<SkPathEffect> dash(SkDashPathEffect::Create(intervals, count, 0.0f)); |
SkRect cull = SkRect::MakeWH(1.0f, 1.0f); |
@@ -90,7 +90,7 @@ |
path.close(); |
SkScalar intervals[2] = { 1, 1 }; |
- sk_sp<SkPathEffect> dash(SkDashPathEffect::Make(intervals, 2, 0)); |
+ SkAutoTUnref<SkPathEffect> dash(SkDashPathEffect::Create(intervals, 2, 0)); |
SkPaint paint; |
paint.setStyle(SkPaint::kStroke_Style); |