Index: src/gpu/effects/GrCoverageSetOpXP.cpp |
diff --git a/src/gpu/effects/GrCoverageSetOpXP.cpp b/src/gpu/effects/GrCoverageSetOpXP.cpp |
index 5c876d5cff959334bc9cc94d6ea0d5a7c98e0295..0505fb2c01512c688cc578c99ffaf2ec62ac5e21 100644 |
--- a/src/gpu/effects/GrCoverageSetOpXP.cpp |
+++ b/src/gpu/effects/GrCoverageSetOpXP.cpp |
@@ -17,8 +17,8 @@ |
class CoverageSetOpXP : public GrXferProcessor { |
public: |
- static GrXferProcessor* Create(SkRegion::Op regionOp, bool invertCoverage) { |
- return new CoverageSetOpXP(regionOp, invertCoverage); |
+ static GrXferProcessor* Create(SkRegion::Op regionOp, bool invertCoverage, GrRenderTarget* dst) { |
+ return new CoverageSetOpXP(regionOp, invertCoverage, dst); |
} |
~CoverageSetOpXP() override; |
@@ -30,7 +30,7 @@ public: |
bool invertCoverage() const { return fInvertCoverage; } |
private: |
- CoverageSetOpXP(SkRegion::Op regionOp, bool fInvertCoverage); |
+ CoverageSetOpXP(SkRegion::Op regionOp, bool fInvertCoverage, GrRenderTarget* dst); |
GrXferProcessor::OptFlags onGetOptimizations(const GrProcOptInfo& colorPOI, |
const GrProcOptInfo& coveragePOI, |
@@ -88,8 +88,8 @@ private: |
/////////////////////////////////////////////////////////////////////////////// |
-CoverageSetOpXP::CoverageSetOpXP(SkRegion::Op regionOp, bool invertCoverage) |
- : fRegionOp(regionOp) |
+CoverageSetOpXP::CoverageSetOpXP(SkRegion::Op regionOp, bool invertCoverage, GrRenderTarget* dst) |
+ : INHERITED(dst), fRegionOp(regionOp) |
, fInvertCoverage(invertCoverage) { |
this->initClassID<CoverageSetOpXP>(); |
} |
@@ -225,7 +225,7 @@ GrCoverageSetOpXPFactory::onCreateXferProcessor(const GrCaps& caps, |
const GrProcOptInfo& colorPOI, |
const GrProcOptInfo& covPOI, |
bool hasMixedSamples, |
- const DstTexture* dst) const { |
+ const DstTexture* dst, GrRenderTarget* dstRT) const { |
// We don't support inverting coverage with mixed samples. We don't expect to ever want this in |
// the future, however we could at some point make this work using an inverted coverage |
// modulation table. Note that an inverted table still won't work if there are coverage procs. |
@@ -234,7 +234,7 @@ GrCoverageSetOpXPFactory::onCreateXferProcessor(const GrCaps& caps, |
return nullptr; |
} |
- return CoverageSetOpXP::Create(fRegionOp, fInvertCoverage); |
+ return CoverageSetOpXP::Create(fRegionOp, fInvertCoverage, dstRT); |
} |
void GrCoverageSetOpXPFactory::getInvariantBlendedColor(const GrProcOptInfo& colorPOI, |