aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLAssembleInterface.h
diff options
context:
space:
mode:
authorGravatar kkinnunen <kkinnunen@nvidia.com>2014-06-22 22:56:53 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-06-22 22:56:54 -0700
commit74fc727dc88ee24d89f88cb1709f963e9073aeb3 (patch)
treec1bc9dd2101168a5fbb2b9d523aafac3828c7876 /src/gpu/gl/GrGLAssembleInterface.h
parent32956400b4d8f33394e2cdef9b66e8369ba2a0f3 (diff)
Support using OpenGL ES context on desktop
Support using OpenGL ES context on desktop for unix and Android platforms. This is mainly useful in development. Add --gpuAPI flag to gm, dm, bench, bench_pictures and render_pictures. The possible parameters for the flag are "gl" and "gles". R=bsalomon@google.com, mtklein@google.com, robertphillips@google.com Author: kkinnunen@nvidia.com Review URL: https://codereview.chromium.org/319043005
Diffstat (limited to 'src/gpu/gl/GrGLAssembleInterface.h')
-rw-r--r--src/gpu/gl/GrGLAssembleInterface.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLAssembleInterface.h b/src/gpu/gl/GrGLAssembleInterface.h
index 36a4513447..4bd88367ca 100644
--- a/src/gpu/gl/GrGLAssembleInterface.h
+++ b/src/gpu/gl/GrGLAssembleInterface.h
@@ -16,3 +16,10 @@ typedef GrGLFuncPtr (*GrGLGetProc)(void* ctx, const char name[]);
* 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);