Index: src/gpu/GrStyle.cpp |
diff --git a/src/gpu/GrStyle.cpp b/src/gpu/GrStyle.cpp |
index 40a148bb4a9c6e88063d064aa3232ef6fda50202..330a7d797be16f55ca2267afadadbc1146cc3bd9 100644 |
--- a/src/gpu/GrStyle.cpp |
+++ b/src/gpu/GrStyle.cpp |
@@ -7,7 +7,7 @@ |
#include "GrStyle.h" |
-void GrStyle::initPathEffect(SkPathEffect* pe) { |
+void GrStyle::initPathEffect(sk_sp<SkPathEffect> pe) { |
if (!pe) { |
fDashInfo.fType = SkPathEffect::kNone_DashType; |
return; |
@@ -17,7 +17,7 @@ void GrStyle::initPathEffect(SkPathEffect* pe) { |
if (fStrokeRec.getStyle() == SkStrokeRec::kFill_Style) { |
fPathEffect.reset(nullptr); |
} else { |
- fPathEffect.reset(SkSafeRef(pe)); |
+ fPathEffect = std::move(pe); |
fDashInfo.fType = SkPathEffect::kDash_DashType; |
fDashInfo.fIntervals.reset(info.fCount); |
fDashInfo.fPhase = info.fPhase; |
@@ -26,7 +26,7 @@ void GrStyle::initPathEffect(SkPathEffect* pe) { |
return; |
} |
} else { |
- fPathEffect.reset(SkSafeRef(pe)); |
+ fPathEffect = std::move(pe); |
} |
fDashInfo.fType = SkPathEffect::kNone_DashType; |
fDashInfo.fIntervals.reset(0); |