Index: include/gpu/gl/GrGLInterface.h |
diff --git a/include/gpu/gl/GrGLInterface.h b/include/gpu/gl/GrGLInterface.h |
index cd7c6bdf60db0211afcf87804875eb3cb5dd0b8c..317dd93c80d739ecedd16b5d2039bf05e49ea5b9 100644 |
--- a/include/gpu/gl/GrGLInterface.h |
+++ b/include/gpu/gl/GrGLInterface.h |
@@ -72,7 +72,11 @@ typedef void (*GrGLInterfaceCallbackProc)(const GrGLInterface*); |
typedef intptr_t GrGLInterfaceCallbackData; |
#endif |
-/* |
+/** Function that returns a new interface identical to "interface" but without support for |
+ GL_NV_path_rendering. */ |
+const GrGLInterface* GrGLInterfaceRemoveNVPR(const GrGLInterface* interface); |
+ |
+/** |
* GrContext uses the following interface to make all calls into OpenGL. When a |
* GrContext is created it is given a GrGLInterface. The interface's function |
* pointers must be valid for the OpenGL context associated with the GrContext. |
@@ -112,6 +116,8 @@ public: |
GrGLInterface(); |
+ static GrGLInterface* NewClone(const GrGLInterface*); |
+ |
// Validates that the GrGLInterface supports its advertised standard. This means the necessary |
// function pointers have been initialized for both the GL version and any advertised |
// extensions. |
@@ -358,7 +364,6 @@ public: |
GLPtr<GrGLPointAlongPathProc> fPointAlongPath; |
} fFunctions; |
- |
// Temporary workaround aliases to keep Chromium GrGLInterface factories compiling until they |
// assign the members of fFunctions. |
GLPtrAlias<GrGLActiveTextureProc> fActiveTexture; |