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 diff --git a/src/gpu/mock/GrMockCaps.h b/src/gpu/mock/GrMockCaps.h index e1dd80dcc7..9f279689c7 100644 --- a/src/gpu/mock/GrMockCaps.h +++ b/src/gpu/mock/GrMockCaps.h @@ -28,6 +28,7 @@ public: fShaderCaps->fIntegerSupport = options.fIntegerSupport; fShaderCaps->fFlatInterpolationSupport = options.fFlatInterpolationSupport; fShaderCaps->fMaxVertexSamplers = options.fMaxVertexSamplers; + fShaderCaps->fShaderDerivativeSupport = options.fShaderDerivativeSupport; this->applyOptionsOverrides(contextOptions); }