diff options
author | 2015-07-01 02:58:50 -0700 | |
---|---|---|
committer | 2015-07-01 02:58:50 -0700 | |
commit | cfe62e30848eadead4358b0385e57723779b762b (patch) | |
tree | 7533c4b227742f1f568464be8c6b7549c7c2cac6 /src/gpu/gl/GrGLInterface.cpp | |
parent | 19fb80ed14efbe9762d417fe183def089fa7cb6c (diff) |
Cleanup legacy NVPR-related definitions
Fixed-function NVPR codepaths were removed a while ago. Only NVPR API
version 1.3 (PathFragmentInputGen) was left working. Remove
backwards-compatibility code that was left behind.
Remove some NVPR API function typedefs that were left from initial
commits.
Remove PathCoords function pointer from GrGLInterface, it has
never been called and causes problems in the future, since it will
not be implemented in the Chromium pseudo extension.
Avoid failing interface creation even if nvprmsaaXX config is
requested but the driver is not recent enough. The SAN bots have
old driver, but try to run nvprmsaa16 configs. Instead, print
out a warning.
Committed: https://skia.googlesource.com/skia/+/fb8d6884e0e01d0c2f8596adf5af1efb0d08de7e
Committed: https://skia.googlesource.com/skia/+/e35b5d99d8dfcc6b2be844df28cba47436380809
Review URL: https://codereview.chromium.org/1177243004
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")) { |