| Index: gpu/command_buffer/build_gles2_cmd_buffer.py
|
| ===================================================================
|
| --- gpu/command_buffer/build_gles2_cmd_buffer.py (revision 69969)
|
| +++ gpu/command_buffer/build_gles2_cmd_buffer.py (working copy)
|
| @@ -73,9 +73,9 @@
|
| GL_APICALL void GL_APIENTRY glClearStencil (GLint s);
|
| GL_APICALL void GL_APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
|
| GL_APICALL void GL_APIENTRY glCompileShader (GLidShader shader);
|
| -GL_APICALL void GL_APIENTRY glCompressedTexImage2D (GLenumTextureTarget target, GLint level, GLenumCompressedTextureFormat internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* data);
|
| +GL_APICALL void GL_APIENTRY glCompressedTexImage2D (GLenumTextureTarget target, GLint level, GLenumCompressedTextureFormat internalformat, GLsizei width, GLsizei height, GLintTextureBorder border, GLsizei imageSize, const void* data);
|
| GL_APICALL void GL_APIENTRY glCompressedTexSubImage2D (GLenumTextureTarget target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenumCompressedTextureFormat format, GLsizei imageSize, const void* data);
|
| -GL_APICALL void GL_APIENTRY glCopyTexImage2D (GLenumTextureTarget target, GLint level, GLenumTextureInternalFormat internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
|
| +GL_APICALL void GL_APIENTRY glCopyTexImage2D (GLenumTextureTarget target, GLint level, GLenumTextureInternalFormat internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLintTextureBorder border);
|
| GL_APICALL void GL_APIENTRY glCopyTexSubImage2D (GLenumTextureTarget target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
|
| GL_APICALL GLuint GL_APIENTRY glCreateProgram (void);
|
| GL_APICALL GLuint GL_APIENTRY glCreateShader (GLenumShaderType type);
|
| @@ -99,7 +99,7 @@
|
| GL_APICALL void GL_APIENTRY glFinish (void);
|
| GL_APICALL void GL_APIENTRY glFlush (void);
|
| GL_APICALL void GL_APIENTRY glFramebufferRenderbuffer (GLenumFrameBufferTarget target, GLenumAttachment attachment, GLenumRenderBufferTarget renderbuffertarget, GLidRenderbuffer renderbuffer);
|
| -GL_APICALL void GL_APIENTRY glFramebufferTexture2D (GLenumFrameBufferTarget target, GLenumAttachment attachment, GLenumTextureTarget textarget, GLidTexture texture, GLint level);
|
| +GL_APICALL void GL_APIENTRY glFramebufferTexture2D (GLenumFrameBufferTarget target, GLenumAttachment attachment, GLenumTextureTarget textarget, GLidTexture texture, GLintZeroOnly level);
|
| GL_APICALL void GL_APIENTRY glFrontFace (GLenumFaceMode mode);
|
| GL_APICALL void GL_APIENTRY glGenBuffers (GLsizeiNotNegative n, GLuint* buffers);
|
| GL_APICALL void GL_APIENTRY glGenerateMipmap (GLenumTextureBindTarget target);
|
| @@ -1003,6 +1003,15 @@
|
| '5',
|
| ],
|
| },
|
| + 'ZeroOnly': {
|
| + 'type': 'GLint',
|
| + 'valid': [
|
| + '0',
|
| + ],
|
| + 'invalid': [
|
| + '1',
|
| + ],
|
| + },
|
| 'FalseOnly': {
|
| 'type': 'GLboolean',
|
| 'valid': [
|
| @@ -5312,8 +5321,8 @@
|
| else:
|
| arg = context_arg
|
| file.Write("%s %s(%s) {\n" % (func.return_type, func.name, arg))
|
| -
|
| - file.Write(""" scoped_refptr<PPB_Graphics3D_Impl> graphics_3d =
|
| +
|
| + file.Write(""" scoped_refptr<PPB_Graphics3D_Impl> graphics_3d =
|
| Resource::GetAs<PPB_Graphics3D_Impl>(context);
|
| """)
|
|
|
|
|