Index: include/core/SkFlattenable.h |
diff --git a/include/core/SkFlattenable.h b/include/core/SkFlattenable.h |
index 10cba1a2ec293916d16c711b757e726fe1dd63d0..c76f119c131d5daf2c2b990d51aa6b952932af22 100644 |
--- a/include/core/SkFlattenable.h |
+++ b/include/core/SkFlattenable.h |
@@ -48,7 +48,7 @@ class SkPrivateEffectInitializer; |
#define SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(flattenable) \ |
private: \ |
- static SkFlattenable* CreateProc(SkReadBuffer&); \ |
+ static sk_sp<SkFlattenable> CreateProc(SkReadBuffer&); \ |
friend class SkFlattenable::PrivateInitializer; \ |
public: \ |
Factory getFactory() const override { return CreateProc; } |
@@ -82,7 +82,7 @@ public: |
kSkXfermode_Type, |
}; |
- typedef SkFlattenable* (*Factory)(SkReadBuffer&); |
+ typedef sk_sp<SkFlattenable> (*Factory)(SkReadBuffer&); |
SkFlattenable() {} |