Index: src/core/SkComposeShader.cpp |
diff --git a/src/core/SkComposeShader.cpp b/src/core/SkComposeShader.cpp |
index 0dc0da68ef9b8dfabae11b0b561d9b5c6dd2b41f..dc2759791e3a5170bf1422aac552e3789cc039c9 100644 |
--- a/src/core/SkComposeShader.cpp |
+++ b/src/core/SkComposeShader.cpp |
@@ -204,7 +204,8 @@ void SkComposeShader::ComposeShaderContext::shadeSpan(int x, int y, SkPMColor re |
const GrFragmentProcessor* SkComposeShader::asFragmentProcessor(GrContext* context, |
const SkMatrix& viewM, |
const SkMatrix* localMatrix, |
- SkFilterQuality fq) const { |
+ SkFilterQuality fq, |
+ GrRenderTarget* dst) const { |
// Fragment processor will only support SkXfermode::Mode modes currently. |
SkXfermode::Mode mode; |
if (!(SkXfermode::AsMode(fMode, &mode))) { |
@@ -217,19 +218,19 @@ const GrFragmentProcessor* SkComposeShader::asFragmentProcessor(GrContext* conte |
GrConstColorProcessor::kIgnore_InputMode); |
break; |
case SkXfermode::kSrc_Mode: |
- return fShaderB->asFragmentProcessor(context, viewM, localMatrix, fq); |
+ return fShaderB->asFragmentProcessor(context, viewM, localMatrix, fq, dst); |
break; |
case SkXfermode::kDst_Mode: |
- return fShaderA->asFragmentProcessor(context, viewM, localMatrix, fq); |
+ return fShaderA->asFragmentProcessor(context, viewM, localMatrix, fq, dst); |
break; |
default: |
SkAutoTUnref<const GrFragmentProcessor> fpA(fShaderA->asFragmentProcessor(context, |
- viewM, localMatrix, fq)); |
+ viewM, localMatrix, fq, dst)); |
if (!fpA.get()) { |
return nullptr; |
} |
SkAutoTUnref<const GrFragmentProcessor> fpB(fShaderB->asFragmentProcessor(context, |
- viewM, localMatrix, fq)); |
+ viewM, localMatrix, fq, dst)); |
if (!fpB.get()) { |
return nullptr; |
} |