Index: src/gpu/effects/GrDisableColorXP.cpp |
diff --git a/src/gpu/effects/GrDisableColorXP.cpp b/src/gpu/effects/GrDisableColorXP.cpp |
index 963b0dd1f21de4a4b15c812206f019e288f65856..7d593d73251a2fc8c4cc39a0a61838881fff0762 100644 |
--- a/src/gpu/effects/GrDisableColorXP.cpp |
+++ b/src/gpu/effects/GrDisableColorXP.cpp |
@@ -18,7 +18,9 @@ |
*/ |
class DisableColorXP : public GrXferProcessor { |
public: |
- static GrXferProcessor* Create() { return new DisableColorXP; } |
+ static GrXferProcessor* Create(GrRenderTarget* dst) { |
+ return new DisableColorXP(dst); |
+ } |
~DisableColorXP() override {}; |
@@ -27,7 +29,7 @@ public: |
GrGLXferProcessor* createGLInstance() const override; |
private: |
- DisableColorXP(); |
+ DisableColorXP(GrRenderTarget* dst); |
GrXferProcessor::OptFlags onGetOptimizations(const GrProcOptInfo& colorPOI, |
const GrProcOptInfo& coveragePOI, |
@@ -74,7 +76,7 @@ private: |
/////////////////////////////////////////////////////////////////////////////// |
-DisableColorXP::DisableColorXP() { |
+DisableColorXP::DisableColorXP(GrRenderTarget* dst) : INHERITED(dst) { |
this->initClassID<DisableColorXP>(); |
} |
@@ -99,8 +101,8 @@ GrDisableColorXPFactory::onCreateXferProcessor(const GrCaps& caps, |
const GrProcOptInfo& colorPOI, |
const GrProcOptInfo& covPOI, |
bool hasMixedSamples, |
- const DstTexture* dst) const { |
- return DisableColorXP::Create(); |
+ const DstTexture* dst, GrRenderTarget* dstRT) const { |
+ return DisableColorXP::Create(dstRT); |
} |
GR_DEFINE_XP_FACTORY_TEST(GrDisableColorXPFactory); |