diff options
author | 2018-01-23 11:06:41 -0500 | |
---|---|---|
committer | 2018-01-23 18:33:49 +0000 | |
commit | 01b476a02825b926436dff8d0bcb2e0e07640b56 (patch) | |
tree | 5d5e23220fa3816fff01d69d6aa7ac3fe9f0d8f6 /include/gpu/GrContextOptions.h | |
parent | 165fa634b7619f5a9e04eb5735ab0ec2c0776c42 (diff) |
Start of adding GrContextOption that overrides driver workarounds.
This handles most of the GL driver workarounds but not Vulkan (yet). GL wokarounds related to config support are still not handled.
Change-Id: I3d0f62ac8a0f6e9ba13632ea82acdc493912c63d
Reviewed-on: https://skia-review.googlesource.com/98382
Commit-Queue: 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 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/gpu/GrContextOptions.h b/include/gpu/GrContextOptions.h index 2640d51e1b..492a2d9b26 100644 --- a/include/gpu/GrContextOptions.h +++ b/include/gpu/GrContextOptions.h @@ -141,6 +141,13 @@ struct GrContextOptions { Enable fUseDrawInsteadOfGLClear = Enable::kDefault; /** + * 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. + */ + bool fDisableDriverCorrectnessWorkarounds = false; + + /** * Cache in which to store compiled shader binaries between runs. */ PersistentCache* fPersistentCache = nullptr; |