Index: include/gpu/gl/GrGLInterface.h |
diff --git a/include/gpu/gl/GrGLInterface.h b/include/gpu/gl/GrGLInterface.h |
index cd7c6bdf60db0211afcf87804875eb3cb5dd0b8c..f5bcd16682a993d9e174785f7c8bf958fd375ad3 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*); |
+ |
+/** |
* 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; |