diff options
author | 2017-12-18 14:22:34 -0700 | |
---|---|---|
committer | 2017-12-19 17:26:56 +0000 | |
commit | 040238bded7b932b916c84912cbaec1207aa29c0 (patch) | |
tree | c5552a22315889b06249b524bc2d1a6723651dcb /include | |
parent | c2a4101e48467ae9d574f9b85b228aabb0722d40 (diff) |
Add a tools flag to suppress geometry shaders
Bug: skia:
Change-Id: I38736c5d49e3b281c2d23af3908575274ff97b5c
Reviewed-on: https://skia-review.googlesource.com/86282
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrContextOptions.h | 5 | ||||
-rw-r--r-- | include/gpu/GrShaderCaps.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/gpu/GrContextOptions.h b/include/gpu/GrContextOptions.h index e3c05215c3..41872be78a 100644 --- a/include/gpu/GrContextOptions.h +++ b/include/gpu/GrContextOptions.h @@ -167,6 +167,11 @@ struct GrContextOptions { bool fSuppressPathRendering = false; /** + * If true, the caps will never support geometry shaders. + */ + bool fSuppressGeometryShaders = false; + + /** * Render everything in wireframe */ bool fWireframeMode = false; diff --git a/include/gpu/GrShaderCaps.h b/include/gpu/GrShaderCaps.h index e912e146de..82fd077592 100644 --- a/include/gpu/GrShaderCaps.h +++ b/include/gpu/GrShaderCaps.h @@ -296,7 +296,8 @@ private: GrSwizzle fConfigTextureSwizzle[kGrPixelConfigCnt]; GrSwizzle fConfigOutputSwizzle[kGrPixelConfigCnt]; - friend class GrGLCaps; // For initialization. + friend class GrCaps; // For initialization. + friend class GrGLCaps; friend class GrMockCaps; friend class GrMtlCaps; friend class GrVkCaps; |