diff options
author | 2016-03-07 11:50:44 -0800 | |
---|---|---|
committer | 2016-03-07 11:50:44 -0800 | |
commit | aecc018f86d911198b7c7775cee04f61bd10b430 (patch) | |
tree | e952d99ee53a5437878203018a2e955152457eac /include/gpu | |
parent | 673748a3201a1611bc1c484e18ba558661d2839c (diff) |
Attempt to combine batches in forward direction before flush
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1763883005
Review URL: https://codereview.chromium.org/1763883005
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrContextOptions.h | 5 |
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. */ |