Index: include/effects/SkEmbossMaskFilter.h |
diff --git a/include/effects/SkEmbossMaskFilter.h b/include/effects/SkEmbossMaskFilter.h |
index 72020bf3ce74663aa7e890d4899eec41146b7a47..8a3428245185caca709051b3b473a04ba1ac17c6 100644 |
--- a/include/effects/SkEmbossMaskFilter.h |
+++ b/include/effects/SkEmbossMaskFilter.h |
@@ -23,7 +23,13 @@ public: |
uint8_t fSpecular; // exponent, 4.4 right now |
}; |
- static SkMaskFilter* Create(SkScalar blurSigma, const Light& light); |
+ static sk_sp<SkMaskFilter> Make(SkScalar blurSigma, const Light& light); |
+ |
+#ifdef SK_SUPPORT_LEGACY_MASKFILTER_PTR |
+ static SkMaskFilter* Create(SkScalar blurSigma, const Light& light) { |
+ return Make(blurSigma, light).release(); |
+ } |
+#endif |
// overrides from SkMaskFilter |
// This method is not exported to java. |