Index: src/gpu/GrDrawTarget.h |
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h |
index cf3137fe7c68fc44c6a3fd9fe2b782ec098eb700..a08f1ca8bda2c411a933467dcd295e1a02e75cda 100644 |
--- a/src/gpu/GrDrawTarget.h |
+++ b/src/gpu/GrDrawTarget.h |
@@ -32,14 +32,18 @@ |
#include "SkTypes.h" |
#include "SkXfermode.h" |
-//#define ENABLE_MDB 1 |
+#define ENABLE_MDB 1 |
class GrBatch; |
class GrClip; |
class GrCaps; |
+class GrFoo; |
class GrPath; |
class GrDrawPathBatchBase; |
class GrPathRangeDraw; |
+class GrDrawContext; |
+class GrDrawTarget; |
+ |
class GrDrawTarget final : public SkRefCnt { |
public: |
@@ -47,6 +51,22 @@ public: |
// construction. |
GrDrawTarget(GrRenderTarget* rt, GrGpu* gpu, GrResourceProvider*); |
+ /////////////////////////////////////////////////////////////////////////// |
+ bool isEmpty3() const { |
+ return fBatches.count() == 0; |
+ } |
+ |
+ void addRequiredDep(GrDrawTarget* srcDT) { |
+ *fRequired.push() = srcDT; |
+ } |
+ |
+ // fRequired dependances are from the TextureAccess system |
+ SkTDArray<GrDrawTarget*> fRequired; |
+ |
+ GrRenderTarget* rt_delete_me() { return fRenderTarget; } |
+ |
+ /////////////////////////////////////////////////////////////////////////// |
+ |
~GrDrawTarget() override; |
void makeClosed() { |
@@ -295,6 +315,8 @@ private: |
GrScissorState*, |
const SkRect* devBounds); |
+ void checkUses() const; |
+ |
void addDependency(GrDrawTarget* dependedOn); |
// Used only by CMM. |