diff options
author | Brian Salomon <bsalomon@google.com> | 2018-01-23 11:06:41 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-23 18:33:49 +0000 |
commit | 01b476a02825b926436dff8d0bcb2e0e07640b56 (patch) | |
tree | 5d5e23220fa3816fff01d69d6aa7ac3fe9f0d8f6 /src/gpu/GrCaps.cpp | |
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 'src/gpu/GrCaps.cpp')
-rw-r--r-- | src/gpu/GrCaps.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/GrCaps.cpp b/src/gpu/GrCaps.cpp index da32ebfbd9..78789a1f34 100644 --- a/src/gpu/GrCaps.cpp +++ b/src/gpu/GrCaps.cpp @@ -97,6 +97,12 @@ GrCaps::GrCaps(const GrContextOptions& options) { void GrCaps::applyOptionsOverrides(const GrContextOptions& options) { this->onApplyOptionsOverrides(options); + if (options.fDisableDriverCorrectnessWorkarounds) { + SkASSERT(!fBlacklistCoverageCounting); + SkASSERT(!fAvoidStencilBuffers); + SkASSERT(!fAdvBlendEqBlacklist); + } + fMaxTextureSize = SkTMin(fMaxTextureSize, options.fMaxTextureSizeOverride); fMaxTileSize = fMaxTextureSize; #if GR_TEST_UTILS |