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

Unified Diff: src/gpu/GrBatch.h

Issue 1276913002: Add Batch logging (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweaks Created 5 years, 4 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 | « no previous file | src/gpu/GrInOrderCommandBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrBatch.h
diff --git a/src/gpu/GrBatch.h b/src/gpu/GrBatch.h
index 51c556e737a0b6a9a15f23f2db233b86a19e2138..c0a6ab4594aec39690803f4c134d623b7c9eca5f 100644
--- a/src/gpu/GrBatch.h
+++ b/src/gpu/GrBatch.h
@@ -36,6 +36,12 @@ struct GrInitInvariantOutput;
* the draw, ie whether or not the GrBatch is allowed to tweak alpha for coverage, then this
* information will be communicated to the GrBatch prior to geometry generation.
*/
+#define BATCH_SPEW
bsalomon 2015/08/06 17:54:12 Since it's in a header, maybe GR_BATCH_SPEW? Also
+#ifdef BATCH_SPEW
+ #define GrBATCH_INFO(...) SkDebugf(__VA_ARGS__)
+#else
+ #define GrBATCH_INFO(...)
+#endif
class GrBatch : public GrNonAtomicRef {
public:
« no previous file with comments | « no previous file | src/gpu/GrInOrderCommandBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698