| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file is auto-generated from | 5 // This file is auto-generated from |
| 6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
| 7 // DO NOT EDIT! | 7 // DO NOT EDIT! |
| 8 | 8 |
| 9 // These functions emulate GLES2 over command buffers. | 9 // These functions emulate GLES2 over command buffers. |
| 10 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ | 10 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 GLsizei width, GLsizei height, GLint border) { | 96 GLsizei width, GLsizei height, GLint border) { |
| 97 gles2::GetGLContext()->CopyTexImage2D( | 97 gles2::GetGLContext()->CopyTexImage2D( |
| 98 target, level, internalformat, x, y, width, height, border); | 98 target, level, internalformat, x, y, width, height, border); |
| 99 } | 99 } |
| 100 void GLES2CopyTexSubImage2D( | 100 void GLES2CopyTexSubImage2D( |
| 101 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, | 101 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, |
| 102 GLsizei width, GLsizei height) { | 102 GLsizei width, GLsizei height) { |
| 103 gles2::GetGLContext()->CopyTexSubImage2D( | 103 gles2::GetGLContext()->CopyTexSubImage2D( |
| 104 target, level, xoffset, yoffset, x, y, width, height); | 104 target, level, xoffset, yoffset, x, y, width, height); |
| 105 } | 105 } |
| 106 void GLES2CreateGpuMemoryBuffer2DCHROMIUM( |
| 107 GLuint image_id, GLsizei width, GLsizei height) { |
| 108 gles2::GetGLContext()->CreateGpuMemoryBuffer2DCHROMIUM( |
| 109 image_id, width, height); |
| 110 } |
| 106 GLuint GLES2CreateProgram() { | 111 GLuint GLES2CreateProgram() { |
| 107 return gles2::GetGLContext()->CreateProgram(); | 112 return gles2::GetGLContext()->CreateProgram(); |
| 108 } | 113 } |
| 109 GLuint GLES2CreateShader(GLenum type) { | 114 GLuint GLES2CreateShader(GLenum type) { |
| 110 return gles2::GetGLContext()->CreateShader(type); | 115 return gles2::GetGLContext()->CreateShader(type); |
| 111 } | 116 } |
| 112 void GLES2CullFace(GLenum mode) { | 117 void GLES2CullFace(GLenum mode) { |
| 113 gles2::GetGLContext()->CullFace(mode); | 118 gles2::GetGLContext()->CullFace(mode); |
| 114 } | 119 } |
| 115 void GLES2DeleteBuffers(GLsizei n, const GLuint* buffers) { | 120 void GLES2DeleteBuffers(GLsizei n, const GLuint* buffers) { |
| 116 gles2::GetGLContext()->DeleteBuffers(n, buffers); | 121 gles2::GetGLContext()->DeleteBuffers(n, buffers); |
| 117 } | 122 } |
| 118 void GLES2DeleteFramebuffers(GLsizei n, const GLuint* framebuffers) { | 123 void GLES2DeleteFramebuffers(GLsizei n, const GLuint* framebuffers) { |
| 119 gles2::GetGLContext()->DeleteFramebuffers(n, framebuffers); | 124 gles2::GetGLContext()->DeleteFramebuffers(n, framebuffers); |
| 120 } | 125 } |
| 126 void GLES2DeleteImageBuffers(GLsizei n, const GLuint* imagebuffers) { |
| 127 gles2::GetGLContext()->DeleteImageBuffers(n, imagebuffers); |
| 128 } |
| 121 void GLES2DeleteProgram(GLuint program) { | 129 void GLES2DeleteProgram(GLuint program) { |
| 122 gles2::GetGLContext()->DeleteProgram(program); | 130 gles2::GetGLContext()->DeleteProgram(program); |
| 123 } | 131 } |
| 124 void GLES2DeleteRenderbuffers(GLsizei n, const GLuint* renderbuffers) { | 132 void GLES2DeleteRenderbuffers(GLsizei n, const GLuint* renderbuffers) { |
| 125 gles2::GetGLContext()->DeleteRenderbuffers(n, renderbuffers); | 133 gles2::GetGLContext()->DeleteRenderbuffers(n, renderbuffers); |
| 126 } | 134 } |
| 127 void GLES2DeleteShader(GLuint shader) { | 135 void GLES2DeleteShader(GLuint shader) { |
| 128 gles2::GetGLContext()->DeleteShader(shader); | 136 gles2::GetGLContext()->DeleteShader(shader); |
| 129 } | 137 } |
| 130 void GLES2DeleteTextures(GLsizei n, const GLuint* textures) { | 138 void GLES2DeleteTextures(GLsizei n, const GLuint* textures) { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 } | 195 } |
| 188 void GLES2GenBuffers(GLsizei n, GLuint* buffers) { | 196 void GLES2GenBuffers(GLsizei n, GLuint* buffers) { |
| 189 gles2::GetGLContext()->GenBuffers(n, buffers); | 197 gles2::GetGLContext()->GenBuffers(n, buffers); |
| 190 } | 198 } |
| 191 void GLES2GenerateMipmap(GLenum target) { | 199 void GLES2GenerateMipmap(GLenum target) { |
| 192 gles2::GetGLContext()->GenerateMipmap(target); | 200 gles2::GetGLContext()->GenerateMipmap(target); |
| 193 } | 201 } |
| 194 void GLES2GenFramebuffers(GLsizei n, GLuint* framebuffers) { | 202 void GLES2GenFramebuffers(GLsizei n, GLuint* framebuffers) { |
| 195 gles2::GetGLContext()->GenFramebuffers(n, framebuffers); | 203 gles2::GetGLContext()->GenFramebuffers(n, framebuffers); |
| 196 } | 204 } |
| 205 void GLES2GenImageBuffers(GLsizei n, GLuint* imagebuffers) { |
| 206 gles2::GetGLContext()->GenImageBuffers(n, imagebuffers); |
| 207 } |
| 197 void GLES2GenRenderbuffers(GLsizei n, GLuint* renderbuffers) { | 208 void GLES2GenRenderbuffers(GLsizei n, GLuint* renderbuffers) { |
| 198 gles2::GetGLContext()->GenRenderbuffers(n, renderbuffers); | 209 gles2::GetGLContext()->GenRenderbuffers(n, renderbuffers); |
| 199 } | 210 } |
| 200 void GLES2GenTextures(GLsizei n, GLuint* textures) { | 211 void GLES2GenTextures(GLsizei n, GLuint* textures) { |
| 201 gles2::GetGLContext()->GenTextures(n, textures); | 212 gles2::GetGLContext()->GenTextures(n, textures); |
| 202 } | 213 } |
| 203 void GLES2GetActiveAttrib( | 214 void GLES2GetActiveAttrib( |
| 204 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, | 215 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, |
| 205 GLenum* type, char* name) { | 216 GLenum* type, char* name) { |
| 206 gles2::GetGLContext()->GetActiveAttrib( | 217 gles2::GetGLContext()->GetActiveAttrib( |
| (...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 769 { "glCompileShader", reinterpret_cast<GLES2FunctionPointer>( | 780 { "glCompileShader", reinterpret_cast<GLES2FunctionPointer>( |
| 770 glCompileShader), }, | 781 glCompileShader), }, |
| 771 { "glCompressedTexImage2D", reinterpret_cast<GLES2FunctionPointer>( | 782 { "glCompressedTexImage2D", reinterpret_cast<GLES2FunctionPointer>( |
| 772 glCompressedTexImage2D), }, | 783 glCompressedTexImage2D), }, |
| 773 { "glCompressedTexSubImage2D", reinterpret_cast<GLES2FunctionPointer>( | 784 { "glCompressedTexSubImage2D", reinterpret_cast<GLES2FunctionPointer>( |
| 774 glCompressedTexSubImage2D), }, | 785 glCompressedTexSubImage2D), }, |
| 775 { "glCopyTexImage2D", reinterpret_cast<GLES2FunctionPointer>( | 786 { "glCopyTexImage2D", reinterpret_cast<GLES2FunctionPointer>( |
| 776 glCopyTexImage2D), }, | 787 glCopyTexImage2D), }, |
| 777 { "glCopyTexSubImage2D", reinterpret_cast<GLES2FunctionPointer>( | 788 { "glCopyTexSubImage2D", reinterpret_cast<GLES2FunctionPointer>( |
| 778 glCopyTexSubImage2D), }, | 789 glCopyTexSubImage2D), }, |
| 790 { "glCreateGpuMemoryBuffer2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
| 791 glCreateGpuMemoryBuffer2DCHROMIUM), }, |
| 779 { "glCreateProgram", reinterpret_cast<GLES2FunctionPointer>( | 792 { "glCreateProgram", reinterpret_cast<GLES2FunctionPointer>( |
| 780 glCreateProgram), }, | 793 glCreateProgram), }, |
| 781 { "glCreateShader", reinterpret_cast<GLES2FunctionPointer>( | 794 { "glCreateShader", reinterpret_cast<GLES2FunctionPointer>( |
| 782 glCreateShader), }, | 795 glCreateShader), }, |
| 783 { "glCullFace", reinterpret_cast<GLES2FunctionPointer>(glCullFace), }, | 796 { "glCullFace", reinterpret_cast<GLES2FunctionPointer>(glCullFace), }, |
| 784 { "glDeleteBuffers", reinterpret_cast<GLES2FunctionPointer>( | 797 { "glDeleteBuffers", reinterpret_cast<GLES2FunctionPointer>( |
| 785 glDeleteBuffers), }, | 798 glDeleteBuffers), }, |
| 786 { "glDeleteFramebuffers", reinterpret_cast<GLES2FunctionPointer>( | 799 { "glDeleteFramebuffers", reinterpret_cast<GLES2FunctionPointer>( |
| 787 glDeleteFramebuffers), }, | 800 glDeleteFramebuffers), }, |
| 801 { "glDeleteImageBuffers", reinterpret_cast<GLES2FunctionPointer>( |
| 802 glDeleteImageBuffers), }, |
| 788 { "glDeleteProgram", reinterpret_cast<GLES2FunctionPointer>( | 803 { "glDeleteProgram", reinterpret_cast<GLES2FunctionPointer>( |
| 789 glDeleteProgram), }, | 804 glDeleteProgram), }, |
| 790 { "glDeleteRenderbuffers", reinterpret_cast<GLES2FunctionPointer>( | 805 { "glDeleteRenderbuffers", reinterpret_cast<GLES2FunctionPointer>( |
| 791 glDeleteRenderbuffers), }, | 806 glDeleteRenderbuffers), }, |
| 792 { "glDeleteShader", reinterpret_cast<GLES2FunctionPointer>( | 807 { "glDeleteShader", reinterpret_cast<GLES2FunctionPointer>( |
| 793 glDeleteShader), }, | 808 glDeleteShader), }, |
| 794 { "glDeleteTextures", reinterpret_cast<GLES2FunctionPointer>( | 809 { "glDeleteTextures", reinterpret_cast<GLES2FunctionPointer>( |
| 795 glDeleteTextures), }, | 810 glDeleteTextures), }, |
| 796 { "glDepthFunc", reinterpret_cast<GLES2FunctionPointer>(glDepthFunc), }, | 811 { "glDepthFunc", reinterpret_cast<GLES2FunctionPointer>(glDepthFunc), }, |
| 797 { "glDepthMask", reinterpret_cast<GLES2FunctionPointer>(glDepthMask), }, | 812 { "glDepthMask", reinterpret_cast<GLES2FunctionPointer>(glDepthMask), }, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 814 { "glFramebufferRenderbuffer", reinterpret_cast<GLES2FunctionPointer>( | 829 { "glFramebufferRenderbuffer", reinterpret_cast<GLES2FunctionPointer>( |
| 815 glFramebufferRenderbuffer), }, | 830 glFramebufferRenderbuffer), }, |
| 816 { "glFramebufferTexture2D", reinterpret_cast<GLES2FunctionPointer>( | 831 { "glFramebufferTexture2D", reinterpret_cast<GLES2FunctionPointer>( |
| 817 glFramebufferTexture2D), }, | 832 glFramebufferTexture2D), }, |
| 818 { "glFrontFace", reinterpret_cast<GLES2FunctionPointer>(glFrontFace), }, | 833 { "glFrontFace", reinterpret_cast<GLES2FunctionPointer>(glFrontFace), }, |
| 819 { "glGenBuffers", reinterpret_cast<GLES2FunctionPointer>(glGenBuffers), }, | 834 { "glGenBuffers", reinterpret_cast<GLES2FunctionPointer>(glGenBuffers), }, |
| 820 { "glGenerateMipmap", reinterpret_cast<GLES2FunctionPointer>( | 835 { "glGenerateMipmap", reinterpret_cast<GLES2FunctionPointer>( |
| 821 glGenerateMipmap), }, | 836 glGenerateMipmap), }, |
| 822 { "glGenFramebuffers", reinterpret_cast<GLES2FunctionPointer>( | 837 { "glGenFramebuffers", reinterpret_cast<GLES2FunctionPointer>( |
| 823 glGenFramebuffers), }, | 838 glGenFramebuffers), }, |
| 839 { "glGenImageBuffers", reinterpret_cast<GLES2FunctionPointer>( |
| 840 glGenImageBuffers), }, |
| 824 { "glGenRenderbuffers", reinterpret_cast<GLES2FunctionPointer>( | 841 { "glGenRenderbuffers", reinterpret_cast<GLES2FunctionPointer>( |
| 825 glGenRenderbuffers), }, | 842 glGenRenderbuffers), }, |
| 826 { "glGenTextures", reinterpret_cast<GLES2FunctionPointer>(glGenTextures), }, | 843 { "glGenTextures", reinterpret_cast<GLES2FunctionPointer>(glGenTextures), }, |
| 827 { "glGetActiveAttrib", reinterpret_cast<GLES2FunctionPointer>( | 844 { "glGetActiveAttrib", reinterpret_cast<GLES2FunctionPointer>( |
| 828 glGetActiveAttrib), }, | 845 glGetActiveAttrib), }, |
| 829 { "glGetActiveUniform", reinterpret_cast<GLES2FunctionPointer>( | 846 { "glGetActiveUniform", reinterpret_cast<GLES2FunctionPointer>( |
| 830 glGetActiveUniform), }, | 847 glGetActiveUniform), }, |
| 831 { "glGetAttachedShaders", reinterpret_cast<GLES2FunctionPointer>( | 848 { "glGetAttachedShaders", reinterpret_cast<GLES2FunctionPointer>( |
| 832 glGetAttachedShaders), }, | 849 glGetAttachedShaders), }, |
| 833 { "glGetAttribLocation", reinterpret_cast<GLES2FunctionPointer>( | 850 { "glGetAttribLocation", reinterpret_cast<GLES2FunctionPointer>( |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1073 { "glWaitSyncPointCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1090 { "glWaitSyncPointCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
| 1074 glWaitSyncPointCHROMIUM), }, | 1091 glWaitSyncPointCHROMIUM), }, |
| 1075 { "glDrawBuffersEXT", reinterpret_cast<GLES2FunctionPointer>( | 1092 { "glDrawBuffersEXT", reinterpret_cast<GLES2FunctionPointer>( |
| 1076 glDrawBuffersEXT), }, | 1093 glDrawBuffersEXT), }, |
| 1077 { NULL, NULL, }, | 1094 { NULL, NULL, }, |
| 1078 }; | 1095 }; |
| 1079 | 1096 |
| 1080 } // namespace gles2 | 1097 } // namespace gles2 |
| 1081 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ | 1098 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ |
| 1082 | 1099 |
| OLD | NEW |