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

Unified Diff: src/gpu/effects/GrDisableColorXP.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/GrDisableColorXP.h ('k') | src/gpu/effects/GrDistanceFieldGeoProc.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/gpu/effects/GrDisableColorXP.h ('k') | src/gpu/effects/GrDistanceFieldGeoProc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698