Remove legacy flag: GrContextOptions::fDisallowGLSLBinaryCaching

Subsumed by fShaderCacheStrategy, clients have switched over.

Change-Id: I70b6ade4ccab2f48f2ef9437ae65c78cf458cfe4
Bug: skia:9402
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/239928
Commit-Queue: Brian Salomon <bsalomon@google.com>
Auto-Submit: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
This commit is contained in:
Brian Osman 2019-09-06 16:56:33 -04:00 committed by Skia Commit-Bot
parent 78fb80a2b3
commit e8820d45ce
2 changed files with 0 additions and 6 deletions
include/gpu
src/gpu/gl

View File

@ -200,9 +200,6 @@ struct SK_API GrContextOptions {
*/
ShaderCacheStrategy fShaderCacheStrategy = ShaderCacheStrategy::kBackendBinary;
// Legacy flag until clients are updated to use fShaderCacheStrategy
bool fDisallowGLSLBinaryCaching = false;
/**
* If present, use this object to report shader compilation failures. If not, report failures
* via SkDebugf and assert.

View File

@ -3607,9 +3607,6 @@ void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {
if (options.fShaderCacheStrategy < GrContextOptions::ShaderCacheStrategy::kBackendBinary) {
fProgramBinarySupport = false;
}
if (options.fDisallowGLSLBinaryCaching) {
fProgramBinarySupport = false;
}
}
bool GrGLCaps::onSurfaceSupportsWritePixels(const GrSurface* surface) const {