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

Unified Diff: src/gpu/GrDrawTarget.h

Issue 1416753002: Add debugging helper to GrDrawTarget (Closed) Base URL: https://skia.googlesource.com/skia.git@mdb-adddeps
Patch Set: Renamed GrDrawTarget::print to dump Created 5 years, 2 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/GrContext.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 925c03e741080a5f7cdebc51a8c32587b26146c4..ec94da1f0e72f2351566979fac9d17c9f4211fe2 100644
--- a/src/gpu/GrDrawTarget.h
+++ b/src/gpu/GrDrawTarget.h
@@ -70,6 +70,11 @@ public:
return fDependencies.find(dependedOn) >= 0;
}
+ /*
+ * Dump out the drawTarget dependency DAG
+ */
+ SkDEBUGCODE(void dump() const;)
+
/**
* Empties the draw buffer of any queued up draws.
*/
@@ -304,6 +309,7 @@ private:
bool fFlushing;
int fFirstUnpreparedBatch;
+ SkDEBUGCODE(int fDebugID;)
uint32_t fFlags;
// 'this' drawTarget relies on the output of the drawTargets in 'fDependencies'
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698