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

Unified Diff: src/gpu/GrDrawTarget.h

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/GrDrawContext.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698