Move reduced shader mode logic outside test macro
Bug: b/187535297 This omission need to follow the same path as https://skia-review.googlesource.com/c/skia/+/415760 Change-Id: I4ef1ec10a79b0280ec6227ebbfa33e959e7b66f2 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/416685 Reviewed-by: Brian Salomon <bsalomon@google.com> Reviewed-by: Leon Scroggins <scroggo@google.com> Commit-Queue: Leon Scroggins <scroggo@google.com>
This commit is contained in:
parent
70c21e34ca
commit
acdbb1e397
@ -189,6 +189,9 @@ void GrShaderCaps::applyOptionsOverrides(const GrContextOptions& options) {
|
||||
if (!options.fEnableExperimentalHardwareTessellation) {
|
||||
fMaxTessellationSegments = 0;
|
||||
}
|
||||
if (options.fReducedShaderVariations) {
|
||||
fReducedShaderMode = true;
|
||||
}
|
||||
#if GR_TEST_UTILS
|
||||
if (options.fSuppressDualSourceBlending) {
|
||||
fDualSourceBlendingSupport = false;
|
||||
@ -200,8 +203,5 @@ void GrShaderCaps::applyOptionsOverrides(const GrContextOptions& options) {
|
||||
fMaxTessellationSegments = std::min(options.fMaxTessellationSegmentsOverride,
|
||||
fMaxTessellationSegments);
|
||||
}
|
||||
if (options.fReducedShaderVariations) {
|
||||
fReducedShaderMode = true;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user