Index: src/gpu/effects/GrCustomXfermode.cpp |
diff --git a/src/gpu/effects/GrCustomXfermode.cpp b/src/gpu/effects/GrCustomXfermode.cpp |
index 574310c49cac3c7281a69037532a384cd02ef08d..f2b23ca19ee53749c5e28028369ea8b40b36805d 100644 |
--- a/src/gpu/effects/GrCustomXfermode.cpp |
+++ b/src/gpu/effects/GrCustomXfermode.cpp |
@@ -75,14 +75,14 @@ static bool can_use_hw_blend_equation(GrBlendEquation equation, |
class CustomXP : public GrXferProcessor { |
public: |
- CustomXP(SkXfermode::Mode mode, GrBlendEquation hwBlendEquation) |
- : fMode(mode), |
+ CustomXP(SkXfermode::Mode mode, GrBlendEquation hwBlendEquation, GrRenderTarget* dst) |
+ : INHERITED(dst), fMode(mode), |
fHWBlendEquation(hwBlendEquation) { |
this->initClassID<CustomXP>(); |
} |
- CustomXP(const DstTexture* dstTexture, bool hasMixedSamples, SkXfermode::Mode mode) |
- : INHERITED(dstTexture, true, hasMixedSamples), |
+ CustomXP(const DstTexture* dstTexture, bool hasMixedSamples, SkXfermode::Mode mode, GrRenderTarget* dst) |
+ : INHERITED(dstTexture, true, hasMixedSamples, dst), |
fMode(mode), |
fHWBlendEquation(static_cast<GrBlendEquation>(-1)) { |
this->initClassID<CustomXP>(); |
@@ -332,7 +332,8 @@ private: |
const GrProcOptInfo& colorPOI, |
const GrProcOptInfo& coveragePOI, |
bool hasMixedSamples, |
- const DstTexture*) const override; |
+ const DstTexture*, |
+ GrRenderTarget* dst) const override; |
bool willReadDstColor(const GrCaps& caps, |
const GrProcOptInfo& colorPOI, |
@@ -363,12 +364,12 @@ GrXferProcessor* CustomXPFactory::onCreateXferProcessor(const GrCaps& caps, |
const GrProcOptInfo& colorPOI, |
const GrProcOptInfo& coveragePOI, |
bool hasMixedSamples, |
- const DstTexture* dstTexture) const { |
+ const DstTexture* dstTexture, GrRenderTarget* dst) const { |
if (can_use_hw_blend_equation(fHWBlendEquation, coveragePOI, caps)) { |
SkASSERT(!dstTexture || !dstTexture->texture()); |
- return new CustomXP(fMode, fHWBlendEquation); |
+ return new CustomXP(fMode, fHWBlendEquation, dst); |
} |
- return new CustomXP(dstTexture, hasMixedSamples, fMode); |
+ return new CustomXP(dstTexture, hasMixedSamples, fMode, dst); |
} |
bool CustomXPFactory::willReadDstColor(const GrCaps& caps, |