diff options
author | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-09 22:06:15 +0000 |
---|---|---|
committer | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-09 22:06:15 +0000 |
commit | b9363b2794c6f287be68eebb361117cdfbf060ca (patch) | |
tree | 74408c31f3920ae183663b0f16e633349805798e /app/gfx/gl/gl_context.h | |
parent | c8c9712650efaa201c97ad6ff4edb6aa092dfd17 (diff) | |
download | chromium_src-b9363b2794c6f287be68eebb361117cdfbf060ca.zip chromium_src-b9363b2794c6f287be68eebb361117cdfbf060ca.tar.gz chromium_src-b9363b2794c6f287be68eebb361117cdfbf060ca.tar.bz2 |
Added EGL based GLContext.
Python script to generate code to dynamically bind to GL functions (native GL, OSMesa, EGL or mock GL for unit tests). This replaces GLEW because GLEW doesn't bind to the GLES dialect of GL.
Moved the mock GL code into app/gfx/gl.
Updated the GPU code and AcceleratedSurface to use the new GL bindings.
TEST=trybots
BUG=none
Review URL: http://codereview.chromium.org/2134006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49332 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/gfx/gl/gl_context.h')
-rw-r--r-- | app/gfx/gl/gl_context.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/gfx/gl/gl_context.h b/app/gfx/gl/gl_context.h index 2a9b3df..1b04985 100644 --- a/app/gfx/gl/gl_context.h +++ b/app/gfx/gl/gl_context.h @@ -12,8 +12,6 @@ namespace gfx { -bool InitializeGLEW(); - // Encapsulates an OpenGL context, hiding platform specific management. class GLContext { public: @@ -50,7 +48,7 @@ class GLContext { // Create a GL context used for offscreen rendering. It is initially backed by // a 1x1 pbuffer. Use it to create an FBO to do useful rendering. - static GLContext* CreateOffscreenGLContext(void* shared_handle); + static GLContext* CreateOffscreenGLContext(GLContext* shared_context); protected: bool InitializeCommon(); |