Index: include/effects/SkLayerDrawLooper.h |
diff --git a/include/effects/SkLayerDrawLooper.h b/include/effects/SkLayerDrawLooper.h |
index 76172dfd4b1dfcfb45296bac51a36dcff101d344..6ddde888ebeb2b3deaffc6dc534f5e6ebdc7f235 100644 |
--- a/include/effects/SkLayerDrawLooper.h |
+++ b/include/effects/SkLayerDrawLooper.h |
@@ -142,7 +142,12 @@ public: |
* Pass list of layers on to newly built looper and return it. This will |
* also reset the builder, so it can be used to build another looper. |
*/ |
- SkLayerDrawLooper* detachLooper(); |
+ sk_sp<SkDrawLooper> detach(); |
+#ifdef SK_SUPPORT_LEGACY_MINOR_EFFECT_PTR |
+ SkLayerDrawLooper* detachLooper() { |
+ return (SkLayerDrawLooper*)this->detach().release(); |
+ } |
+#endif |
private: |
Rec* fRecs; |