diff options
author | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-26 19:39:20 +0000 |
---|---|---|
committer | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-26 19:39:20 +0000 |
commit | 2416c5697575c682f30c542ebef908892b09cdae (patch) | |
tree | a184f16832aecdde32a631d012456173988fbc02 /app/gfx | |
parent | 37fcf26645d37eb47f7b7d08cca28fb43279f092 (diff) | |
download | chromium_src-2416c5697575c682f30c542ebef908892b09cdae.zip chromium_src-2416c5697575c682f30c542ebef908892b09cdae.tar.gz chromium_src-2416c5697575c682f30c542ebef908892b09cdae.tar.bz2 |
Exposed GL_NV_fence bindings to GPU process.
TEST=try, call GL_NV_fence functions
BUG=none
Review URL: http://codereview.chromium.org/6313013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72667 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/gfx')
-rw-r--r-- | app/gfx/gl/generate_bindings.py | 7 | ||||
-rw-r--r-- | app/gfx/gl/gl_interface.h | 14 |
2 files changed, 21 insertions, 0 deletions
diff --git a/app/gfx/gl/generate_bindings.py b/app/gfx/gl/generate_bindings.py index 0bfb5c7..1e8e47a 100644 --- a/app/gfx/gl/generate_bindings.py +++ b/app/gfx/gl/generate_bindings.py @@ -242,6 +242,13 @@ GL_FUNCTIONS = [ 'GLuint indx, GLint size, GLenum type, GLboolean normalized, ' 'GLsizei stride, const void* ptr'], ['void', ['glViewport'], 'GLint x, GLint y, GLsizei width, GLsizei height'], +['void', ['glGenFencesNV'], 'GLsizei n, GLuint* fences'], +['void', ['glDeleteFencesNV'], 'GLsizei n, const GLuint* fences'], +['void', ['glSetFenceNV'], 'GLuint fence, GLenum condition'], +['GLboolean', ['glTestFenceNV'], 'GLuint fence'], +['void', ['glFinishFenceNV'], 'GLuint fence'], +['GLboolean', ['glIsFenceNV'], 'GLuint fence'], +['void', ['glGetFenceivNV'], 'GLuint fence, GLenum pname, GLint* params'], ] OSMESA_FUNCTIONS = [ diff --git a/app/gfx/gl/gl_interface.h b/app/gfx/gl/gl_interface.h index f4c6025..b26acb1 100644 --- a/app/gfx/gl/gl_interface.h +++ b/app/gfx/gl/gl_interface.h @@ -409,6 +409,20 @@ class GLInterface { virtual GLuint GetMaxValueInBufferCHROMIUM( GLuint buffer_id, GLsizei count, GLenum type, GLuint offset) = 0; + virtual void GenFencesNV(GLsizei n, GLuint *fences) = 0; + + virtual void DeleteFencesNV(GLsizei n, const GLuint *fences) = 0; + + virtual void SetFenceNV(GLuint fence, GLenum condition) = 0; + + virtual GLboolean TestFenceNV(GLuint fence) = 0; + + virtual void FinishFenceNV(GLuint fence) = 0; + + virtual GLboolean IsFenceNV(GLuint fence) = 0; + + virtual void GetFenceivNV(GLuint fence, GLenum pname, GLint *params) = 0; + private: static GLInterface* interface_; }; |