Index: tools/debugger/SkDrawCommand.cpp |
diff --git a/tools/debugger/SkDrawCommand.cpp b/tools/debugger/SkDrawCommand.cpp |
index ab9c9de53c5114b3cc5159216c025543bc2f5350..847254a30f77e5c20721fc5d2b598d4902ff87a1 100644 |
--- a/tools/debugger/SkDrawCommand.cpp |
+++ b/tools/debugger/SkDrawCommand.cpp |
@@ -1106,10 +1106,10 @@ |
SkPaint* target) { |
if (jsonPaint.isMember(SKDEBUGCANVAS_ATTRIBUTE_PATHEFFECT)) { |
Json::Value jsonPathEffect = jsonPaint[SKDEBUGCANVAS_ATTRIBUTE_PATHEFFECT]; |
- sk_sp<SkPathEffect> pathEffect((SkPathEffect*)load_flattenable(jsonPathEffect, |
- urlDataManager)); |
+ SkPathEffect* pathEffect = (SkPathEffect*) load_flattenable(jsonPathEffect, urlDataManager); |
if (pathEffect != nullptr) { |
target->setPathEffect(pathEffect); |
+ pathEffect->unref(); |
} |
} |
} |
@@ -1329,7 +1329,7 @@ |
intervals[i] = jsonIntervals[i].asFloat(); |
} |
SkScalar phase = dash[SKDEBUGCANVAS_ATTRIBUTE_PHASE].asFloat(); |
- target->setPathEffect(SkDashPathEffect::Make(intervals, count, phase)); |
+ target->setPathEffect(SkDashPathEffect::Create(intervals, count, phase)); |
sk_free(intervals); |
} |
} |