diff options
Diffstat (limited to 'src/gpu/GrDrawTarget.h')
-rw-r--r-- | src/gpu/GrDrawTarget.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h index a487785a8b..d77615e655 100644 --- a/src/gpu/GrDrawTarget.h +++ b/src/gpu/GrDrawTarget.h @@ -33,6 +33,8 @@ #include "SkTypes.h" #include "SkXfermode.h" +//#define ENABLE_MDB 1 + class GrBatch; class GrBatchFlushState; class GrClip; @@ -49,7 +51,7 @@ public: // The context may not be fully constructed and should not be used during GrDrawTarget // construction. - GrDrawTarget(GrGpu* gpu, GrResourceProvider*, const Options& options); + GrDrawTarget(GrRenderTarget* rt, GrGpu* gpu, GrResourceProvider*, const Options& options); ~GrDrawTarget() override; @@ -62,6 +64,10 @@ public: } bool isClosed() const { return this->isSetFlag(kClosed_Flag); } + // TODO: this entry point is only needed in the non-MDB world. Remove when + // we make the switch to MDB + void clearRT() { fRenderTarget = nullptr; } + /* * Notify this drawTarget that it relies on the contents of 'dependedOn' */ @@ -318,6 +324,7 @@ private: // 'this' drawTarget relies on the output of the drawTargets in 'fDependencies' SkTDArray<GrDrawTarget*> fDependencies; + GrRenderTarget* fRenderTarget; typedef SkRefCnt INHERITED; }; |