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

Unified Diff: include/gpu/GrContextOptions.h

Issue 1494473005: Add option to draw wireframe batch bounds (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: init vbo id to 0 Created 5 years 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 | « dm/DMSrcSink.cpp ('k') | src/gpu/GrContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrContextOptions.h
diff --git a/include/gpu/GrContextOptions.h b/include/gpu/GrContextOptions.h
index 52173eb7a0a081055e3c8217c5b160fa95837e23..2874b52be7a64c9c929c0edd18d91474f1165833 100644
--- a/include/gpu/GrContextOptions.h
+++ b/include/gpu/GrContextOptions.h
@@ -21,6 +21,7 @@ struct GrContextOptions {
, fUseDrawInsteadOfPartialRenderTargetWrite(false)
, fImmediateMode(false)
, fClipBatchToBounds(false)
+ , fDrawBatchBounds(false)
, fUseShaderSwizzling(false) {}
// EXPERIMENTAL
@@ -57,6 +58,11 @@ struct GrContextOptions {
verify that the clip bounds are conservative. */
bool fClipBatchToBounds;
+ /** For debugging purposes draw a wireframe device bounds rect for each GrBatch. The wire
+ frame rect is draw before the GrBatch in order to visualize batches that draw outside
+ of their dev bounds. */
+ bool fDrawBatchBounds;
+
/** Force us to do all swizzling manually in the shader and don't rely on extensions to do
swizzling. */
bool fUseShaderSwizzling;
« no previous file with comments | « dm/DMSrcSink.cpp ('k') | src/gpu/GrContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698