Index: src/core/SkShader.cpp |
diff --git a/src/core/SkShader.cpp b/src/core/SkShader.cpp |
index 75fa6fc60cc72112d47ca16c3a2fa84172ef21b5..e4cbc7b2171340a1ec00aab1f976fdcdadec9629 100644 |
--- a/src/core/SkShader.cpp |
+++ b/src/core/SkShader.cpp |
@@ -453,3 +453,11 @@ SkShader* SkShader::newWithColorFilter(SkColorFilter* filter) const { |
return this->makeWithColorFilter(sk_ref_sp(filter)).release(); |
} |
#endif |
+ |
+#ifdef SK_SUPPORT_LEGACY_XFERMODE_PTR |
+#include "SkXfermode.h" |
+sk_sp<SkShader> SkShader::MakeComposeShader(sk_sp<SkShader> dst, sk_sp<SkShader> src, |
+ SkXfermode* xfer) { |
+ return MakeComposeShader(std::move(dst), std::move(src), sk_ref_sp(xfer)); |
+} |
+#endif |