Index: src/core/SkXfermode.cpp |
diff --git a/src/core/SkXfermode.cpp b/src/core/SkXfermode.cpp |
index d8ca8f1e6ec878e6aa262ef500bb6b5988b219a3..3ebd24c9816a252f5eaf17ba6237a381baedaffb 100644 |
--- a/src/core/SkXfermode.cpp |
+++ b/src/core/SkXfermode.cpp |
@@ -658,7 +658,8 @@ bool SkXfermode::asMode(Mode* mode) const { |
return false; |
} |
-bool SkXfermode::asFragmentProcessor(GrFragmentProcessor**, GrTexture*) const { |
+bool SkXfermode::asFragmentProcessor(GrFragmentProcessor**, GrShaderDataManager*, |
+ GrTexture*) const { |
return false; |
} |
@@ -928,10 +929,12 @@ void SkProcCoeffXfermode::xferA8(SkAlpha* SK_RESTRICT dst, |
#include "effects/GrCustomXfermode.h" |
bool SkProcCoeffXfermode::asFragmentProcessor(GrFragmentProcessor** fp, |
+ GrShaderDataManager* shaderDataManager, |
GrTexture* background) const { |
if (GrCustomXfermode::IsSupportedMode(fMode)) { |
if (fp) { |
- *fp = GrCustomXfermode::CreateFP(fMode, background); |
+ SkASSERT(shaderDataManager); |
+ *fp = GrCustomXfermode::CreateFP(shaderDataManager, fMode, background); |
SkASSERT(*fp); |
} |
return true; |