Index: tests/GpuDrawPathTest.cpp |
diff --git a/tests/GpuDrawPathTest.cpp b/tests/GpuDrawPathTest.cpp |
index 1f9361ad1e809a196e084bce7cdc7b3eb8a5b842..d454d9bb6713dd57a142311edc0d5f41d77edfdb 100644 |
--- a/tests/GpuDrawPathTest.cpp |
+++ b/tests/GpuDrawPathTest.cpp |
@@ -49,7 +49,7 @@ |
} |
static void fill_and_stroke(SkCanvas* canvas, const SkPath& p1, const SkPath& p2, |
- sk_sp<SkPathEffect> effect) { |
+ SkPathEffect* effect) { |
SkPaint paint; |
paint.setAntiAlias(true); |
paint.setPathEffect(effect); |
@@ -73,7 +73,8 @@ |
fill_and_stroke(canvas, oval1, oval2, nullptr); |
const SkScalar intervals[] = { 1, 1 }; |
- fill_and_stroke(canvas, oval1, oval2, SkDashPathEffect::Make(intervals, 2, 0)); |
+ SkAutoTUnref<SkPathEffect> dashEffect(SkDashPathEffect::Create(intervals, 2, 0)); |
+ fill_and_stroke(canvas, oval1, oval2, dashEffect); |
} |
DEF_GPUTEST_FOR_ALL_CONTEXTS(GpuDrawPath, reporter, context) { |