| Index: include/core/SkPaint.h
 | 
| diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h
 | 
| index 39ee1e0de1d9b98a1b7b7c005ebd8bb44dc5522d..9dc9f91ac3dbe5d5699fc944d6033489a5e56c08 100644
 | 
| --- a/include/core/SkPaint.h
 | 
| +++ b/include/core/SkPaint.h
 | 
| @@ -561,8 +561,13 @@ public:
 | 
|                          paint
 | 
|          @return         effect
 | 
|      */
 | 
| -    SkPathEffect* setPathEffect(SkPathEffect* effect);
 | 
|      void setPathEffect(sk_sp<SkPathEffect>);
 | 
| +#ifdef SK_SUPPORT_LEGACY_PATHEFFECT_PTR
 | 
| +    SkPathEffect* setPathEffect(SkPathEffect* effect) {
 | 
| +        this->setPathEffect(sk_ref_sp(effect));
 | 
| +        return effect;
 | 
| +    }
 | 
| +#endif
 | 
|  
 | 
|      /** Get the paint's maskfilter object.
 | 
|          <p />
 | 
| 
 |