| Index: src/gpu/gl/GrGLInterface.cpp
|
| diff --git a/src/gpu/gl/GrGLInterface.cpp b/src/gpu/gl/GrGLInterface.cpp
|
| index 3c8088005b9285a1ae7cb04abf8ee67aae98e2d9..3d44f6d602c6cfccbae19cee47fe08083c32798c 100644
|
| --- a/src/gpu/gl/GrGLInterface.cpp
|
| +++ b/src/gpu/gl/GrGLInterface.cpp
|
| @@ -40,6 +40,7 @@
|
|
|
| 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;
|
| @@ -50,6 +51,7 @@
|
| 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;
|
| @@ -487,6 +489,7 @@
|
| if (NULL == fFunctions.fMatrixLoadf ||
|
| NULL == fFunctions.fMatrixLoadIdentity ||
|
| NULL == fFunctions.fPathCommands ||
|
| + NULL == fFunctions.fPathCoords ||
|
| NULL == fFunctions.fPathParameteri ||
|
| NULL == fFunctions.fPathParameterf ||
|
| NULL == fFunctions.fGenPaths ||
|
| @@ -500,13 +503,23 @@
|
| NULL == fFunctions.fCoverFillPath ||
|
| NULL == fFunctions.fCoverStrokePath ||
|
| NULL == fFunctions.fCoverFillPathInstanced ||
|
| - NULL == fFunctions.fCoverStrokePathInstanced ||
|
| - NULL == fFunctions.fStencilThenCoverFillPath ||
|
| - NULL == fFunctions.fStencilThenCoverStrokePath ||
|
| - NULL == fFunctions.fStencilThenCoverFillPathInstanced ||
|
| - NULL == fFunctions.fStencilThenCoverStrokePathInstanced ||
|
| - NULL == fFunctions.fProgramPathFragmentInputGen) {
|
| - RETURN_FALSE_INTERFACE
|
| + NULL == fFunctions.fCoverStrokePathInstanced) {
|
| + 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
|
| + }
|
| }
|
| }
|
|
|
|
|