aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrContextOptions.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-12-14 12:13:09 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-12-14 12:13:09 -0800
commit489147c78b2091b87a80dac50a3e8f0f8eb42124 (patch)
tree9351e967262b57c46b1f19bc79c832b2e25ba6d4 /include/gpu/GrContextOptions.h
parent1cbb5ea0a07255bcc0b8351ddf1fc84f50887aef (diff)
Add option to control maximum GrBatch lookback
Diffstat (limited to 'include/gpu/GrContextOptions.h')
-rw-r--r--include/gpu/GrContextOptions.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/gpu/GrContextOptions.h b/include/gpu/GrContextOptions.h
index 2874b52be7..8e6368a389 100644
--- a/include/gpu/GrContextOptions.h
+++ b/include/gpu/GrContextOptions.h
@@ -22,6 +22,7 @@ struct GrContextOptions {
, fImmediateMode(false)
, fClipBatchToBounds(false)
, fDrawBatchBounds(false)
+ , fMaxBatchLookback(-1)
, fUseShaderSwizzling(false) {}
// EXPERIMENTAL
@@ -63,6 +64,9 @@ struct GrContextOptions {
of their dev bounds. */
bool fDrawBatchBounds;
+ /** For debugging, override the default maximum look-back window for GrBatch combining. */
+ int fMaxBatchLookback;
+
/** Force us to do all swizzling manually in the shader and don't rely on extensions to do
swizzling. */
bool fUseShaderSwizzling;