Index: include/client/android/SkPixelXorXfermode.h |
diff --git a/include/client/android/SkPixelXorXfermode.h b/include/client/android/SkPixelXorXfermode.h |
index 447bd813176fafe825dc8220566c7cd0370ec61c..b6fd97992698fcb9c6f1029a4b6a65be45f2484c 100644 |
--- a/include/client/android/SkPixelXorXfermode.h |
+++ b/include/client/android/SkPixelXorXfermode.h |
@@ -17,9 +17,14 @@ |
*/ |
class SK_API SkPixelXorXfermode : public SkXfermode { |
public: |
+ static sk_sp<SkXfermode> Make(SkColor opColor) { |
+ return sk_sp<SkXfermode>(new SkPixelXorXfermode(opColor)); |
+ } |
+#ifdef SK_SUPPORT_LEGACY_XFERMODE_PTR |
static SkXfermode* Create(SkColor opColor) { |
- return new SkPixelXorXfermode(opColor); |
+ return Make(opColor).release(); |
} |
+#endif |
#if SK_SUPPORT_GPU |
const GrFragmentProcessor* getFragmentProcessorForImageFilter( |