Index: src/core/SkXfermode.cpp |
diff --git a/src/core/SkXfermode.cpp b/src/core/SkXfermode.cpp |
index 9d727f07f14ab40a110815fb64c101f0e795144e..37dbd0d1e24a264864873e2315b9e3e6b69dc19a 100644 |
--- a/src/core/SkXfermode.cpp |
+++ b/src/core/SkXfermode.cpp |
@@ -932,6 +932,17 @@ bool SkProcCoeffXfermode::asFragmentProcessor(GrFragmentProcessor** fp, |
} |
return false; |
} |
+ |
+bool SkProcCoeffXfermode::asXPFactory(GrXPFactory** xp) const { |
+ if (GrCustomXfermode::IsSupportedMode(fMode)) { |
+ if (xp) { |
+ *xp = GrCustomXfermode::CreateXPFactory(fMode); |
+ SkASSERT(*xp); |
+ } |
+ return true; |
+ } |
+ return false; |
+} |
#endif |
const char* SkXfermode::ModeName(Mode mode) { |