Index: src/gpu/gl/GrGLInterface.cpp |
diff --git a/src/gpu/gl/GrGLInterface.cpp b/src/gpu/gl/GrGLInterface.cpp |
index b5da4d3a95982a09c6348d999ca5d419a209b299..fe4e2d461227aa1108b4341fb3230de0929265b0 100644 |
--- a/src/gpu/gl/GrGLInterface.cpp |
+++ b/src/gpu/gl/GrGLInterface.cpp |
@@ -241,6 +241,27 @@ bool GrGLInterface::validate() const { |
NULL == fFunctions.fStencilOpSeparate) { |
RETURN_FALSE_INTERFACE |
} |
+ if (fExtensions.has("GL_CHROMIUM_path_rendering")) { |
+ if (NULL == fFunctions.fMatrixLoadf || |
+ NULL == fFunctions.fMatrixLoadIdentity || |
+ NULL == fFunctions.fPathCommands || |
+ NULL == fFunctions.fPathParameteri || |
+ NULL == fFunctions.fPathParameterf || |
+ NULL == fFunctions.fGenPaths || |
+ NULL == fFunctions.fDeletePaths || |
+ NULL == fFunctions.fPathStencilFunc || |
+ NULL == fFunctions.fStencilFillPath || |
+ NULL == fFunctions.fStencilFillPathInstanced || |
+ NULL == fFunctions.fStencilStrokePath || |
+ NULL == fFunctions.fStencilStrokePathInstanced || |
+ NULL == fFunctions.fPathTexGen || |
+ NULL == fFunctions.fCoverFillPath || |
+ NULL == fFunctions.fCoverFillPathInstanced || |
+ NULL == fFunctions.fCoverStrokePath || |
+ NULL == fFunctions.fCoverStrokePathInstanced) { |
+ return false; |
+ } |
+ } |
} else if (kGL_GrGLStandard == fStandard) { |
if (glVer >= GR_GL_VER(2,0)) { |