diff options
author | Brian Salomon <bsalomon@google.com> | 2017-11-07 16:41:11 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-08 12:46:26 +0000 |
commit | 821ef188b34c03e531b138423f6bf8d54fbde736 (patch) | |
tree | d892fb29d4eb6ee89ca6a769247b8c5d6ceeeec8 /include | |
parent | 9eccfff674724f42955daabfa5c7ff4db8bafc43 (diff) |
Allow mock GrContexts to "support" shader derivatives
Change-Id: I0d8dce5e0873a058b59baae9c35903b2444a76fd
Reviewed-on: https://skia-review.googlesource.com/68480
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/mock/GrMockTypes.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/gpu/mock/GrMockTypes.h b/include/gpu/mock/GrMockTypes.h index 81eeaba8b6..3ad0fc3b9a 100644 --- a/include/gpu/mock/GrMockTypes.h +++ b/include/gpu/mock/GrMockTypes.h @@ -16,8 +16,8 @@ struct GrMockTextureInfo { /** * A pointer to this type is used as the GrBackendContext when creating a Mock GrContext. It can be - * used to specificy capability options for the mock context. If nullptr is used a default - * constructed GrMockOptions is used. + * used to specify capability options for the mock context. If nullptr is used a default constructed + * GrMockOptions is used. */ struct GrMockOptions { GrMockOptions() { @@ -48,6 +48,7 @@ struct GrMockOptions { bool fIntegerSupport = false; bool fFlatInterpolationSupport = false; int fMaxVertexSamplers = 0; + bool fShaderDerivativeSupport = true; }; #endif |