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