diff options
author | 2018-02-07 17:08:21 -0500 | |
---|---|---|
committer | 2018-02-08 12:36:29 +0000 | |
commit | 4150eea6c49ecec882a8d3e1c61d6a25fcd1e905 (patch) | |
tree | 21b7089d6745f769be88f8f3d9a127d521ff48be /include/gpu/GrContextOptions.h | |
parent | 1f1bb9c0b8d5f50ac74716e6961a6c92f1d373d8 (diff) |
Move control of explicit GPU resource allocation to GrContextOptions
Change-Id: Ic284acc79bab5936f0007d5ae5fb1e7a9929e2af
Reviewed-on: https://skia-review.googlesource.com/104880
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'include/gpu/GrContextOptions.h')
-rw-r--r-- | include/gpu/GrContextOptions.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/gpu/GrContextOptions.h b/include/gpu/GrContextOptions.h index 492a2d9b26..0cf4553ac9 100644 --- a/include/gpu/GrContextOptions.h +++ b/include/gpu/GrContextOptions.h @@ -141,6 +141,19 @@ struct GrContextOptions { Enable fUseDrawInsteadOfGLClear = Enable::kDefault; /** + * Allow Ganesh to explicitly allocate resources at flush time rather than incrementally while + * drawing. This will eventually just be the way it is but, for now, it is optional. + */ + bool fExplicitlyAllocateGPUResources = false; + + /** + * Allow Ganesh to sort the opLists prior to allocating resources. This is an optional + * behavior that is only relevant when 'fExplicitlyAllocateGPUResources' is enabled. + * Eventually this will just be what is done and will not be optional. + */ + bool fSortRenderTargets = false; + + /** * Disables correctness workarounds that are enabled for particular GPUs, OSes, or drivers. * This does not affect code path choices that are made for perfomance reasons nor does it * override other GrContextOption settings. |