From 821ef188b34c03e531b138423f6bf8d54fbde736 Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Tue, 7 Nov 2017 16:41:11 -0500 Subject: Allow mock GrContexts to "support" shader derivatives Change-Id: I0d8dce5e0873a058b59baae9c35903b2444a76fd Reviewed-on: https://skia-review.googlesource.com/68480 Commit-Queue: Robert Phillips Reviewed-by: Robert Phillips --- include/gpu/mock/GrMockTypes.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/gpu/mock') 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 -- cgit v1.2.3