Added grv@ and dvh@ as owners of developer private API.
[chromium-blink-merge.git] / gpu / command_buffer / client / gles2_c_lib_autogen.h
blob717604dcb712476ed45a4cbbdd00ac84649543d8
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // DO NOT EDIT!
9 // These functions emulate GLES2 over command buffers.
10 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_
11 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_
13 void GLES2ActiveTexture(GLenum texture) {
14 gles2::GetGLContext()->ActiveTexture(texture);
16 void GLES2AttachShader(GLuint program, GLuint shader) {
17 gles2::GetGLContext()->AttachShader(program, shader);
19 void GLES2BindAttribLocation(GLuint program, GLuint index, const char* name) {
20 gles2::GetGLContext()->BindAttribLocation(program, index, name);
22 void GLES2BindBuffer(GLenum target, GLuint buffer) {
23 gles2::GetGLContext()->BindBuffer(target, buffer);
25 void GLES2BindFramebuffer(GLenum target, GLuint framebuffer) {
26 gles2::GetGLContext()->BindFramebuffer(target, framebuffer);
28 void GLES2BindRenderbuffer(GLenum target, GLuint renderbuffer) {
29 gles2::GetGLContext()->BindRenderbuffer(target, renderbuffer);
31 void GLES2BindTexture(GLenum target, GLuint texture) {
32 gles2::GetGLContext()->BindTexture(target, texture);
34 void GLES2BlendColor(
35 GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) {
36 gles2::GetGLContext()->BlendColor(red, green, blue, alpha);
38 void GLES2BlendEquation(GLenum mode) {
39 gles2::GetGLContext()->BlendEquation(mode);
41 void GLES2BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) {
42 gles2::GetGLContext()->BlendEquationSeparate(modeRGB, modeAlpha);
44 void GLES2BlendFunc(GLenum sfactor, GLenum dfactor) {
45 gles2::GetGLContext()->BlendFunc(sfactor, dfactor);
47 void GLES2BlendFuncSeparate(
48 GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) {
49 gles2::GetGLContext()->BlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
51 void GLES2BufferData(
52 GLenum target, GLsizeiptr size, const void* data, GLenum usage) {
53 gles2::GetGLContext()->BufferData(target, size, data, usage);
55 void GLES2BufferSubData(
56 GLenum target, GLintptr offset, GLsizeiptr size, const void* data) {
57 gles2::GetGLContext()->BufferSubData(target, offset, size, data);
59 GLenum GLES2CheckFramebufferStatus(GLenum target) {
60 return gles2::GetGLContext()->CheckFramebufferStatus(target);
62 void GLES2Clear(GLbitfield mask) {
63 gles2::GetGLContext()->Clear(mask);
65 void GLES2ClearColor(
66 GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) {
67 gles2::GetGLContext()->ClearColor(red, green, blue, alpha);
69 void GLES2ClearDepthf(GLclampf depth) {
70 gles2::GetGLContext()->ClearDepthf(depth);
72 void GLES2ClearStencil(GLint s) {
73 gles2::GetGLContext()->ClearStencil(s);
75 void GLES2ColorMask(
76 GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) {
77 gles2::GetGLContext()->ColorMask(red, green, blue, alpha);
79 void GLES2CompileShader(GLuint shader) {
80 gles2::GetGLContext()->CompileShader(shader);
82 void GLES2CompressedTexImage2D(
83 GLenum target, GLint level, GLenum internalformat, GLsizei width,
84 GLsizei height, GLint border, GLsizei imageSize, const void* data) {
85 gles2::GetGLContext()->CompressedTexImage2D(
86 target, level, internalformat, width, height, border, imageSize, data);
88 void GLES2CompressedTexSubImage2D(
89 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
90 GLsizei height, GLenum format, GLsizei imageSize, const void* data) {
91 gles2::GetGLContext()->CompressedTexSubImage2D(
92 target, level, xoffset, yoffset, width, height, format, imageSize, data);
94 void GLES2CopyTexImage2D(
95 GLenum target, GLint level, GLenum internalformat, GLint x, GLint y,
96 GLsizei width, GLsizei height, GLint border) {
97 gles2::GetGLContext()->CopyTexImage2D(
98 target, level, internalformat, x, y, width, height, border);
100 void GLES2CopyTexSubImage2D(
101 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y,
102 GLsizei width, GLsizei height) {
103 gles2::GetGLContext()->CopyTexSubImage2D(
104 target, level, xoffset, yoffset, x, y, width, height);
106 GLuint GLES2CreateProgram() {
107 return gles2::GetGLContext()->CreateProgram();
109 GLuint GLES2CreateShader(GLenum type) {
110 return gles2::GetGLContext()->CreateShader(type);
112 void GLES2CullFace(GLenum mode) {
113 gles2::GetGLContext()->CullFace(mode);
115 void GLES2DeleteBuffers(GLsizei n, const GLuint* buffers) {
116 gles2::GetGLContext()->DeleteBuffers(n, buffers);
118 void GLES2DeleteFramebuffers(GLsizei n, const GLuint* framebuffers) {
119 gles2::GetGLContext()->DeleteFramebuffers(n, framebuffers);
121 void GLES2DeleteProgram(GLuint program) {
122 gles2::GetGLContext()->DeleteProgram(program);
124 void GLES2DeleteRenderbuffers(GLsizei n, const GLuint* renderbuffers) {
125 gles2::GetGLContext()->DeleteRenderbuffers(n, renderbuffers);
127 void GLES2DeleteShader(GLuint shader) {
128 gles2::GetGLContext()->DeleteShader(shader);
130 void GLES2DeleteTextures(GLsizei n, const GLuint* textures) {
131 gles2::GetGLContext()->DeleteTextures(n, textures);
133 void GLES2DepthFunc(GLenum func) {
134 gles2::GetGLContext()->DepthFunc(func);
136 void GLES2DepthMask(GLboolean flag) {
137 gles2::GetGLContext()->DepthMask(flag);
139 void GLES2DepthRangef(GLclampf zNear, GLclampf zFar) {
140 gles2::GetGLContext()->DepthRangef(zNear, zFar);
142 void GLES2DetachShader(GLuint program, GLuint shader) {
143 gles2::GetGLContext()->DetachShader(program, shader);
145 void GLES2Disable(GLenum cap) {
146 gles2::GetGLContext()->Disable(cap);
148 void GLES2DisableVertexAttribArray(GLuint index) {
149 gles2::GetGLContext()->DisableVertexAttribArray(index);
151 void GLES2DrawArrays(GLenum mode, GLint first, GLsizei count) {
152 gles2::GetGLContext()->DrawArrays(mode, first, count);
154 void GLES2DrawElements(
155 GLenum mode, GLsizei count, GLenum type, const void* indices) {
156 gles2::GetGLContext()->DrawElements(mode, count, type, indices);
158 void GLES2Enable(GLenum cap) {
159 gles2::GetGLContext()->Enable(cap);
161 void GLES2EnableVertexAttribArray(GLuint index) {
162 gles2::GetGLContext()->EnableVertexAttribArray(index);
164 void GLES2Finish() {
165 gles2::GetGLContext()->Finish();
167 void GLES2Flush() {
168 gles2::GetGLContext()->Flush();
170 void GLES2FramebufferRenderbuffer(
171 GLenum target, GLenum attachment, GLenum renderbuffertarget,
172 GLuint renderbuffer) {
173 gles2::GetGLContext()->FramebufferRenderbuffer(
174 target, attachment, renderbuffertarget, renderbuffer);
176 void GLES2FramebufferTexture2D(
177 GLenum target, GLenum attachment, GLenum textarget, GLuint texture,
178 GLint level) {
179 gles2::GetGLContext()->FramebufferTexture2D(
180 target, attachment, textarget, texture, level);
182 void GLES2FrontFace(GLenum mode) {
183 gles2::GetGLContext()->FrontFace(mode);
185 void GLES2GenBuffers(GLsizei n, GLuint* buffers) {
186 gles2::GetGLContext()->GenBuffers(n, buffers);
188 void GLES2GenerateMipmap(GLenum target) {
189 gles2::GetGLContext()->GenerateMipmap(target);
191 void GLES2GenFramebuffers(GLsizei n, GLuint* framebuffers) {
192 gles2::GetGLContext()->GenFramebuffers(n, framebuffers);
194 void GLES2GenRenderbuffers(GLsizei n, GLuint* renderbuffers) {
195 gles2::GetGLContext()->GenRenderbuffers(n, renderbuffers);
197 void GLES2GenTextures(GLsizei n, GLuint* textures) {
198 gles2::GetGLContext()->GenTextures(n, textures);
200 void GLES2GetActiveAttrib(
201 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size,
202 GLenum* type, char* name) {
203 gles2::GetGLContext()->GetActiveAttrib(
204 program, index, bufsize, length, size, type, name);
206 void GLES2GetActiveUniform(
207 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size,
208 GLenum* type, char* name) {
209 gles2::GetGLContext()->GetActiveUniform(
210 program, index, bufsize, length, size, type, name);
212 void GLES2GetAttachedShaders(
213 GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) {
214 gles2::GetGLContext()->GetAttachedShaders(program, maxcount, count, shaders);
216 GLint GLES2GetAttribLocation(GLuint program, const char* name) {
217 return gles2::GetGLContext()->GetAttribLocation(program, name);
219 void GLES2GetBooleanv(GLenum pname, GLboolean* params) {
220 gles2::GetGLContext()->GetBooleanv(pname, params);
222 void GLES2GetBufferParameteriv(GLenum target, GLenum pname, GLint* params) {
223 gles2::GetGLContext()->GetBufferParameteriv(target, pname, params);
225 GLenum GLES2GetError() {
226 return gles2::GetGLContext()->GetError();
228 void GLES2GetFloatv(GLenum pname, GLfloat* params) {
229 gles2::GetGLContext()->GetFloatv(pname, params);
231 void GLES2GetFramebufferAttachmentParameteriv(
232 GLenum target, GLenum attachment, GLenum pname, GLint* params) {
233 gles2::GetGLContext()->GetFramebufferAttachmentParameteriv(
234 target, attachment, pname, params);
236 void GLES2GetIntegerv(GLenum pname, GLint* params) {
237 gles2::GetGLContext()->GetIntegerv(pname, params);
239 void GLES2GetProgramiv(GLuint program, GLenum pname, GLint* params) {
240 gles2::GetGLContext()->GetProgramiv(program, pname, params);
242 void GLES2GetProgramInfoLog(
243 GLuint program, GLsizei bufsize, GLsizei* length, char* infolog) {
244 gles2::GetGLContext()->GetProgramInfoLog(program, bufsize, length, infolog);
246 void GLES2GetRenderbufferParameteriv(
247 GLenum target, GLenum pname, GLint* params) {
248 gles2::GetGLContext()->GetRenderbufferParameteriv(target, pname, params);
250 void GLES2GetShaderiv(GLuint shader, GLenum pname, GLint* params) {
251 gles2::GetGLContext()->GetShaderiv(shader, pname, params);
253 void GLES2GetShaderInfoLog(
254 GLuint shader, GLsizei bufsize, GLsizei* length, char* infolog) {
255 gles2::GetGLContext()->GetShaderInfoLog(shader, bufsize, length, infolog);
257 void GLES2GetShaderPrecisionFormat(
258 GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision) {
259 gles2::GetGLContext()->GetShaderPrecisionFormat(
260 shadertype, precisiontype, range, precision);
262 void GLES2GetShaderSource(
263 GLuint shader, GLsizei bufsize, GLsizei* length, char* source) {
264 gles2::GetGLContext()->GetShaderSource(shader, bufsize, length, source);
266 const GLubyte* GLES2GetString(GLenum name) {
267 return gles2::GetGLContext()->GetString(name);
269 void GLES2GetTexParameterfv(GLenum target, GLenum pname, GLfloat* params) {
270 gles2::GetGLContext()->GetTexParameterfv(target, pname, params);
272 void GLES2GetTexParameteriv(GLenum target, GLenum pname, GLint* params) {
273 gles2::GetGLContext()->GetTexParameteriv(target, pname, params);
275 void GLES2GetUniformfv(GLuint program, GLint location, GLfloat* params) {
276 gles2::GetGLContext()->GetUniformfv(program, location, params);
278 void GLES2GetUniformiv(GLuint program, GLint location, GLint* params) {
279 gles2::GetGLContext()->GetUniformiv(program, location, params);
281 GLint GLES2GetUniformLocation(GLuint program, const char* name) {
282 return gles2::GetGLContext()->GetUniformLocation(program, name);
284 void GLES2GetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params) {
285 gles2::GetGLContext()->GetVertexAttribfv(index, pname, params);
287 void GLES2GetVertexAttribiv(GLuint index, GLenum pname, GLint* params) {
288 gles2::GetGLContext()->GetVertexAttribiv(index, pname, params);
290 void GLES2GetVertexAttribPointerv(GLuint index, GLenum pname, void** pointer) {
291 gles2::GetGLContext()->GetVertexAttribPointerv(index, pname, pointer);
293 void GLES2Hint(GLenum target, GLenum mode) {
294 gles2::GetGLContext()->Hint(target, mode);
296 GLboolean GLES2IsBuffer(GLuint buffer) {
297 return gles2::GetGLContext()->IsBuffer(buffer);
299 GLboolean GLES2IsEnabled(GLenum cap) {
300 return gles2::GetGLContext()->IsEnabled(cap);
302 GLboolean GLES2IsFramebuffer(GLuint framebuffer) {
303 return gles2::GetGLContext()->IsFramebuffer(framebuffer);
305 GLboolean GLES2IsProgram(GLuint program) {
306 return gles2::GetGLContext()->IsProgram(program);
308 GLboolean GLES2IsRenderbuffer(GLuint renderbuffer) {
309 return gles2::GetGLContext()->IsRenderbuffer(renderbuffer);
311 GLboolean GLES2IsShader(GLuint shader) {
312 return gles2::GetGLContext()->IsShader(shader);
314 GLboolean GLES2IsTexture(GLuint texture) {
315 return gles2::GetGLContext()->IsTexture(texture);
317 void GLES2LineWidth(GLfloat width) {
318 gles2::GetGLContext()->LineWidth(width);
320 void GLES2LinkProgram(GLuint program) {
321 gles2::GetGLContext()->LinkProgram(program);
323 void GLES2PixelStorei(GLenum pname, GLint param) {
324 gles2::GetGLContext()->PixelStorei(pname, param);
326 void GLES2PolygonOffset(GLfloat factor, GLfloat units) {
327 gles2::GetGLContext()->PolygonOffset(factor, units);
329 void GLES2ReadPixels(
330 GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type,
331 void* pixels) {
332 gles2::GetGLContext()->ReadPixels(x, y, width, height, format, type, pixels);
334 void GLES2ReleaseShaderCompiler() {
335 gles2::GetGLContext()->ReleaseShaderCompiler();
337 void GLES2RenderbufferStorage(
338 GLenum target, GLenum internalformat, GLsizei width, GLsizei height) {
339 gles2::GetGLContext()->RenderbufferStorage(
340 target, internalformat, width, height);
342 void GLES2SampleCoverage(GLclampf value, GLboolean invert) {
343 gles2::GetGLContext()->SampleCoverage(value, invert);
345 void GLES2Scissor(GLint x, GLint y, GLsizei width, GLsizei height) {
346 gles2::GetGLContext()->Scissor(x, y, width, height);
348 void GLES2ShaderBinary(
349 GLsizei n, const GLuint* shaders, GLenum binaryformat, const void* binary,
350 GLsizei length) {
351 gles2::GetGLContext()->ShaderBinary(
352 n, shaders, binaryformat, binary, length);
354 void GLES2ShaderSource(
355 GLuint shader, GLsizei count, const GLchar* const* str,
356 const GLint* length) {
357 gles2::GetGLContext()->ShaderSource(shader, count, str, length);
359 void GLES2ShallowFinishCHROMIUM() {
360 gles2::GetGLContext()->ShallowFinishCHROMIUM();
362 void GLES2ShallowFlushCHROMIUM() {
363 gles2::GetGLContext()->ShallowFlushCHROMIUM();
365 void GLES2StencilFunc(GLenum func, GLint ref, GLuint mask) {
366 gles2::GetGLContext()->StencilFunc(func, ref, mask);
368 void GLES2StencilFuncSeparate(
369 GLenum face, GLenum func, GLint ref, GLuint mask) {
370 gles2::GetGLContext()->StencilFuncSeparate(face, func, ref, mask);
372 void GLES2StencilMask(GLuint mask) {
373 gles2::GetGLContext()->StencilMask(mask);
375 void GLES2StencilMaskSeparate(GLenum face, GLuint mask) {
376 gles2::GetGLContext()->StencilMaskSeparate(face, mask);
378 void GLES2StencilOp(GLenum fail, GLenum zfail, GLenum zpass) {
379 gles2::GetGLContext()->StencilOp(fail, zfail, zpass);
381 void GLES2StencilOpSeparate(
382 GLenum face, GLenum fail, GLenum zfail, GLenum zpass) {
383 gles2::GetGLContext()->StencilOpSeparate(face, fail, zfail, zpass);
385 void GLES2TexImage2D(
386 GLenum target, GLint level, GLint internalformat, GLsizei width,
387 GLsizei height, GLint border, GLenum format, GLenum type,
388 const void* pixels) {
389 gles2::GetGLContext()->TexImage2D(
390 target, level, internalformat, width, height, border, format, type,
391 pixels);
393 void GLES2TexParameterf(GLenum target, GLenum pname, GLfloat param) {
394 gles2::GetGLContext()->TexParameterf(target, pname, param);
396 void GLES2TexParameterfv(GLenum target, GLenum pname, const GLfloat* params) {
397 gles2::GetGLContext()->TexParameterfv(target, pname, params);
399 void GLES2TexParameteri(GLenum target, GLenum pname, GLint param) {
400 gles2::GetGLContext()->TexParameteri(target, pname, param);
402 void GLES2TexParameteriv(GLenum target, GLenum pname, const GLint* params) {
403 gles2::GetGLContext()->TexParameteriv(target, pname, params);
405 void GLES2TexSubImage2D(
406 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
407 GLsizei height, GLenum format, GLenum type, const void* pixels) {
408 gles2::GetGLContext()->TexSubImage2D(
409 target, level, xoffset, yoffset, width, height, format, type, pixels);
411 void GLES2Uniform1f(GLint location, GLfloat x) {
412 gles2::GetGLContext()->Uniform1f(location, x);
414 void GLES2Uniform1fv(GLint location, GLsizei count, const GLfloat* v) {
415 gles2::GetGLContext()->Uniform1fv(location, count, v);
417 void GLES2Uniform1i(GLint location, GLint x) {
418 gles2::GetGLContext()->Uniform1i(location, x);
420 void GLES2Uniform1iv(GLint location, GLsizei count, const GLint* v) {
421 gles2::GetGLContext()->Uniform1iv(location, count, v);
423 void GLES2Uniform2f(GLint location, GLfloat x, GLfloat y) {
424 gles2::GetGLContext()->Uniform2f(location, x, y);
426 void GLES2Uniform2fv(GLint location, GLsizei count, const GLfloat* v) {
427 gles2::GetGLContext()->Uniform2fv(location, count, v);
429 void GLES2Uniform2i(GLint location, GLint x, GLint y) {
430 gles2::GetGLContext()->Uniform2i(location, x, y);
432 void GLES2Uniform2iv(GLint location, GLsizei count, const GLint* v) {
433 gles2::GetGLContext()->Uniform2iv(location, count, v);
435 void GLES2Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) {
436 gles2::GetGLContext()->Uniform3f(location, x, y, z);
438 void GLES2Uniform3fv(GLint location, GLsizei count, const GLfloat* v) {
439 gles2::GetGLContext()->Uniform3fv(location, count, v);
441 void GLES2Uniform3i(GLint location, GLint x, GLint y, GLint z) {
442 gles2::GetGLContext()->Uniform3i(location, x, y, z);
444 void GLES2Uniform3iv(GLint location, GLsizei count, const GLint* v) {
445 gles2::GetGLContext()->Uniform3iv(location, count, v);
447 void GLES2Uniform4f(
448 GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) {
449 gles2::GetGLContext()->Uniform4f(location, x, y, z, w);
451 void GLES2Uniform4fv(GLint location, GLsizei count, const GLfloat* v) {
452 gles2::GetGLContext()->Uniform4fv(location, count, v);
454 void GLES2Uniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) {
455 gles2::GetGLContext()->Uniform4i(location, x, y, z, w);
457 void GLES2Uniform4iv(GLint location, GLsizei count, const GLint* v) {
458 gles2::GetGLContext()->Uniform4iv(location, count, v);
460 void GLES2UniformMatrix2fv(
461 GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) {
462 gles2::GetGLContext()->UniformMatrix2fv(location, count, transpose, value);
464 void GLES2UniformMatrix3fv(
465 GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) {
466 gles2::GetGLContext()->UniformMatrix3fv(location, count, transpose, value);
468 void GLES2UniformMatrix4fv(
469 GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) {
470 gles2::GetGLContext()->UniformMatrix4fv(location, count, transpose, value);
472 void GLES2UseProgram(GLuint program) {
473 gles2::GetGLContext()->UseProgram(program);
475 void GLES2ValidateProgram(GLuint program) {
476 gles2::GetGLContext()->ValidateProgram(program);
478 void GLES2VertexAttrib1f(GLuint indx, GLfloat x) {
479 gles2::GetGLContext()->VertexAttrib1f(indx, x);
481 void GLES2VertexAttrib1fv(GLuint indx, const GLfloat* values) {
482 gles2::GetGLContext()->VertexAttrib1fv(indx, values);
484 void GLES2VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) {
485 gles2::GetGLContext()->VertexAttrib2f(indx, x, y);
487 void GLES2VertexAttrib2fv(GLuint indx, const GLfloat* values) {
488 gles2::GetGLContext()->VertexAttrib2fv(indx, values);
490 void GLES2VertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) {
491 gles2::GetGLContext()->VertexAttrib3f(indx, x, y, z);
493 void GLES2VertexAttrib3fv(GLuint indx, const GLfloat* values) {
494 gles2::GetGLContext()->VertexAttrib3fv(indx, values);
496 void GLES2VertexAttrib4f(
497 GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) {
498 gles2::GetGLContext()->VertexAttrib4f(indx, x, y, z, w);
500 void GLES2VertexAttrib4fv(GLuint indx, const GLfloat* values) {
501 gles2::GetGLContext()->VertexAttrib4fv(indx, values);
503 void GLES2VertexAttribPointer(
504 GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride,
505 const void* ptr) {
506 gles2::GetGLContext()->VertexAttribPointer(
507 indx, size, type, normalized, stride, ptr);
509 void GLES2Viewport(GLint x, GLint y, GLsizei width, GLsizei height) {
510 gles2::GetGLContext()->Viewport(x, y, width, height);
512 void GLES2BlitFramebufferCHROMIUM(
513 GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0,
514 GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) {
515 gles2::GetGLContext()->BlitFramebufferCHROMIUM(
516 srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
518 void GLES2RenderbufferStorageMultisampleCHROMIUM(
519 GLenum target, GLsizei samples, GLenum internalformat, GLsizei width,
520 GLsizei height) {
521 gles2::GetGLContext()->RenderbufferStorageMultisampleCHROMIUM(
522 target, samples, internalformat, width, height);
524 void GLES2RenderbufferStorageMultisampleEXT(
525 GLenum target, GLsizei samples, GLenum internalformat, GLsizei width,
526 GLsizei height) {
527 gles2::GetGLContext()->RenderbufferStorageMultisampleEXT(
528 target, samples, internalformat, width, height);
530 void GLES2FramebufferTexture2DMultisampleEXT(
531 GLenum target, GLenum attachment, GLenum textarget, GLuint texture,
532 GLint level, GLsizei samples) {
533 gles2::GetGLContext()->FramebufferTexture2DMultisampleEXT(
534 target, attachment, textarget, texture, level, samples);
536 void GLES2TexStorage2DEXT(
537 GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width,
538 GLsizei height) {
539 gles2::GetGLContext()->TexStorage2DEXT(
540 target, levels, internalFormat, width, height);
542 void GLES2GenQueriesEXT(GLsizei n, GLuint* queries) {
543 gles2::GetGLContext()->GenQueriesEXT(n, queries);
545 void GLES2DeleteQueriesEXT(GLsizei n, const GLuint* queries) {
546 gles2::GetGLContext()->DeleteQueriesEXT(n, queries);
548 GLboolean GLES2IsQueryEXT(GLuint id) {
549 return gles2::GetGLContext()->IsQueryEXT(id);
551 void GLES2BeginQueryEXT(GLenum target, GLuint id) {
552 gles2::GetGLContext()->BeginQueryEXT(target, id);
554 void GLES2EndQueryEXT(GLenum target) {
555 gles2::GetGLContext()->EndQueryEXT(target);
557 void GLES2GetQueryivEXT(GLenum target, GLenum pname, GLint* params) {
558 gles2::GetGLContext()->GetQueryivEXT(target, pname, params);
560 void GLES2GetQueryObjectuivEXT(GLuint id, GLenum pname, GLuint* params) {
561 gles2::GetGLContext()->GetQueryObjectuivEXT(id, pname, params);
563 void GLES2InsertEventMarkerEXT(GLsizei length, const GLchar* marker) {
564 gles2::GetGLContext()->InsertEventMarkerEXT(length, marker);
566 void GLES2PushGroupMarkerEXT(GLsizei length, const GLchar* marker) {
567 gles2::GetGLContext()->PushGroupMarkerEXT(length, marker);
569 void GLES2PopGroupMarkerEXT() {
570 gles2::GetGLContext()->PopGroupMarkerEXT();
572 void GLES2GenVertexArraysOES(GLsizei n, GLuint* arrays) {
573 gles2::GetGLContext()->GenVertexArraysOES(n, arrays);
575 void GLES2DeleteVertexArraysOES(GLsizei n, const GLuint* arrays) {
576 gles2::GetGLContext()->DeleteVertexArraysOES(n, arrays);
578 GLboolean GLES2IsVertexArrayOES(GLuint array) {
579 return gles2::GetGLContext()->IsVertexArrayOES(array);
581 void GLES2BindVertexArrayOES(GLuint array) {
582 gles2::GetGLContext()->BindVertexArrayOES(array);
584 void GLES2SwapBuffers() {
585 gles2::GetGLContext()->SwapBuffers();
587 GLuint GLES2GetMaxValueInBufferCHROMIUM(
588 GLuint buffer_id, GLsizei count, GLenum type, GLuint offset) {
589 return gles2::GetGLContext()->GetMaxValueInBufferCHROMIUM(
590 buffer_id, count, type, offset);
592 void GLES2GenSharedIdsCHROMIUM(
593 GLuint namespace_id, GLuint id_offset, GLsizei n, GLuint* ids) {
594 gles2::GetGLContext()->GenSharedIdsCHROMIUM(namespace_id, id_offset, n, ids);
596 void GLES2DeleteSharedIdsCHROMIUM(
597 GLuint namespace_id, GLsizei n, const GLuint* ids) {
598 gles2::GetGLContext()->DeleteSharedIdsCHROMIUM(namespace_id, n, ids);
600 void GLES2RegisterSharedIdsCHROMIUM(
601 GLuint namespace_id, GLsizei n, const GLuint* ids) {
602 gles2::GetGLContext()->RegisterSharedIdsCHROMIUM(namespace_id, n, ids);
604 GLboolean GLES2EnableFeatureCHROMIUM(const char* feature) {
605 return gles2::GetGLContext()->EnableFeatureCHROMIUM(feature);
607 void* GLES2MapBufferCHROMIUM(GLuint target, GLenum access) {
608 return gles2::GetGLContext()->MapBufferCHROMIUM(target, access);
610 GLboolean GLES2UnmapBufferCHROMIUM(GLuint target) {
611 return gles2::GetGLContext()->UnmapBufferCHROMIUM(target);
613 void* GLES2MapImageCHROMIUM(GLuint image_id, GLenum access) {
614 return gles2::GetGLContext()->MapImageCHROMIUM(image_id, access);
616 void GLES2UnmapImageCHROMIUM(GLuint image_id) {
617 gles2::GetGLContext()->UnmapImageCHROMIUM(image_id);
619 void* GLES2MapBufferSubDataCHROMIUM(
620 GLuint target, GLintptr offset, GLsizeiptr size, GLenum access) {
621 return gles2::GetGLContext()->MapBufferSubDataCHROMIUM(
622 target, offset, size, access);
624 void GLES2UnmapBufferSubDataCHROMIUM(const void* mem) {
625 gles2::GetGLContext()->UnmapBufferSubDataCHROMIUM(mem);
627 void* GLES2MapTexSubImage2DCHROMIUM(
628 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
629 GLsizei height, GLenum format, GLenum type, GLenum access) {
630 return gles2::GetGLContext()->MapTexSubImage2DCHROMIUM(
631 target, level, xoffset, yoffset, width, height, format, type, access);
633 void GLES2UnmapTexSubImage2DCHROMIUM(const void* mem) {
634 gles2::GetGLContext()->UnmapTexSubImage2DCHROMIUM(mem);
636 void GLES2ResizeCHROMIUM(GLuint width, GLuint height, GLfloat scale_factor) {
637 gles2::GetGLContext()->ResizeCHROMIUM(width, height, scale_factor);
639 const GLchar* GLES2GetRequestableExtensionsCHROMIUM() {
640 return gles2::GetGLContext()->GetRequestableExtensionsCHROMIUM();
642 void GLES2RequestExtensionCHROMIUM(const char* extension) {
643 gles2::GetGLContext()->RequestExtensionCHROMIUM(extension);
645 void GLES2RateLimitOffscreenContextCHROMIUM() {
646 gles2::GetGLContext()->RateLimitOffscreenContextCHROMIUM();
648 void GLES2GetMultipleIntegervCHROMIUM(
649 const GLenum* pnames, GLuint count, GLint* results, GLsizeiptr size) {
650 gles2::GetGLContext()->GetMultipleIntegervCHROMIUM(
651 pnames, count, results, size);
653 void GLES2GetProgramInfoCHROMIUM(
654 GLuint program, GLsizei bufsize, GLsizei* size, void* info) {
655 gles2::GetGLContext()->GetProgramInfoCHROMIUM(program, bufsize, size, info);
657 GLuint GLES2CreateStreamTextureCHROMIUM(GLuint texture) {
658 return gles2::GetGLContext()->CreateStreamTextureCHROMIUM(texture);
660 GLuint GLES2CreateImageCHROMIUM(
661 GLsizei width, GLsizei height, GLenum internalformat) {
662 return gles2::GetGLContext()->CreateImageCHROMIUM(
663 width, height, internalformat);
665 void GLES2DestroyImageCHROMIUM(GLuint image_id) {
666 gles2::GetGLContext()->DestroyImageCHROMIUM(image_id);
668 void GLES2GetImageParameterivCHROMIUM(
669 GLuint image_id, GLenum pname, GLint* params) {
670 gles2::GetGLContext()->GetImageParameterivCHROMIUM(image_id, pname, params);
672 void GLES2GetTranslatedShaderSourceANGLE(
673 GLuint shader, GLsizei bufsize, GLsizei* length, char* source) {
674 gles2::GetGLContext()->GetTranslatedShaderSourceANGLE(
675 shader, bufsize, length, source);
677 void GLES2PostSubBufferCHROMIUM(GLint x, GLint y, GLint width, GLint height) {
678 gles2::GetGLContext()->PostSubBufferCHROMIUM(x, y, width, height);
680 void GLES2TexImageIOSurface2DCHROMIUM(
681 GLenum target, GLsizei width, GLsizei height, GLuint ioSurfaceId,
682 GLuint plane) {
683 gles2::GetGLContext()->TexImageIOSurface2DCHROMIUM(
684 target, width, height, ioSurfaceId, plane);
686 void GLES2CopyTextureCHROMIUM(
687 GLenum target, GLenum source_id, GLenum dest_id, GLint level,
688 GLint internalformat, GLenum dest_type) {
689 gles2::GetGLContext()->CopyTextureCHROMIUM(
690 target, source_id, dest_id, level, internalformat, dest_type);
692 void GLES2DrawArraysInstancedANGLE(
693 GLenum mode, GLint first, GLsizei count, GLsizei primcount) {
694 gles2::GetGLContext()->DrawArraysInstancedANGLE(
695 mode, first, count, primcount);
697 void GLES2DrawElementsInstancedANGLE(
698 GLenum mode, GLsizei count, GLenum type, const void* indices,
699 GLsizei primcount) {
700 gles2::GetGLContext()->DrawElementsInstancedANGLE(
701 mode, count, type, indices, primcount);
703 void GLES2VertexAttribDivisorANGLE(GLuint index, GLuint divisor) {
704 gles2::GetGLContext()->VertexAttribDivisorANGLE(index, divisor);
706 void GLES2GenMailboxCHROMIUM(GLbyte* mailbox) {
707 gles2::GetGLContext()->GenMailboxCHROMIUM(mailbox);
709 void GLES2ProduceTextureCHROMIUM(GLenum target, const GLbyte* mailbox) {
710 gles2::GetGLContext()->ProduceTextureCHROMIUM(target, mailbox);
712 void GLES2ConsumeTextureCHROMIUM(GLenum target, const GLbyte* mailbox) {
713 gles2::GetGLContext()->ConsumeTextureCHROMIUM(target, mailbox);
715 void GLES2BindUniformLocationCHROMIUM(
716 GLuint program, GLint location, const char* name) {
717 gles2::GetGLContext()->BindUniformLocationCHROMIUM(program, location, name);
719 void GLES2BindTexImage2DCHROMIUM(GLenum target, GLint imageId) {
720 gles2::GetGLContext()->BindTexImage2DCHROMIUM(target, imageId);
722 void GLES2ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) {
723 gles2::GetGLContext()->ReleaseTexImage2DCHROMIUM(target, imageId);
725 void GLES2TraceBeginCHROMIUM(const char* name) {
726 gles2::GetGLContext()->TraceBeginCHROMIUM(name);
728 void GLES2TraceEndCHROMIUM() {
729 gles2::GetGLContext()->TraceEndCHROMIUM();
731 void GLES2AsyncTexSubImage2DCHROMIUM(
732 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
733 GLsizei height, GLenum format, GLenum type, const void* data) {
734 gles2::GetGLContext()->AsyncTexSubImage2DCHROMIUM(
735 target, level, xoffset, yoffset, width, height, format, type, data);
737 void GLES2AsyncTexImage2DCHROMIUM(
738 GLenum target, GLint level, GLint internalformat, GLsizei width,
739 GLsizei height, GLint border, GLenum format, GLenum type,
740 const void* pixels) {
741 gles2::GetGLContext()->AsyncTexImage2DCHROMIUM(
742 target, level, internalformat, width, height, border, format, type,
743 pixels);
745 void GLES2WaitAsyncTexImage2DCHROMIUM(GLenum target) {
746 gles2::GetGLContext()->WaitAsyncTexImage2DCHROMIUM(target);
748 void GLES2DiscardFramebufferEXT(
749 GLenum target, GLsizei count, const GLenum* attachments) {
750 gles2::GetGLContext()->DiscardFramebufferEXT(target, count, attachments);
752 void GLES2LoseContextCHROMIUM(GLenum current, GLenum other) {
753 gles2::GetGLContext()->LoseContextCHROMIUM(current, other);
755 GLuint GLES2InsertSyncPointCHROMIUM() {
756 return gles2::GetGLContext()->InsertSyncPointCHROMIUM();
758 void GLES2WaitSyncPointCHROMIUM(GLuint sync_point) {
759 gles2::GetGLContext()->WaitSyncPointCHROMIUM(sync_point);
761 void GLES2DrawBuffersEXT(GLsizei count, const GLenum* bufs) {
762 gles2::GetGLContext()->DrawBuffersEXT(count, bufs);
764 void GLES2DiscardBackbufferCHROMIUM() {
765 gles2::GetGLContext()->DiscardBackbufferCHROMIUM();
768 namespace gles2 {
770 extern const NameToFunc g_gles2_function_table[] = {
771 { "glActiveTexture", reinterpret_cast<GLES2FunctionPointer>(
772 glActiveTexture), },
773 { "glAttachShader", reinterpret_cast<GLES2FunctionPointer>(
774 glAttachShader), },
775 { "glBindAttribLocation", reinterpret_cast<GLES2FunctionPointer>(
776 glBindAttribLocation), },
777 { "glBindBuffer", reinterpret_cast<GLES2FunctionPointer>(glBindBuffer), },
778 { "glBindFramebuffer", reinterpret_cast<GLES2FunctionPointer>(
779 glBindFramebuffer), },
780 { "glBindRenderbuffer", reinterpret_cast<GLES2FunctionPointer>(
781 glBindRenderbuffer), },
782 { "glBindTexture", reinterpret_cast<GLES2FunctionPointer>(glBindTexture), },
783 { "glBlendColor", reinterpret_cast<GLES2FunctionPointer>(glBlendColor), },
784 { "glBlendEquation", reinterpret_cast<GLES2FunctionPointer>(
785 glBlendEquation), },
786 { "glBlendEquationSeparate", reinterpret_cast<GLES2FunctionPointer>(
787 glBlendEquationSeparate), },
788 { "glBlendFunc", reinterpret_cast<GLES2FunctionPointer>(glBlendFunc), },
789 { "glBlendFuncSeparate", reinterpret_cast<GLES2FunctionPointer>(
790 glBlendFuncSeparate), },
791 { "glBufferData", reinterpret_cast<GLES2FunctionPointer>(glBufferData), },
792 { "glBufferSubData", reinterpret_cast<GLES2FunctionPointer>(
793 glBufferSubData), },
794 { "glCheckFramebufferStatus", reinterpret_cast<GLES2FunctionPointer>(
795 glCheckFramebufferStatus), },
796 { "glClear", reinterpret_cast<GLES2FunctionPointer>(glClear), },
797 { "glClearColor", reinterpret_cast<GLES2FunctionPointer>(glClearColor), },
798 { "glClearDepthf", reinterpret_cast<GLES2FunctionPointer>(glClearDepthf), },
799 { "glClearStencil", reinterpret_cast<GLES2FunctionPointer>(
800 glClearStencil), },
801 { "glColorMask", reinterpret_cast<GLES2FunctionPointer>(glColorMask), },
802 { "glCompileShader", reinterpret_cast<GLES2FunctionPointer>(
803 glCompileShader), },
804 { "glCompressedTexImage2D", reinterpret_cast<GLES2FunctionPointer>(
805 glCompressedTexImage2D), },
806 { "glCompressedTexSubImage2D", reinterpret_cast<GLES2FunctionPointer>(
807 glCompressedTexSubImage2D), },
808 { "glCopyTexImage2D", reinterpret_cast<GLES2FunctionPointer>(
809 glCopyTexImage2D), },
810 { "glCopyTexSubImage2D", reinterpret_cast<GLES2FunctionPointer>(
811 glCopyTexSubImage2D), },
812 { "glCreateProgram", reinterpret_cast<GLES2FunctionPointer>(
813 glCreateProgram), },
814 { "glCreateShader", reinterpret_cast<GLES2FunctionPointer>(
815 glCreateShader), },
816 { "glCullFace", reinterpret_cast<GLES2FunctionPointer>(glCullFace), },
817 { "glDeleteBuffers", reinterpret_cast<GLES2FunctionPointer>(
818 glDeleteBuffers), },
819 { "glDeleteFramebuffers", reinterpret_cast<GLES2FunctionPointer>(
820 glDeleteFramebuffers), },
821 { "glDeleteProgram", reinterpret_cast<GLES2FunctionPointer>(
822 glDeleteProgram), },
823 { "glDeleteRenderbuffers", reinterpret_cast<GLES2FunctionPointer>(
824 glDeleteRenderbuffers), },
825 { "glDeleteShader", reinterpret_cast<GLES2FunctionPointer>(
826 glDeleteShader), },
827 { "glDeleteTextures", reinterpret_cast<GLES2FunctionPointer>(
828 glDeleteTextures), },
829 { "glDepthFunc", reinterpret_cast<GLES2FunctionPointer>(glDepthFunc), },
830 { "glDepthMask", reinterpret_cast<GLES2FunctionPointer>(glDepthMask), },
831 { "glDepthRangef", reinterpret_cast<GLES2FunctionPointer>(glDepthRangef), },
832 { "glDetachShader", reinterpret_cast<GLES2FunctionPointer>(
833 glDetachShader), },
834 { "glDisable", reinterpret_cast<GLES2FunctionPointer>(glDisable), },
835 { "glDisableVertexAttribArray", reinterpret_cast<GLES2FunctionPointer>(
836 glDisableVertexAttribArray), },
837 { "glDrawArrays", reinterpret_cast<GLES2FunctionPointer>(glDrawArrays), },
838 { "glDrawElements", reinterpret_cast<GLES2FunctionPointer>(
839 glDrawElements), },
840 { "glEnable", reinterpret_cast<GLES2FunctionPointer>(glEnable), },
841 { "glEnableVertexAttribArray", reinterpret_cast<GLES2FunctionPointer>(
842 glEnableVertexAttribArray), },
843 { "glFinish", reinterpret_cast<GLES2FunctionPointer>(glFinish), },
844 { "glFlush", reinterpret_cast<GLES2FunctionPointer>(glFlush), },
845 { "glFramebufferRenderbuffer", reinterpret_cast<GLES2FunctionPointer>(
846 glFramebufferRenderbuffer), },
847 { "glFramebufferTexture2D", reinterpret_cast<GLES2FunctionPointer>(
848 glFramebufferTexture2D), },
849 { "glFrontFace", reinterpret_cast<GLES2FunctionPointer>(glFrontFace), },
850 { "glGenBuffers", reinterpret_cast<GLES2FunctionPointer>(glGenBuffers), },
851 { "glGenerateMipmap", reinterpret_cast<GLES2FunctionPointer>(
852 glGenerateMipmap), },
853 { "glGenFramebuffers", reinterpret_cast<GLES2FunctionPointer>(
854 glGenFramebuffers), },
855 { "glGenRenderbuffers", reinterpret_cast<GLES2FunctionPointer>(
856 glGenRenderbuffers), },
857 { "glGenTextures", reinterpret_cast<GLES2FunctionPointer>(glGenTextures), },
858 { "glGetActiveAttrib", reinterpret_cast<GLES2FunctionPointer>(
859 glGetActiveAttrib), },
860 { "glGetActiveUniform", reinterpret_cast<GLES2FunctionPointer>(
861 glGetActiveUniform), },
862 { "glGetAttachedShaders", reinterpret_cast<GLES2FunctionPointer>(
863 glGetAttachedShaders), },
864 { "glGetAttribLocation", reinterpret_cast<GLES2FunctionPointer>(
865 glGetAttribLocation), },
866 { "glGetBooleanv", reinterpret_cast<GLES2FunctionPointer>(glGetBooleanv), },
867 { "glGetBufferParameteriv", reinterpret_cast<GLES2FunctionPointer>(
868 glGetBufferParameteriv), },
869 { "glGetError", reinterpret_cast<GLES2FunctionPointer>(glGetError), },
870 { "glGetFloatv", reinterpret_cast<GLES2FunctionPointer>(glGetFloatv), },
871 { "glGetFramebufferAttachmentParameteriv", reinterpret_cast<GLES2FunctionPointer>(glGetFramebufferAttachmentParameteriv), }, // NOLINT
872 { "glGetIntegerv", reinterpret_cast<GLES2FunctionPointer>(glGetIntegerv), },
873 { "glGetProgramiv", reinterpret_cast<GLES2FunctionPointer>(
874 glGetProgramiv), },
875 { "glGetProgramInfoLog", reinterpret_cast<GLES2FunctionPointer>(
876 glGetProgramInfoLog), },
877 { "glGetRenderbufferParameteriv", reinterpret_cast<GLES2FunctionPointer>(
878 glGetRenderbufferParameteriv), },
879 { "glGetShaderiv", reinterpret_cast<GLES2FunctionPointer>(glGetShaderiv), },
880 { "glGetShaderInfoLog", reinterpret_cast<GLES2FunctionPointer>(
881 glGetShaderInfoLog), },
882 { "glGetShaderPrecisionFormat", reinterpret_cast<GLES2FunctionPointer>(
883 glGetShaderPrecisionFormat), },
884 { "glGetShaderSource", reinterpret_cast<GLES2FunctionPointer>(
885 glGetShaderSource), },
886 { "glGetString", reinterpret_cast<GLES2FunctionPointer>(glGetString), },
887 { "glGetTexParameterfv", reinterpret_cast<GLES2FunctionPointer>(
888 glGetTexParameterfv), },
889 { "glGetTexParameteriv", reinterpret_cast<GLES2FunctionPointer>(
890 glGetTexParameteriv), },
891 { "glGetUniformfv", reinterpret_cast<GLES2FunctionPointer>(
892 glGetUniformfv), },
893 { "glGetUniformiv", reinterpret_cast<GLES2FunctionPointer>(
894 glGetUniformiv), },
895 { "glGetUniformLocation", reinterpret_cast<GLES2FunctionPointer>(
896 glGetUniformLocation), },
897 { "glGetVertexAttribfv", reinterpret_cast<GLES2FunctionPointer>(
898 glGetVertexAttribfv), },
899 { "glGetVertexAttribiv", reinterpret_cast<GLES2FunctionPointer>(
900 glGetVertexAttribiv), },
901 { "glGetVertexAttribPointerv", reinterpret_cast<GLES2FunctionPointer>(
902 glGetVertexAttribPointerv), },
903 { "glHint", reinterpret_cast<GLES2FunctionPointer>(glHint), },
904 { "glIsBuffer", reinterpret_cast<GLES2FunctionPointer>(glIsBuffer), },
905 { "glIsEnabled", reinterpret_cast<GLES2FunctionPointer>(glIsEnabled), },
906 { "glIsFramebuffer", reinterpret_cast<GLES2FunctionPointer>(
907 glIsFramebuffer), },
908 { "glIsProgram", reinterpret_cast<GLES2FunctionPointer>(glIsProgram), },
909 { "glIsRenderbuffer", reinterpret_cast<GLES2FunctionPointer>(
910 glIsRenderbuffer), },
911 { "glIsShader", reinterpret_cast<GLES2FunctionPointer>(glIsShader), },
912 { "glIsTexture", reinterpret_cast<GLES2FunctionPointer>(glIsTexture), },
913 { "glLineWidth", reinterpret_cast<GLES2FunctionPointer>(glLineWidth), },
914 { "glLinkProgram", reinterpret_cast<GLES2FunctionPointer>(glLinkProgram), },
915 { "glPixelStorei", reinterpret_cast<GLES2FunctionPointer>(glPixelStorei), },
916 { "glPolygonOffset", reinterpret_cast<GLES2FunctionPointer>(
917 glPolygonOffset), },
918 { "glReadPixels", reinterpret_cast<GLES2FunctionPointer>(glReadPixels), },
919 { "glReleaseShaderCompiler", reinterpret_cast<GLES2FunctionPointer>(
920 glReleaseShaderCompiler), },
921 { "glRenderbufferStorage", reinterpret_cast<GLES2FunctionPointer>(
922 glRenderbufferStorage), },
923 { "glSampleCoverage", reinterpret_cast<GLES2FunctionPointer>(
924 glSampleCoverage), },
925 { "glScissor", reinterpret_cast<GLES2FunctionPointer>(glScissor), },
926 { "glShaderBinary", reinterpret_cast<GLES2FunctionPointer>(
927 glShaderBinary), },
928 { "glShaderSource", reinterpret_cast<GLES2FunctionPointer>(
929 glShaderSource), },
930 { "glShallowFinishCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
931 glShallowFinishCHROMIUM), },
932 { "glShallowFlushCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
933 glShallowFlushCHROMIUM), },
934 { "glStencilFunc", reinterpret_cast<GLES2FunctionPointer>(glStencilFunc), },
935 { "glStencilFuncSeparate", reinterpret_cast<GLES2FunctionPointer>(
936 glStencilFuncSeparate), },
937 { "glStencilMask", reinterpret_cast<GLES2FunctionPointer>(glStencilMask), },
938 { "glStencilMaskSeparate", reinterpret_cast<GLES2FunctionPointer>(
939 glStencilMaskSeparate), },
940 { "glStencilOp", reinterpret_cast<GLES2FunctionPointer>(glStencilOp), },
941 { "glStencilOpSeparate", reinterpret_cast<GLES2FunctionPointer>(
942 glStencilOpSeparate), },
943 { "glTexImage2D", reinterpret_cast<GLES2FunctionPointer>(glTexImage2D), },
944 { "glTexParameterf", reinterpret_cast<GLES2FunctionPointer>(
945 glTexParameterf), },
946 { "glTexParameterfv", reinterpret_cast<GLES2FunctionPointer>(
947 glTexParameterfv), },
948 { "glTexParameteri", reinterpret_cast<GLES2FunctionPointer>(
949 glTexParameteri), },
950 { "glTexParameteriv", reinterpret_cast<GLES2FunctionPointer>(
951 glTexParameteriv), },
952 { "glTexSubImage2D", reinterpret_cast<GLES2FunctionPointer>(
953 glTexSubImage2D), },
954 { "glUniform1f", reinterpret_cast<GLES2FunctionPointer>(glUniform1f), },
955 { "glUniform1fv", reinterpret_cast<GLES2FunctionPointer>(glUniform1fv), },
956 { "glUniform1i", reinterpret_cast<GLES2FunctionPointer>(glUniform1i), },
957 { "glUniform1iv", reinterpret_cast<GLES2FunctionPointer>(glUniform1iv), },
958 { "glUniform2f", reinterpret_cast<GLES2FunctionPointer>(glUniform2f), },
959 { "glUniform2fv", reinterpret_cast<GLES2FunctionPointer>(glUniform2fv), },
960 { "glUniform2i", reinterpret_cast<GLES2FunctionPointer>(glUniform2i), },
961 { "glUniform2iv", reinterpret_cast<GLES2FunctionPointer>(glUniform2iv), },
962 { "glUniform3f", reinterpret_cast<GLES2FunctionPointer>(glUniform3f), },
963 { "glUniform3fv", reinterpret_cast<GLES2FunctionPointer>(glUniform3fv), },
964 { "glUniform3i", reinterpret_cast<GLES2FunctionPointer>(glUniform3i), },
965 { "glUniform3iv", reinterpret_cast<GLES2FunctionPointer>(glUniform3iv), },
966 { "glUniform4f", reinterpret_cast<GLES2FunctionPointer>(glUniform4f), },
967 { "glUniform4fv", reinterpret_cast<GLES2FunctionPointer>(glUniform4fv), },
968 { "glUniform4i", reinterpret_cast<GLES2FunctionPointer>(glUniform4i), },
969 { "glUniform4iv", reinterpret_cast<GLES2FunctionPointer>(glUniform4iv), },
970 { "glUniformMatrix2fv", reinterpret_cast<GLES2FunctionPointer>(
971 glUniformMatrix2fv), },
972 { "glUniformMatrix3fv", reinterpret_cast<GLES2FunctionPointer>(
973 glUniformMatrix3fv), },
974 { "glUniformMatrix4fv", reinterpret_cast<GLES2FunctionPointer>(
975 glUniformMatrix4fv), },
976 { "glUseProgram", reinterpret_cast<GLES2FunctionPointer>(glUseProgram), },
977 { "glValidateProgram", reinterpret_cast<GLES2FunctionPointer>(
978 glValidateProgram), },
979 { "glVertexAttrib1f", reinterpret_cast<GLES2FunctionPointer>(
980 glVertexAttrib1f), },
981 { "glVertexAttrib1fv", reinterpret_cast<GLES2FunctionPointer>(
982 glVertexAttrib1fv), },
983 { "glVertexAttrib2f", reinterpret_cast<GLES2FunctionPointer>(
984 glVertexAttrib2f), },
985 { "glVertexAttrib2fv", reinterpret_cast<GLES2FunctionPointer>(
986 glVertexAttrib2fv), },
987 { "glVertexAttrib3f", reinterpret_cast<GLES2FunctionPointer>(
988 glVertexAttrib3f), },
989 { "glVertexAttrib3fv", reinterpret_cast<GLES2FunctionPointer>(
990 glVertexAttrib3fv), },
991 { "glVertexAttrib4f", reinterpret_cast<GLES2FunctionPointer>(
992 glVertexAttrib4f), },
993 { "glVertexAttrib4fv", reinterpret_cast<GLES2FunctionPointer>(
994 glVertexAttrib4fv), },
995 { "glVertexAttribPointer", reinterpret_cast<GLES2FunctionPointer>(
996 glVertexAttribPointer), },
997 { "glViewport", reinterpret_cast<GLES2FunctionPointer>(glViewport), },
998 { "glBlitFramebufferCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
999 glBlitFramebufferCHROMIUM), },
1000 { "glRenderbufferStorageMultisampleCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(glRenderbufferStorageMultisampleCHROMIUM), }, // NOLINT
1001 { "glRenderbufferStorageMultisampleEXT", reinterpret_cast<GLES2FunctionPointer>(glRenderbufferStorageMultisampleEXT), }, // NOLINT
1002 { "glFramebufferTexture2DMultisampleEXT", reinterpret_cast<GLES2FunctionPointer>(glFramebufferTexture2DMultisampleEXT), }, // NOLINT
1003 { "glTexStorage2DEXT", reinterpret_cast<GLES2FunctionPointer>(
1004 glTexStorage2DEXT), },
1005 { "glGenQueriesEXT", reinterpret_cast<GLES2FunctionPointer>(
1006 glGenQueriesEXT), },
1007 { "glDeleteQueriesEXT", reinterpret_cast<GLES2FunctionPointer>(
1008 glDeleteQueriesEXT), },
1009 { "glIsQueryEXT", reinterpret_cast<GLES2FunctionPointer>(glIsQueryEXT), },
1010 { "glBeginQueryEXT", reinterpret_cast<GLES2FunctionPointer>(
1011 glBeginQueryEXT), },
1012 { "glEndQueryEXT", reinterpret_cast<GLES2FunctionPointer>(glEndQueryEXT), },
1013 { "glGetQueryivEXT", reinterpret_cast<GLES2FunctionPointer>(
1014 glGetQueryivEXT), },
1015 { "glGetQueryObjectuivEXT", reinterpret_cast<GLES2FunctionPointer>(
1016 glGetQueryObjectuivEXT), },
1017 { "glInsertEventMarkerEXT", reinterpret_cast<GLES2FunctionPointer>(
1018 glInsertEventMarkerEXT), },
1019 { "glPushGroupMarkerEXT", reinterpret_cast<GLES2FunctionPointer>(
1020 glPushGroupMarkerEXT), },
1021 { "glPopGroupMarkerEXT", reinterpret_cast<GLES2FunctionPointer>(
1022 glPopGroupMarkerEXT), },
1023 { "glGenVertexArraysOES", reinterpret_cast<GLES2FunctionPointer>(
1024 glGenVertexArraysOES), },
1025 { "glDeleteVertexArraysOES", reinterpret_cast<GLES2FunctionPointer>(
1026 glDeleteVertexArraysOES), },
1027 { "glIsVertexArrayOES", reinterpret_cast<GLES2FunctionPointer>(
1028 glIsVertexArrayOES), },
1029 { "glBindVertexArrayOES", reinterpret_cast<GLES2FunctionPointer>(
1030 glBindVertexArrayOES), },
1031 { "glSwapBuffers", reinterpret_cast<GLES2FunctionPointer>(glSwapBuffers), },
1032 { "glGetMaxValueInBufferCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1033 glGetMaxValueInBufferCHROMIUM), },
1034 { "glGenSharedIdsCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1035 glGenSharedIdsCHROMIUM), },
1036 { "glDeleteSharedIdsCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1037 glDeleteSharedIdsCHROMIUM), },
1038 { "glRegisterSharedIdsCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1039 glRegisterSharedIdsCHROMIUM), },
1040 { "glEnableFeatureCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1041 glEnableFeatureCHROMIUM), },
1042 { "glMapBufferCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1043 glMapBufferCHROMIUM), },
1044 { "glUnmapBufferCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1045 glUnmapBufferCHROMIUM), },
1046 { "glMapImageCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1047 glMapImageCHROMIUM), },
1048 { "glUnmapImageCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1049 glUnmapImageCHROMIUM), },
1050 { "glMapBufferSubDataCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1051 glMapBufferSubDataCHROMIUM), },
1052 { "glUnmapBufferSubDataCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1053 glUnmapBufferSubDataCHROMIUM), },
1054 { "glMapTexSubImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1055 glMapTexSubImage2DCHROMIUM), },
1056 { "glUnmapTexSubImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1057 glUnmapTexSubImage2DCHROMIUM), },
1058 { "glResizeCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1059 glResizeCHROMIUM), },
1060 { "glGetRequestableExtensionsCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(glGetRequestableExtensionsCHROMIUM), }, // NOLINT
1061 { "glRequestExtensionCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1062 glRequestExtensionCHROMIUM), },
1063 { "glRateLimitOffscreenContextCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(glRateLimitOffscreenContextCHROMIUM), }, // NOLINT
1064 { "glGetMultipleIntegervCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1065 glGetMultipleIntegervCHROMIUM), },
1066 { "glGetProgramInfoCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1067 glGetProgramInfoCHROMIUM), },
1068 { "glCreateStreamTextureCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1069 glCreateStreamTextureCHROMIUM), },
1070 { "glCreateImageCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1071 glCreateImageCHROMIUM), },
1072 { "glDestroyImageCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1073 glDestroyImageCHROMIUM), },
1074 { "glGetImageParameterivCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1075 glGetImageParameterivCHROMIUM), },
1076 { "glGetTranslatedShaderSourceANGLE", reinterpret_cast<GLES2FunctionPointer>(
1077 glGetTranslatedShaderSourceANGLE), },
1078 { "glPostSubBufferCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1079 glPostSubBufferCHROMIUM), },
1080 { "glTexImageIOSurface2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1081 glTexImageIOSurface2DCHROMIUM), },
1082 { "glCopyTextureCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1083 glCopyTextureCHROMIUM), },
1084 { "glDrawArraysInstancedANGLE", reinterpret_cast<GLES2FunctionPointer>(
1085 glDrawArraysInstancedANGLE), },
1086 { "glDrawElementsInstancedANGLE", reinterpret_cast<GLES2FunctionPointer>(
1087 glDrawElementsInstancedANGLE), },
1088 { "glVertexAttribDivisorANGLE", reinterpret_cast<GLES2FunctionPointer>(
1089 glVertexAttribDivisorANGLE), },
1090 { "glGenMailboxCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1091 glGenMailboxCHROMIUM), },
1092 { "glProduceTextureCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1093 glProduceTextureCHROMIUM), },
1094 { "glConsumeTextureCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1095 glConsumeTextureCHROMIUM), },
1096 { "glBindUniformLocationCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1097 glBindUniformLocationCHROMIUM), },
1098 { "glBindTexImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1099 glBindTexImage2DCHROMIUM), },
1100 { "glReleaseTexImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1101 glReleaseTexImage2DCHROMIUM), },
1102 { "glTraceBeginCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1103 glTraceBeginCHROMIUM), },
1104 { "glTraceEndCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1105 glTraceEndCHROMIUM), },
1106 { "glAsyncTexSubImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1107 glAsyncTexSubImage2DCHROMIUM), },
1108 { "glAsyncTexImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1109 glAsyncTexImage2DCHROMIUM), },
1110 { "glWaitAsyncTexImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1111 glWaitAsyncTexImage2DCHROMIUM), },
1112 { "glDiscardFramebufferEXT", reinterpret_cast<GLES2FunctionPointer>(
1113 glDiscardFramebufferEXT), },
1114 { "glLoseContextCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1115 glLoseContextCHROMIUM), },
1116 { "glInsertSyncPointCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1117 glInsertSyncPointCHROMIUM), },
1118 { "glWaitSyncPointCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1119 glWaitSyncPointCHROMIUM), },
1120 { "glDrawBuffersEXT", reinterpret_cast<GLES2FunctionPointer>(
1121 glDrawBuffersEXT), },
1122 { "glDiscardBackbufferCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1123 glDiscardBackbufferCHROMIUM), },
1124 { NULL, NULL, },
1127 } // namespace gles2
1128 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_