diff options
Diffstat (limited to 'src/gpu/gl/GrGLInterface.cpp')
-rw-r--r-- | src/gpu/gl/GrGLInterface.cpp | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/src/gpu/gl/GrGLInterface.cpp b/src/gpu/gl/GrGLInterface.cpp index 3d44f6d602..56f1e59275 100644 --- a/src/gpu/gl/GrGLInterface.cpp +++ b/src/gpu/gl/GrGLInterface.cpp @@ -40,7 +40,6 @@ const GrGLInterface* GrGLInterfaceRemoveNVPR(const GrGLInterface* interface) { newInterface->fExtensions.remove("GL_NV_path_rendering"); newInterface->fFunctions.fPathCommands = NULL; - newInterface->fFunctions.fPathCoords = NULL; newInterface->fFunctions.fPathParameteri = NULL; newInterface->fFunctions.fPathParameterf = NULL; newInterface->fFunctions.fGenPaths = NULL; @@ -51,7 +50,6 @@ const GrGLInterface* GrGLInterfaceRemoveNVPR(const GrGLInterface* interface) { newInterface->fFunctions.fStencilStrokePath = NULL; newInterface->fFunctions.fStencilFillPathInstanced = NULL; newInterface->fFunctions.fStencilStrokePathInstanced = NULL; - newInterface->fFunctions.fPathTexGen = NULL; newInterface->fFunctions.fCoverFillPath = NULL; newInterface->fFunctions.fCoverStrokePath = NULL; newInterface->fFunctions.fCoverFillPathInstanced = NULL; @@ -489,7 +487,6 @@ bool GrGLInterface::validate() const { if (NULL == fFunctions.fMatrixLoadf || NULL == fFunctions.fMatrixLoadIdentity || NULL == fFunctions.fPathCommands || - NULL == fFunctions.fPathCoords || NULL == fFunctions.fPathParameteri || NULL == fFunctions.fPathParameterf || NULL == fFunctions.fGenPaths || @@ -503,24 +500,21 @@ bool GrGLInterface::validate() const { NULL == fFunctions.fCoverFillPath || NULL == fFunctions.fCoverStrokePath || NULL == fFunctions.fCoverFillPathInstanced || - NULL == fFunctions.fCoverStrokePathInstanced) { + NULL == fFunctions.fCoverStrokePathInstanced +#if 0 + // List of functions that Skia uses, but which have been added since the initial release + // of NV_path_rendering driver. We do not want to fail interface validation due to + // missing features, we will just not use the extension. + // Update this list -> update GrGLCaps::hasPathRenderingSupport too. + || NULL == fFunctions.fStencilThenCoverFillPath || + NULL == fFunctions.fStencilThenCoverStrokePath || + NULL == fFunctions.fStencilThenCoverFillPathInstanced || + NULL == fFunctions.fStencilThenCoverStrokePathInstanced || + NULL == fFunctions.fProgramPathFragmentInputGen +#endif + ) { RETURN_FALSE_INTERFACE } - if (kGL_GrGLStandard == fStandard) { - // Some methods only exist on desktop - if (NULL == fFunctions.fPathTexGen) { - RETURN_FALSE_INTERFACE - } - } else { - // All additions through v1.3 exist on GLES - if (NULL == fFunctions.fStencilThenCoverFillPath || - NULL == fFunctions.fStencilThenCoverStrokePath || - NULL == fFunctions.fStencilThenCoverFillPathInstanced || - NULL == fFunctions.fStencilThenCoverStrokePathInstanced || - NULL == fFunctions.fProgramPathFragmentInputGen) { - RETURN_FALSE_INTERFACE - } - } } if (fExtensions.has("GL_EXT_raster_multisample")) { |