Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Unified Diff: src/gpu/effects/GrCoverageSetOpXP.cpp

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Last update from dead machine Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/effects/GrConvolutionEffect.cpp ('k') | src/gpu/effects/GrCustomXfermode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « src/gpu/effects/GrConvolutionEffect.cpp ('k') | src/gpu/effects/GrCustomXfermode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698