aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLAssembleInterface.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-08-26 11:35:23 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-08-26 11:35:23 -0700
commita721c8167222a0b2b442a00052104b2a78ab93e5 (patch)
tree136617d5b26eb4674baa653b3b50028ebd9c9080 /src/gpu/gl/GrGLAssembleInterface.h
parent6a9c7b1dbdd4cfa36a006a8c7cf2effd3ffe862e (diff)
Remove reliance on linked in GL functions for assembling GLES interfaces.
Make Android pull in gl2.h directly to workaround broken eglGetProcAddress for unextended GLES2 functions. Use interface assembler for angle and iOS. R=robertphillips@google.com Author: bsalomon@google.com Review URL: https://codereview.chromium.org/500153002
Diffstat (limited to 'src/gpu/gl/GrGLAssembleInterface.h')
-rw-r--r--src/gpu/gl/GrGLAssembleInterface.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLAssembleInterface.h b/src/gpu/gl/GrGLAssembleInterface.h
index 36a4513447..aa0fbcadd5 100644
--- a/src/gpu/gl/GrGLAssembleInterface.h
+++ b/src/gpu/gl/GrGLAssembleInterface.h
@@ -11,8 +11,22 @@
typedef void(*GrGLFuncPtr)();
typedef GrGLFuncPtr (*GrGLGetProc)(void* ctx, const char name[]);
+
+/**
+ * Generic function for creating a GrGLInterface for an either OpenGL or GLES. It calls
+ * get() to get each function address. ctx is a generic ptr passed to and interpreted by get().
+ */
+const GrGLInterface* GrGLAssembleInterface(void* ctx, GrGLGetProc get);
+
/**
* Generic function for creating a GrGLInterface for an OpenGL (but not GLES) context. It calls
* get() to get each function address. ctx is a generic ptr passed to and interpreted by get().
*/
const GrGLInterface* GrGLAssembleGLInterface(void* ctx, GrGLGetProc get);
+
+/**
+ * Generic function for creating a GrGLInterface for an OpenGL ES (but not Open GL) context. It
+ * calls get() to get each function address. ctx is a generic ptr passed to and interpreted by
+ * get().
+ */
+const GrGLInterface* GrGLAssembleGLESInterface(void* ctx, GrGLGetProc get);