aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-03-07 11:50:44 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-07 11:50:44 -0800
commitaecc018f86d911198b7c7775cee04f61bd10b430 (patch)
treee952d99ee53a5437878203018a2e955152457eac /include/gpu
parent673748a3201a1611bc1c484e18ba558661d2839c (diff)
Attempt to combine batches in forward direction before flush
Diffstat (limited to 'include/gpu')
-rw-r--r--include/gpu/GrContextOptions.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/gpu/GrContextOptions.h b/include/gpu/GrContextOptions.h
index 8e6368a389..d7070db555 100644
--- a/include/gpu/GrContextOptions.h
+++ b/include/gpu/GrContextOptions.h
@@ -23,6 +23,7 @@ struct GrContextOptions {
, fClipBatchToBounds(false)
, fDrawBatchBounds(false)
, fMaxBatchLookback(-1)
+ , fMaxBatchLookahead(-1)
, fUseShaderSwizzling(false) {}
// EXPERIMENTAL
@@ -64,8 +65,10 @@ struct GrContextOptions {
of their dev bounds. */
bool fDrawBatchBounds;
- /** For debugging, override the default maximum look-back window for GrBatch combining. */
+ /** For debugging, override the default maximum look-back or look-ahead window for GrBatch
+ combining. */
int fMaxBatchLookback;
+ int fMaxBatchLookahead;
/** Force us to do all swizzling manually in the shader and don't rely on extensions to do
swizzling. */