Rewrite AndroidSyncSettings to be significantly simpler.
[chromium-blink-merge.git] / gpu / command_buffer / client / gles2_c_lib_autogen.h
blob87616e74a0dc6b324f1f92c54f8d87fefc7b9348
1 // Copyright 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 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT!
11 // These functions emulate GLES2 over command buffers.
12 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_
13 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_
15 void GLES2ActiveTexture(GLenum texture) {
16 gles2::GetGLContext()->ActiveTexture(texture);
18 void GLES2AttachShader(GLuint program, GLuint shader) {
19 gles2::GetGLContext()->AttachShader(program, shader);
21 void GLES2BindAttribLocation(GLuint program, GLuint index, const char* name) {
22 gles2::GetGLContext()->BindAttribLocation(program, index, name);
24 void GLES2BindBuffer(GLenum target, GLuint buffer) {
25 gles2::GetGLContext()->BindBuffer(target, buffer);
27 void GLES2BindBufferBase(GLenum target, GLuint index, GLuint buffer) {
28 gles2::GetGLContext()->BindBufferBase(target, index, buffer);
30 void GLES2BindBufferRange(GLenum target,
31 GLuint index,
32 GLuint buffer,
33 GLintptr offset,
34 GLsizeiptr size) {
35 gles2::GetGLContext()->BindBufferRange(target, index, buffer, offset, size);
37 void GLES2BindFramebuffer(GLenum target, GLuint framebuffer) {
38 gles2::GetGLContext()->BindFramebuffer(target, framebuffer);
40 void GLES2BindRenderbuffer(GLenum target, GLuint renderbuffer) {
41 gles2::GetGLContext()->BindRenderbuffer(target, renderbuffer);
43 void GLES2BindSampler(GLuint unit, GLuint sampler) {
44 gles2::GetGLContext()->BindSampler(unit, sampler);
46 void GLES2BindTexture(GLenum target, GLuint texture) {
47 gles2::GetGLContext()->BindTexture(target, texture);
49 void GLES2BindTransformFeedback(GLenum target, GLuint transformfeedback) {
50 gles2::GetGLContext()->BindTransformFeedback(target, transformfeedback);
52 void GLES2BlendColor(GLclampf red,
53 GLclampf green,
54 GLclampf blue,
55 GLclampf alpha) {
56 gles2::GetGLContext()->BlendColor(red, green, blue, alpha);
58 void GLES2BlendEquation(GLenum mode) {
59 gles2::GetGLContext()->BlendEquation(mode);
61 void GLES2BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) {
62 gles2::GetGLContext()->BlendEquationSeparate(modeRGB, modeAlpha);
64 void GLES2BlendFunc(GLenum sfactor, GLenum dfactor) {
65 gles2::GetGLContext()->BlendFunc(sfactor, dfactor);
67 void GLES2BlendFuncSeparate(GLenum srcRGB,
68 GLenum dstRGB,
69 GLenum srcAlpha,
70 GLenum dstAlpha) {
71 gles2::GetGLContext()->BlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
73 void GLES2BufferData(GLenum target,
74 GLsizeiptr size,
75 const void* data,
76 GLenum usage) {
77 gles2::GetGLContext()->BufferData(target, size, data, usage);
79 void GLES2BufferSubData(GLenum target,
80 GLintptr offset,
81 GLsizeiptr size,
82 const void* data) {
83 gles2::GetGLContext()->BufferSubData(target, offset, size, data);
85 GLenum GLES2CheckFramebufferStatus(GLenum target) {
86 return gles2::GetGLContext()->CheckFramebufferStatus(target);
88 void GLES2Clear(GLbitfield mask) {
89 gles2::GetGLContext()->Clear(mask);
91 void GLES2ClearBufferfi(GLenum buffer,
92 GLint drawbuffers,
93 GLfloat depth,
94 GLint stencil) {
95 gles2::GetGLContext()->ClearBufferfi(buffer, drawbuffers, depth, stencil);
97 void GLES2ClearBufferfv(GLenum buffer,
98 GLint drawbuffers,
99 const GLfloat* value) {
100 gles2::GetGLContext()->ClearBufferfv(buffer, drawbuffers, value);
102 void GLES2ClearBufferiv(GLenum buffer, GLint drawbuffers, const GLint* value) {
103 gles2::GetGLContext()->ClearBufferiv(buffer, drawbuffers, value);
105 void GLES2ClearBufferuiv(GLenum buffer,
106 GLint drawbuffers,
107 const GLuint* value) {
108 gles2::GetGLContext()->ClearBufferuiv(buffer, drawbuffers, value);
110 void GLES2ClearColor(GLclampf red,
111 GLclampf green,
112 GLclampf blue,
113 GLclampf alpha) {
114 gles2::GetGLContext()->ClearColor(red, green, blue, alpha);
116 void GLES2ClearDepthf(GLclampf depth) {
117 gles2::GetGLContext()->ClearDepthf(depth);
119 void GLES2ClearStencil(GLint s) {
120 gles2::GetGLContext()->ClearStencil(s);
122 GLenum GLES2ClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) {
123 return gles2::GetGLContext()->ClientWaitSync(sync, flags, timeout);
125 void GLES2ColorMask(GLboolean red,
126 GLboolean green,
127 GLboolean blue,
128 GLboolean alpha) {
129 gles2::GetGLContext()->ColorMask(red, green, blue, alpha);
131 void GLES2CompileShader(GLuint shader) {
132 gles2::GetGLContext()->CompileShader(shader);
134 void GLES2CompressedTexImage2D(GLenum target,
135 GLint level,
136 GLenum internalformat,
137 GLsizei width,
138 GLsizei height,
139 GLint border,
140 GLsizei imageSize,
141 const void* data) {
142 gles2::GetGLContext()->CompressedTexImage2D(
143 target, level, internalformat, width, height, border, imageSize, data);
145 void GLES2CompressedTexSubImage2D(GLenum target,
146 GLint level,
147 GLint xoffset,
148 GLint yoffset,
149 GLsizei width,
150 GLsizei height,
151 GLenum format,
152 GLsizei imageSize,
153 const void* data) {
154 gles2::GetGLContext()->CompressedTexSubImage2D(
155 target, level, xoffset, yoffset, width, height, format, imageSize, data);
157 void GLES2CopyBufferSubData(GLenum readtarget,
158 GLenum writetarget,
159 GLintptr readoffset,
160 GLintptr writeoffset,
161 GLsizeiptr size) {
162 gles2::GetGLContext()->CopyBufferSubData(readtarget, writetarget, readoffset,
163 writeoffset, size);
165 void GLES2CopyTexImage2D(GLenum target,
166 GLint level,
167 GLenum internalformat,
168 GLint x,
169 GLint y,
170 GLsizei width,
171 GLsizei height,
172 GLint border) {
173 gles2::GetGLContext()->CopyTexImage2D(target, level, internalformat, x, y,
174 width, height, border);
176 void GLES2CopyTexSubImage2D(GLenum target,
177 GLint level,
178 GLint xoffset,
179 GLint yoffset,
180 GLint x,
181 GLint y,
182 GLsizei width,
183 GLsizei height) {
184 gles2::GetGLContext()->CopyTexSubImage2D(target, level, xoffset, yoffset, x,
185 y, width, height);
187 void GLES2CopyTexSubImage3D(GLenum target,
188 GLint level,
189 GLint xoffset,
190 GLint yoffset,
191 GLint zoffset,
192 GLint x,
193 GLint y,
194 GLsizei width,
195 GLsizei height) {
196 gles2::GetGLContext()->CopyTexSubImage3D(target, level, xoffset, yoffset,
197 zoffset, x, y, width, height);
199 GLuint GLES2CreateProgram() {
200 return gles2::GetGLContext()->CreateProgram();
202 GLuint GLES2CreateShader(GLenum type) {
203 return gles2::GetGLContext()->CreateShader(type);
205 void GLES2CullFace(GLenum mode) {
206 gles2::GetGLContext()->CullFace(mode);
208 void GLES2DeleteBuffers(GLsizei n, const GLuint* buffers) {
209 gles2::GetGLContext()->DeleteBuffers(n, buffers);
211 void GLES2DeleteFramebuffers(GLsizei n, const GLuint* framebuffers) {
212 gles2::GetGLContext()->DeleteFramebuffers(n, framebuffers);
214 void GLES2DeleteProgram(GLuint program) {
215 gles2::GetGLContext()->DeleteProgram(program);
217 void GLES2DeleteRenderbuffers(GLsizei n, const GLuint* renderbuffers) {
218 gles2::GetGLContext()->DeleteRenderbuffers(n, renderbuffers);
220 void GLES2DeleteSamplers(GLsizei n, const GLuint* samplers) {
221 gles2::GetGLContext()->DeleteSamplers(n, samplers);
223 void GLES2DeleteSync(GLsync sync) {
224 gles2::GetGLContext()->DeleteSync(sync);
226 void GLES2DeleteShader(GLuint shader) {
227 gles2::GetGLContext()->DeleteShader(shader);
229 void GLES2DeleteTextures(GLsizei n, const GLuint* textures) {
230 gles2::GetGLContext()->DeleteTextures(n, textures);
232 void GLES2DeleteTransformFeedbacks(GLsizei n, const GLuint* ids) {
233 gles2::GetGLContext()->DeleteTransformFeedbacks(n, ids);
235 void GLES2DepthFunc(GLenum func) {
236 gles2::GetGLContext()->DepthFunc(func);
238 void GLES2DepthMask(GLboolean flag) {
239 gles2::GetGLContext()->DepthMask(flag);
241 void GLES2DepthRangef(GLclampf zNear, GLclampf zFar) {
242 gles2::GetGLContext()->DepthRangef(zNear, zFar);
244 void GLES2DetachShader(GLuint program, GLuint shader) {
245 gles2::GetGLContext()->DetachShader(program, shader);
247 void GLES2Disable(GLenum cap) {
248 gles2::GetGLContext()->Disable(cap);
250 void GLES2DisableVertexAttribArray(GLuint index) {
251 gles2::GetGLContext()->DisableVertexAttribArray(index);
253 void GLES2DrawArrays(GLenum mode, GLint first, GLsizei count) {
254 gles2::GetGLContext()->DrawArrays(mode, first, count);
256 void GLES2DrawElements(GLenum mode,
257 GLsizei count,
258 GLenum type,
259 const void* indices) {
260 gles2::GetGLContext()->DrawElements(mode, count, type, indices);
262 void GLES2Enable(GLenum cap) {
263 gles2::GetGLContext()->Enable(cap);
265 void GLES2EnableVertexAttribArray(GLuint index) {
266 gles2::GetGLContext()->EnableVertexAttribArray(index);
268 GLsync GLES2FenceSync(GLenum condition, GLbitfield flags) {
269 return gles2::GetGLContext()->FenceSync(condition, flags);
271 void GLES2Finish() {
272 gles2::GetGLContext()->Finish();
274 void GLES2Flush() {
275 gles2::GetGLContext()->Flush();
277 void GLES2FramebufferRenderbuffer(GLenum target,
278 GLenum attachment,
279 GLenum renderbuffertarget,
280 GLuint renderbuffer) {
281 gles2::GetGLContext()->FramebufferRenderbuffer(
282 target, attachment, renderbuffertarget, renderbuffer);
284 void GLES2FramebufferTexture2D(GLenum target,
285 GLenum attachment,
286 GLenum textarget,
287 GLuint texture,
288 GLint level) {
289 gles2::GetGLContext()->FramebufferTexture2D(target, attachment, textarget,
290 texture, level);
292 void GLES2FramebufferTextureLayer(GLenum target,
293 GLenum attachment,
294 GLuint texture,
295 GLint level,
296 GLint layer) {
297 gles2::GetGLContext()->FramebufferTextureLayer(target, attachment, texture,
298 level, layer);
300 void GLES2FrontFace(GLenum mode) {
301 gles2::GetGLContext()->FrontFace(mode);
303 void GLES2GenBuffers(GLsizei n, GLuint* buffers) {
304 gles2::GetGLContext()->GenBuffers(n, buffers);
306 void GLES2GenerateMipmap(GLenum target) {
307 gles2::GetGLContext()->GenerateMipmap(target);
309 void GLES2GenFramebuffers(GLsizei n, GLuint* framebuffers) {
310 gles2::GetGLContext()->GenFramebuffers(n, framebuffers);
312 void GLES2GenRenderbuffers(GLsizei n, GLuint* renderbuffers) {
313 gles2::GetGLContext()->GenRenderbuffers(n, renderbuffers);
315 void GLES2GenSamplers(GLsizei n, GLuint* samplers) {
316 gles2::GetGLContext()->GenSamplers(n, samplers);
318 void GLES2GenTextures(GLsizei n, GLuint* textures) {
319 gles2::GetGLContext()->GenTextures(n, textures);
321 void GLES2GenTransformFeedbacks(GLsizei n, GLuint* ids) {
322 gles2::GetGLContext()->GenTransformFeedbacks(n, ids);
324 void GLES2GetActiveAttrib(GLuint program,
325 GLuint index,
326 GLsizei bufsize,
327 GLsizei* length,
328 GLint* size,
329 GLenum* type,
330 char* name) {
331 gles2::GetGLContext()->GetActiveAttrib(program, index, bufsize, length, size,
332 type, name);
334 void GLES2GetActiveUniform(GLuint program,
335 GLuint index,
336 GLsizei bufsize,
337 GLsizei* length,
338 GLint* size,
339 GLenum* type,
340 char* name) {
341 gles2::GetGLContext()->GetActiveUniform(program, index, bufsize, length, size,
342 type, name);
344 void GLES2GetActiveUniformBlockiv(GLuint program,
345 GLuint index,
346 GLenum pname,
347 GLint* params) {
348 gles2::GetGLContext()->GetActiveUniformBlockiv(program, index, pname, params);
350 void GLES2GetActiveUniformBlockName(GLuint program,
351 GLuint index,
352 GLsizei bufsize,
353 GLsizei* length,
354 char* name) {
355 gles2::GetGLContext()->GetActiveUniformBlockName(program, index, bufsize,
356 length, name);
358 void GLES2GetActiveUniformsiv(GLuint program,
359 GLsizei count,
360 const GLuint* indices,
361 GLenum pname,
362 GLint* params) {
363 gles2::GetGLContext()->GetActiveUniformsiv(program, count, indices, pname,
364 params);
366 void GLES2GetAttachedShaders(GLuint program,
367 GLsizei maxcount,
368 GLsizei* count,
369 GLuint* shaders) {
370 gles2::GetGLContext()->GetAttachedShaders(program, maxcount, count, shaders);
372 GLint GLES2GetAttribLocation(GLuint program, const char* name) {
373 return gles2::GetGLContext()->GetAttribLocation(program, name);
375 void GLES2GetBooleanv(GLenum pname, GLboolean* params) {
376 gles2::GetGLContext()->GetBooleanv(pname, params);
378 void GLES2GetBufferParameteriv(GLenum target, GLenum pname, GLint* params) {
379 gles2::GetGLContext()->GetBufferParameteriv(target, pname, params);
381 GLenum GLES2GetError() {
382 return gles2::GetGLContext()->GetError();
384 void GLES2GetFloatv(GLenum pname, GLfloat* params) {
385 gles2::GetGLContext()->GetFloatv(pname, params);
387 GLint GLES2GetFragDataLocation(GLuint program, const char* name) {
388 return gles2::GetGLContext()->GetFragDataLocation(program, name);
390 void GLES2GetFramebufferAttachmentParameteriv(GLenum target,
391 GLenum attachment,
392 GLenum pname,
393 GLint* params) {
394 gles2::GetGLContext()->GetFramebufferAttachmentParameteriv(target, attachment,
395 pname, params);
397 void GLES2GetIntegerv(GLenum pname, GLint* params) {
398 gles2::GetGLContext()->GetIntegerv(pname, params);
400 void GLES2GetInternalformativ(GLenum target,
401 GLenum format,
402 GLenum pname,
403 GLsizei bufSize,
404 GLint* params) {
405 gles2::GetGLContext()->GetInternalformativ(target, format, pname, bufSize,
406 params);
408 void GLES2GetProgramiv(GLuint program, GLenum pname, GLint* params) {
409 gles2::GetGLContext()->GetProgramiv(program, pname, params);
411 void GLES2GetProgramInfoLog(GLuint program,
412 GLsizei bufsize,
413 GLsizei* length,
414 char* infolog) {
415 gles2::GetGLContext()->GetProgramInfoLog(program, bufsize, length, infolog);
417 void GLES2GetRenderbufferParameteriv(GLenum target,
418 GLenum pname,
419 GLint* params) {
420 gles2::GetGLContext()->GetRenderbufferParameteriv(target, pname, params);
422 void GLES2GetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat* params) {
423 gles2::GetGLContext()->GetSamplerParameterfv(sampler, pname, params);
425 void GLES2GetSamplerParameteriv(GLuint sampler, GLenum pname, GLint* params) {
426 gles2::GetGLContext()->GetSamplerParameteriv(sampler, pname, params);
428 void GLES2GetShaderiv(GLuint shader, GLenum pname, GLint* params) {
429 gles2::GetGLContext()->GetShaderiv(shader, pname, params);
431 void GLES2GetShaderInfoLog(GLuint shader,
432 GLsizei bufsize,
433 GLsizei* length,
434 char* infolog) {
435 gles2::GetGLContext()->GetShaderInfoLog(shader, bufsize, length, infolog);
437 void GLES2GetShaderPrecisionFormat(GLenum shadertype,
438 GLenum precisiontype,
439 GLint* range,
440 GLint* precision) {
441 gles2::GetGLContext()->GetShaderPrecisionFormat(shadertype, precisiontype,
442 range, precision);
444 void GLES2GetShaderSource(GLuint shader,
445 GLsizei bufsize,
446 GLsizei* length,
447 char* source) {
448 gles2::GetGLContext()->GetShaderSource(shader, bufsize, length, source);
450 const GLubyte* GLES2GetString(GLenum name) {
451 return gles2::GetGLContext()->GetString(name);
453 void GLES2GetSynciv(GLsync sync,
454 GLenum pname,
455 GLsizei bufsize,
456 GLsizei* length,
457 GLint* values) {
458 gles2::GetGLContext()->GetSynciv(sync, pname, bufsize, length, values);
460 void GLES2GetTexParameterfv(GLenum target, GLenum pname, GLfloat* params) {
461 gles2::GetGLContext()->GetTexParameterfv(target, pname, params);
463 void GLES2GetTexParameteriv(GLenum target, GLenum pname, GLint* params) {
464 gles2::GetGLContext()->GetTexParameteriv(target, pname, params);
466 void GLES2GetTransformFeedbackVarying(GLuint program,
467 GLuint index,
468 GLsizei bufsize,
469 GLsizei* length,
470 GLsizei* size,
471 GLenum* type,
472 char* name) {
473 gles2::GetGLContext()->GetTransformFeedbackVarying(program, index, bufsize,
474 length, size, type, name);
476 GLuint GLES2GetUniformBlockIndex(GLuint program, const char* name) {
477 return gles2::GetGLContext()->GetUniformBlockIndex(program, name);
479 void GLES2GetUniformfv(GLuint program, GLint location, GLfloat* params) {
480 gles2::GetGLContext()->GetUniformfv(program, location, params);
482 void GLES2GetUniformiv(GLuint program, GLint location, GLint* params) {
483 gles2::GetGLContext()->GetUniformiv(program, location, params);
485 void GLES2GetUniformIndices(GLuint program,
486 GLsizei count,
487 const char* const* names,
488 GLuint* indices) {
489 gles2::GetGLContext()->GetUniformIndices(program, count, names, indices);
491 GLint GLES2GetUniformLocation(GLuint program, const char* name) {
492 return gles2::GetGLContext()->GetUniformLocation(program, name);
494 void GLES2GetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params) {
495 gles2::GetGLContext()->GetVertexAttribfv(index, pname, params);
497 void GLES2GetVertexAttribiv(GLuint index, GLenum pname, GLint* params) {
498 gles2::GetGLContext()->GetVertexAttribiv(index, pname, params);
500 void GLES2GetVertexAttribPointerv(GLuint index, GLenum pname, void** pointer) {
501 gles2::GetGLContext()->GetVertexAttribPointerv(index, pname, pointer);
503 void GLES2Hint(GLenum target, GLenum mode) {
504 gles2::GetGLContext()->Hint(target, mode);
506 void GLES2InvalidateFramebuffer(GLenum target,
507 GLsizei count,
508 const GLenum* attachments) {
509 gles2::GetGLContext()->InvalidateFramebuffer(target, count, attachments);
511 void GLES2InvalidateSubFramebuffer(GLenum target,
512 GLsizei count,
513 const GLenum* attachments,
514 GLint x,
515 GLint y,
516 GLsizei width,
517 GLsizei height) {
518 gles2::GetGLContext()->InvalidateSubFramebuffer(target, count, attachments, x,
519 y, width, height);
521 GLboolean GLES2IsBuffer(GLuint buffer) {
522 return gles2::GetGLContext()->IsBuffer(buffer);
524 GLboolean GLES2IsEnabled(GLenum cap) {
525 return gles2::GetGLContext()->IsEnabled(cap);
527 GLboolean GLES2IsFramebuffer(GLuint framebuffer) {
528 return gles2::GetGLContext()->IsFramebuffer(framebuffer);
530 GLboolean GLES2IsProgram(GLuint program) {
531 return gles2::GetGLContext()->IsProgram(program);
533 GLboolean GLES2IsRenderbuffer(GLuint renderbuffer) {
534 return gles2::GetGLContext()->IsRenderbuffer(renderbuffer);
536 GLboolean GLES2IsSampler(GLuint sampler) {
537 return gles2::GetGLContext()->IsSampler(sampler);
539 GLboolean GLES2IsShader(GLuint shader) {
540 return gles2::GetGLContext()->IsShader(shader);
542 GLboolean GLES2IsSync(GLsync sync) {
543 return gles2::GetGLContext()->IsSync(sync);
545 GLboolean GLES2IsTexture(GLuint texture) {
546 return gles2::GetGLContext()->IsTexture(texture);
548 GLboolean GLES2IsTransformFeedback(GLuint transformfeedback) {
549 return gles2::GetGLContext()->IsTransformFeedback(transformfeedback);
551 void GLES2LineWidth(GLfloat width) {
552 gles2::GetGLContext()->LineWidth(width);
554 void GLES2LinkProgram(GLuint program) {
555 gles2::GetGLContext()->LinkProgram(program);
557 void GLES2PauseTransformFeedback() {
558 gles2::GetGLContext()->PauseTransformFeedback();
560 void GLES2PixelStorei(GLenum pname, GLint param) {
561 gles2::GetGLContext()->PixelStorei(pname, param);
563 void GLES2PolygonOffset(GLfloat factor, GLfloat units) {
564 gles2::GetGLContext()->PolygonOffset(factor, units);
566 void GLES2ReadBuffer(GLenum src) {
567 gles2::GetGLContext()->ReadBuffer(src);
569 void GLES2ReadPixels(GLint x,
570 GLint y,
571 GLsizei width,
572 GLsizei height,
573 GLenum format,
574 GLenum type,
575 void* pixels) {
576 gles2::GetGLContext()->ReadPixels(x, y, width, height, format, type, pixels);
578 void GLES2ReleaseShaderCompiler() {
579 gles2::GetGLContext()->ReleaseShaderCompiler();
581 void GLES2RenderbufferStorage(GLenum target,
582 GLenum internalformat,
583 GLsizei width,
584 GLsizei height) {
585 gles2::GetGLContext()->RenderbufferStorage(target, internalformat, width,
586 height);
588 void GLES2ResumeTransformFeedback() {
589 gles2::GetGLContext()->ResumeTransformFeedback();
591 void GLES2SampleCoverage(GLclampf value, GLboolean invert) {
592 gles2::GetGLContext()->SampleCoverage(value, invert);
594 void GLES2SamplerParameterf(GLuint sampler, GLenum pname, GLfloat param) {
595 gles2::GetGLContext()->SamplerParameterf(sampler, pname, param);
597 void GLES2SamplerParameterfv(GLuint sampler,
598 GLenum pname,
599 const GLfloat* params) {
600 gles2::GetGLContext()->SamplerParameterfv(sampler, pname, params);
602 void GLES2SamplerParameteri(GLuint sampler, GLenum pname, GLint param) {
603 gles2::GetGLContext()->SamplerParameteri(sampler, pname, param);
605 void GLES2SamplerParameteriv(GLuint sampler,
606 GLenum pname,
607 const GLint* params) {
608 gles2::GetGLContext()->SamplerParameteriv(sampler, pname, params);
610 void GLES2Scissor(GLint x, GLint y, GLsizei width, GLsizei height) {
611 gles2::GetGLContext()->Scissor(x, y, width, height);
613 void GLES2ShaderBinary(GLsizei n,
614 const GLuint* shaders,
615 GLenum binaryformat,
616 const void* binary,
617 GLsizei length) {
618 gles2::GetGLContext()->ShaderBinary(n, shaders, binaryformat, binary, length);
620 void GLES2ShaderSource(GLuint shader,
621 GLsizei count,
622 const GLchar* const* str,
623 const GLint* length) {
624 gles2::GetGLContext()->ShaderSource(shader, count, str, length);
626 void GLES2ShallowFinishCHROMIUM() {
627 gles2::GetGLContext()->ShallowFinishCHROMIUM();
629 void GLES2ShallowFlushCHROMIUM() {
630 gles2::GetGLContext()->ShallowFlushCHROMIUM();
632 void GLES2OrderingBarrierCHROMIUM() {
633 gles2::GetGLContext()->OrderingBarrierCHROMIUM();
635 void GLES2StencilFunc(GLenum func, GLint ref, GLuint mask) {
636 gles2::GetGLContext()->StencilFunc(func, ref, mask);
638 void GLES2StencilFuncSeparate(GLenum face,
639 GLenum func,
640 GLint ref,
641 GLuint mask) {
642 gles2::GetGLContext()->StencilFuncSeparate(face, func, ref, mask);
644 void GLES2StencilMask(GLuint mask) {
645 gles2::GetGLContext()->StencilMask(mask);
647 void GLES2StencilMaskSeparate(GLenum face, GLuint mask) {
648 gles2::GetGLContext()->StencilMaskSeparate(face, mask);
650 void GLES2StencilOp(GLenum fail, GLenum zfail, GLenum zpass) {
651 gles2::GetGLContext()->StencilOp(fail, zfail, zpass);
653 void GLES2StencilOpSeparate(GLenum face,
654 GLenum fail,
655 GLenum zfail,
656 GLenum zpass) {
657 gles2::GetGLContext()->StencilOpSeparate(face, fail, zfail, zpass);
659 void GLES2TexImage2D(GLenum target,
660 GLint level,
661 GLint internalformat,
662 GLsizei width,
663 GLsizei height,
664 GLint border,
665 GLenum format,
666 GLenum type,
667 const void* pixels) {
668 gles2::GetGLContext()->TexImage2D(target, level, internalformat, width,
669 height, border, format, type, pixels);
671 void GLES2TexImage3D(GLenum target,
672 GLint level,
673 GLint internalformat,
674 GLsizei width,
675 GLsizei height,
676 GLsizei depth,
677 GLint border,
678 GLenum format,
679 GLenum type,
680 const void* pixels) {
681 gles2::GetGLContext()->TexImage3D(target, level, internalformat, width,
682 height, depth, border, format, type,
683 pixels);
685 void GLES2TexParameterf(GLenum target, GLenum pname, GLfloat param) {
686 gles2::GetGLContext()->TexParameterf(target, pname, param);
688 void GLES2TexParameterfv(GLenum target, GLenum pname, const GLfloat* params) {
689 gles2::GetGLContext()->TexParameterfv(target, pname, params);
691 void GLES2TexParameteri(GLenum target, GLenum pname, GLint param) {
692 gles2::GetGLContext()->TexParameteri(target, pname, param);
694 void GLES2TexParameteriv(GLenum target, GLenum pname, const GLint* params) {
695 gles2::GetGLContext()->TexParameteriv(target, pname, params);
697 void GLES2TexStorage3D(GLenum target,
698 GLsizei levels,
699 GLenum internalFormat,
700 GLsizei width,
701 GLsizei height,
702 GLsizei depth) {
703 gles2::GetGLContext()->TexStorage3D(target, levels, internalFormat, width,
704 height, depth);
706 void GLES2TexSubImage2D(GLenum target,
707 GLint level,
708 GLint xoffset,
709 GLint yoffset,
710 GLsizei width,
711 GLsizei height,
712 GLenum format,
713 GLenum type,
714 const void* pixels) {
715 gles2::GetGLContext()->TexSubImage2D(target, level, xoffset, yoffset, width,
716 height, format, type, pixels);
718 void GLES2TexSubImage3D(GLenum target,
719 GLint level,
720 GLint xoffset,
721 GLint yoffset,
722 GLint zoffset,
723 GLsizei width,
724 GLsizei height,
725 GLsizei depth,
726 GLenum format,
727 GLenum type,
728 const void* pixels) {
729 gles2::GetGLContext()->TexSubImage3D(target, level, xoffset, yoffset, zoffset,
730 width, height, depth, format, type,
731 pixels);
733 void GLES2TransformFeedbackVaryings(GLuint program,
734 GLsizei count,
735 const char* const* varyings,
736 GLenum buffermode) {
737 gles2::GetGLContext()->TransformFeedbackVaryings(program, count, varyings,
738 buffermode);
740 void GLES2Uniform1f(GLint location, GLfloat x) {
741 gles2::GetGLContext()->Uniform1f(location, x);
743 void GLES2Uniform1fv(GLint location, GLsizei count, const GLfloat* v) {
744 gles2::GetGLContext()->Uniform1fv(location, count, v);
746 void GLES2Uniform1i(GLint location, GLint x) {
747 gles2::GetGLContext()->Uniform1i(location, x);
749 void GLES2Uniform1iv(GLint location, GLsizei count, const GLint* v) {
750 gles2::GetGLContext()->Uniform1iv(location, count, v);
752 void GLES2Uniform1ui(GLint location, GLuint x) {
753 gles2::GetGLContext()->Uniform1ui(location, x);
755 void GLES2Uniform1uiv(GLint location, GLsizei count, const GLuint* v) {
756 gles2::GetGLContext()->Uniform1uiv(location, count, v);
758 void GLES2Uniform2f(GLint location, GLfloat x, GLfloat y) {
759 gles2::GetGLContext()->Uniform2f(location, x, y);
761 void GLES2Uniform2fv(GLint location, GLsizei count, const GLfloat* v) {
762 gles2::GetGLContext()->Uniform2fv(location, count, v);
764 void GLES2Uniform2i(GLint location, GLint x, GLint y) {
765 gles2::GetGLContext()->Uniform2i(location, x, y);
767 void GLES2Uniform2iv(GLint location, GLsizei count, const GLint* v) {
768 gles2::GetGLContext()->Uniform2iv(location, count, v);
770 void GLES2Uniform2ui(GLint location, GLuint x, GLuint y) {
771 gles2::GetGLContext()->Uniform2ui(location, x, y);
773 void GLES2Uniform2uiv(GLint location, GLsizei count, const GLuint* v) {
774 gles2::GetGLContext()->Uniform2uiv(location, count, v);
776 void GLES2Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) {
777 gles2::GetGLContext()->Uniform3f(location, x, y, z);
779 void GLES2Uniform3fv(GLint location, GLsizei count, const GLfloat* v) {
780 gles2::GetGLContext()->Uniform3fv(location, count, v);
782 void GLES2Uniform3i(GLint location, GLint x, GLint y, GLint z) {
783 gles2::GetGLContext()->Uniform3i(location, x, y, z);
785 void GLES2Uniform3iv(GLint location, GLsizei count, const GLint* v) {
786 gles2::GetGLContext()->Uniform3iv(location, count, v);
788 void GLES2Uniform3ui(GLint location, GLuint x, GLuint y, GLuint z) {
789 gles2::GetGLContext()->Uniform3ui(location, x, y, z);
791 void GLES2Uniform3uiv(GLint location, GLsizei count, const GLuint* v) {
792 gles2::GetGLContext()->Uniform3uiv(location, count, v);
794 void GLES2Uniform4f(GLint location,
795 GLfloat x,
796 GLfloat y,
797 GLfloat z,
798 GLfloat w) {
799 gles2::GetGLContext()->Uniform4f(location, x, y, z, w);
801 void GLES2Uniform4fv(GLint location, GLsizei count, const GLfloat* v) {
802 gles2::GetGLContext()->Uniform4fv(location, count, v);
804 void GLES2Uniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) {
805 gles2::GetGLContext()->Uniform4i(location, x, y, z, w);
807 void GLES2Uniform4iv(GLint location, GLsizei count, const GLint* v) {
808 gles2::GetGLContext()->Uniform4iv(location, count, v);
810 void GLES2Uniform4ui(GLint location, GLuint x, GLuint y, GLuint z, GLuint w) {
811 gles2::GetGLContext()->Uniform4ui(location, x, y, z, w);
813 void GLES2Uniform4uiv(GLint location, GLsizei count, const GLuint* v) {
814 gles2::GetGLContext()->Uniform4uiv(location, count, v);
816 void GLES2UniformBlockBinding(GLuint program, GLuint index, GLuint binding) {
817 gles2::GetGLContext()->UniformBlockBinding(program, index, binding);
819 void GLES2UniformMatrix2fv(GLint location,
820 GLsizei count,
821 GLboolean transpose,
822 const GLfloat* value) {
823 gles2::GetGLContext()->UniformMatrix2fv(location, count, transpose, value);
825 void GLES2UniformMatrix2x3fv(GLint location,
826 GLsizei count,
827 GLboolean transpose,
828 const GLfloat* value) {
829 gles2::GetGLContext()->UniformMatrix2x3fv(location, count, transpose, value);
831 void GLES2UniformMatrix2x4fv(GLint location,
832 GLsizei count,
833 GLboolean transpose,
834 const GLfloat* value) {
835 gles2::GetGLContext()->UniformMatrix2x4fv(location, count, transpose, value);
837 void GLES2UniformMatrix3fv(GLint location,
838 GLsizei count,
839 GLboolean transpose,
840 const GLfloat* value) {
841 gles2::GetGLContext()->UniformMatrix3fv(location, count, transpose, value);
843 void GLES2UniformMatrix3x2fv(GLint location,
844 GLsizei count,
845 GLboolean transpose,
846 const GLfloat* value) {
847 gles2::GetGLContext()->UniformMatrix3x2fv(location, count, transpose, value);
849 void GLES2UniformMatrix3x4fv(GLint location,
850 GLsizei count,
851 GLboolean transpose,
852 const GLfloat* value) {
853 gles2::GetGLContext()->UniformMatrix3x4fv(location, count, transpose, value);
855 void GLES2UniformMatrix4fv(GLint location,
856 GLsizei count,
857 GLboolean transpose,
858 const GLfloat* value) {
859 gles2::GetGLContext()->UniformMatrix4fv(location, count, transpose, value);
861 void GLES2UniformMatrix4x2fv(GLint location,
862 GLsizei count,
863 GLboolean transpose,
864 const GLfloat* value) {
865 gles2::GetGLContext()->UniformMatrix4x2fv(location, count, transpose, value);
867 void GLES2UniformMatrix4x3fv(GLint location,
868 GLsizei count,
869 GLboolean transpose,
870 const GLfloat* value) {
871 gles2::GetGLContext()->UniformMatrix4x3fv(location, count, transpose, value);
873 void GLES2UseProgram(GLuint program) {
874 gles2::GetGLContext()->UseProgram(program);
876 void GLES2ValidateProgram(GLuint program) {
877 gles2::GetGLContext()->ValidateProgram(program);
879 void GLES2VertexAttrib1f(GLuint indx, GLfloat x) {
880 gles2::GetGLContext()->VertexAttrib1f(indx, x);
882 void GLES2VertexAttrib1fv(GLuint indx, const GLfloat* values) {
883 gles2::GetGLContext()->VertexAttrib1fv(indx, values);
885 void GLES2VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) {
886 gles2::GetGLContext()->VertexAttrib2f(indx, x, y);
888 void GLES2VertexAttrib2fv(GLuint indx, const GLfloat* values) {
889 gles2::GetGLContext()->VertexAttrib2fv(indx, values);
891 void GLES2VertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) {
892 gles2::GetGLContext()->VertexAttrib3f(indx, x, y, z);
894 void GLES2VertexAttrib3fv(GLuint indx, const GLfloat* values) {
895 gles2::GetGLContext()->VertexAttrib3fv(indx, values);
897 void GLES2VertexAttrib4f(GLuint indx,
898 GLfloat x,
899 GLfloat y,
900 GLfloat z,
901 GLfloat w) {
902 gles2::GetGLContext()->VertexAttrib4f(indx, x, y, z, w);
904 void GLES2VertexAttrib4fv(GLuint indx, const GLfloat* values) {
905 gles2::GetGLContext()->VertexAttrib4fv(indx, values);
907 void GLES2VertexAttribI4i(GLuint indx, GLint x, GLint y, GLint z, GLint w) {
908 gles2::GetGLContext()->VertexAttribI4i(indx, x, y, z, w);
910 void GLES2VertexAttribI4iv(GLuint indx, const GLint* values) {
911 gles2::GetGLContext()->VertexAttribI4iv(indx, values);
913 void GLES2VertexAttribI4ui(GLuint indx,
914 GLuint x,
915 GLuint y,
916 GLuint z,
917 GLuint w) {
918 gles2::GetGLContext()->VertexAttribI4ui(indx, x, y, z, w);
920 void GLES2VertexAttribI4uiv(GLuint indx, const GLuint* values) {
921 gles2::GetGLContext()->VertexAttribI4uiv(indx, values);
923 void GLES2VertexAttribIPointer(GLuint indx,
924 GLint size,
925 GLenum type,
926 GLsizei stride,
927 const void* ptr) {
928 gles2::GetGLContext()->VertexAttribIPointer(indx, size, type, stride, ptr);
930 void GLES2VertexAttribPointer(GLuint indx,
931 GLint size,
932 GLenum type,
933 GLboolean normalized,
934 GLsizei stride,
935 const void* ptr) {
936 gles2::GetGLContext()->VertexAttribPointer(indx, size, type, normalized,
937 stride, ptr);
939 void GLES2Viewport(GLint x, GLint y, GLsizei width, GLsizei height) {
940 gles2::GetGLContext()->Viewport(x, y, width, height);
942 void GLES2WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) {
943 gles2::GetGLContext()->WaitSync(sync, flags, timeout);
945 void GLES2BlitFramebufferCHROMIUM(GLint srcX0,
946 GLint srcY0,
947 GLint srcX1,
948 GLint srcY1,
949 GLint dstX0,
950 GLint dstY0,
951 GLint dstX1,
952 GLint dstY1,
953 GLbitfield mask,
954 GLenum filter) {
955 gles2::GetGLContext()->BlitFramebufferCHROMIUM(
956 srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
958 void GLES2RenderbufferStorageMultisampleCHROMIUM(GLenum target,
959 GLsizei samples,
960 GLenum internalformat,
961 GLsizei width,
962 GLsizei height) {
963 gles2::GetGLContext()->RenderbufferStorageMultisampleCHROMIUM(
964 target, samples, internalformat, width, height);
966 void GLES2RenderbufferStorageMultisampleEXT(GLenum target,
967 GLsizei samples,
968 GLenum internalformat,
969 GLsizei width,
970 GLsizei height) {
971 gles2::GetGLContext()->RenderbufferStorageMultisampleEXT(
972 target, samples, internalformat, width, height);
974 void GLES2FramebufferTexture2DMultisampleEXT(GLenum target,
975 GLenum attachment,
976 GLenum textarget,
977 GLuint texture,
978 GLint level,
979 GLsizei samples) {
980 gles2::GetGLContext()->FramebufferTexture2DMultisampleEXT(
981 target, attachment, textarget, texture, level, samples);
983 void GLES2TexStorage2DEXT(GLenum target,
984 GLsizei levels,
985 GLenum internalFormat,
986 GLsizei width,
987 GLsizei height) {
988 gles2::GetGLContext()->TexStorage2DEXT(target, levels, internalFormat, width,
989 height);
991 void GLES2GenQueriesEXT(GLsizei n, GLuint* queries) {
992 gles2::GetGLContext()->GenQueriesEXT(n, queries);
994 void GLES2DeleteQueriesEXT(GLsizei n, const GLuint* queries) {
995 gles2::GetGLContext()->DeleteQueriesEXT(n, queries);
997 GLboolean GLES2IsQueryEXT(GLuint id) {
998 return gles2::GetGLContext()->IsQueryEXT(id);
1000 void GLES2BeginQueryEXT(GLenum target, GLuint id) {
1001 gles2::GetGLContext()->BeginQueryEXT(target, id);
1003 void GLES2BeginTransformFeedback(GLenum primitivemode) {
1004 gles2::GetGLContext()->BeginTransformFeedback(primitivemode);
1006 void GLES2EndQueryEXT(GLenum target) {
1007 gles2::GetGLContext()->EndQueryEXT(target);
1009 void GLES2EndTransformFeedback() {
1010 gles2::GetGLContext()->EndTransformFeedback();
1012 void GLES2GetQueryivEXT(GLenum target, GLenum pname, GLint* params) {
1013 gles2::GetGLContext()->GetQueryivEXT(target, pname, params);
1015 void GLES2GetQueryObjectuivEXT(GLuint id, GLenum pname, GLuint* params) {
1016 gles2::GetGLContext()->GetQueryObjectuivEXT(id, pname, params);
1018 void GLES2InsertEventMarkerEXT(GLsizei length, const GLchar* marker) {
1019 gles2::GetGLContext()->InsertEventMarkerEXT(length, marker);
1021 void GLES2PushGroupMarkerEXT(GLsizei length, const GLchar* marker) {
1022 gles2::GetGLContext()->PushGroupMarkerEXT(length, marker);
1024 void GLES2PopGroupMarkerEXT() {
1025 gles2::GetGLContext()->PopGroupMarkerEXT();
1027 void GLES2GenVertexArraysOES(GLsizei n, GLuint* arrays) {
1028 gles2::GetGLContext()->GenVertexArraysOES(n, arrays);
1030 void GLES2DeleteVertexArraysOES(GLsizei n, const GLuint* arrays) {
1031 gles2::GetGLContext()->DeleteVertexArraysOES(n, arrays);
1033 GLboolean GLES2IsVertexArrayOES(GLuint array) {
1034 return gles2::GetGLContext()->IsVertexArrayOES(array);
1036 void GLES2BindVertexArrayOES(GLuint array) {
1037 gles2::GetGLContext()->BindVertexArrayOES(array);
1039 void GLES2SwapBuffers() {
1040 gles2::GetGLContext()->SwapBuffers();
1042 GLuint GLES2GetMaxValueInBufferCHROMIUM(GLuint buffer_id,
1043 GLsizei count,
1044 GLenum type,
1045 GLuint offset) {
1046 return gles2::GetGLContext()->GetMaxValueInBufferCHROMIUM(buffer_id, count,
1047 type, offset);
1049 GLboolean GLES2EnableFeatureCHROMIUM(const char* feature) {
1050 return gles2::GetGLContext()->EnableFeatureCHROMIUM(feature);
1052 void* GLES2MapBufferCHROMIUM(GLuint target, GLenum access) {
1053 return gles2::GetGLContext()->MapBufferCHROMIUM(target, access);
1055 GLboolean GLES2UnmapBufferCHROMIUM(GLuint target) {
1056 return gles2::GetGLContext()->UnmapBufferCHROMIUM(target);
1058 void* GLES2MapBufferSubDataCHROMIUM(GLuint target,
1059 GLintptr offset,
1060 GLsizeiptr size,
1061 GLenum access) {
1062 return gles2::GetGLContext()->MapBufferSubDataCHROMIUM(target, offset, size,
1063 access);
1065 void GLES2UnmapBufferSubDataCHROMIUM(const void* mem) {
1066 gles2::GetGLContext()->UnmapBufferSubDataCHROMIUM(mem);
1068 void* GLES2MapTexSubImage2DCHROMIUM(GLenum target,
1069 GLint level,
1070 GLint xoffset,
1071 GLint yoffset,
1072 GLsizei width,
1073 GLsizei height,
1074 GLenum format,
1075 GLenum type,
1076 GLenum access) {
1077 return gles2::GetGLContext()->MapTexSubImage2DCHROMIUM(
1078 target, level, xoffset, yoffset, width, height, format, type, access);
1080 void GLES2UnmapTexSubImage2DCHROMIUM(const void* mem) {
1081 gles2::GetGLContext()->UnmapTexSubImage2DCHROMIUM(mem);
1083 void GLES2ResizeCHROMIUM(GLuint width, GLuint height, GLfloat scale_factor) {
1084 gles2::GetGLContext()->ResizeCHROMIUM(width, height, scale_factor);
1086 const GLchar* GLES2GetRequestableExtensionsCHROMIUM() {
1087 return gles2::GetGLContext()->GetRequestableExtensionsCHROMIUM();
1089 void GLES2RequestExtensionCHROMIUM(const char* extension) {
1090 gles2::GetGLContext()->RequestExtensionCHROMIUM(extension);
1092 void GLES2RateLimitOffscreenContextCHROMIUM() {
1093 gles2::GetGLContext()->RateLimitOffscreenContextCHROMIUM();
1095 void GLES2GetProgramInfoCHROMIUM(GLuint program,
1096 GLsizei bufsize,
1097 GLsizei* size,
1098 void* info) {
1099 gles2::GetGLContext()->GetProgramInfoCHROMIUM(program, bufsize, size, info);
1101 void GLES2GetUniformBlocksCHROMIUM(GLuint program,
1102 GLsizei bufsize,
1103 GLsizei* size,
1104 void* info) {
1105 gles2::GetGLContext()->GetUniformBlocksCHROMIUM(program, bufsize, size, info);
1107 void GLES2GetTransformFeedbackVaryingsCHROMIUM(GLuint program,
1108 GLsizei bufsize,
1109 GLsizei* size,
1110 void* info) {
1111 gles2::GetGLContext()->GetTransformFeedbackVaryingsCHROMIUM(program, bufsize,
1112 size, info);
1114 void GLES2GetUniformsES3CHROMIUM(GLuint program,
1115 GLsizei bufsize,
1116 GLsizei* size,
1117 void* info) {
1118 gles2::GetGLContext()->GetUniformsES3CHROMIUM(program, bufsize, size, info);
1120 GLuint GLES2CreateStreamTextureCHROMIUM(GLuint texture) {
1121 return gles2::GetGLContext()->CreateStreamTextureCHROMIUM(texture);
1123 GLuint GLES2CreateImageCHROMIUM(ClientBuffer buffer,
1124 GLsizei width,
1125 GLsizei height,
1126 GLenum internalformat) {
1127 return gles2::GetGLContext()->CreateImageCHROMIUM(buffer, width, height,
1128 internalformat);
1130 void GLES2DestroyImageCHROMIUM(GLuint image_id) {
1131 gles2::GetGLContext()->DestroyImageCHROMIUM(image_id);
1133 GLuint GLES2CreateGpuMemoryBufferImageCHROMIUM(GLsizei width,
1134 GLsizei height,
1135 GLenum internalformat,
1136 GLenum usage) {
1137 return gles2::GetGLContext()->CreateGpuMemoryBufferImageCHROMIUM(
1138 width, height, internalformat, usage);
1140 void GLES2GetTranslatedShaderSourceANGLE(GLuint shader,
1141 GLsizei bufsize,
1142 GLsizei* length,
1143 char* source) {
1144 gles2::GetGLContext()->GetTranslatedShaderSourceANGLE(shader, bufsize, length,
1145 source);
1147 void GLES2PostSubBufferCHROMIUM(GLint x, GLint y, GLint width, GLint height) {
1148 gles2::GetGLContext()->PostSubBufferCHROMIUM(x, y, width, height);
1150 void GLES2TexImageIOSurface2DCHROMIUM(GLenum target,
1151 GLsizei width,
1152 GLsizei height,
1153 GLuint ioSurfaceId,
1154 GLuint plane) {
1155 gles2::GetGLContext()->TexImageIOSurface2DCHROMIUM(target, width, height,
1156 ioSurfaceId, plane);
1158 void GLES2CopyTextureCHROMIUM(GLenum target,
1159 GLenum source_id,
1160 GLenum dest_id,
1161 GLint level,
1162 GLint internalformat,
1163 GLenum dest_type) {
1164 gles2::GetGLContext()->CopyTextureCHROMIUM(target, source_id, dest_id, level,
1165 internalformat, dest_type);
1167 void GLES2DrawArraysInstancedANGLE(GLenum mode,
1168 GLint first,
1169 GLsizei count,
1170 GLsizei primcount) {
1171 gles2::GetGLContext()->DrawArraysInstancedANGLE(mode, first, count,
1172 primcount);
1174 void GLES2DrawElementsInstancedANGLE(GLenum mode,
1175 GLsizei count,
1176 GLenum type,
1177 const void* indices,
1178 GLsizei primcount) {
1179 gles2::GetGLContext()->DrawElementsInstancedANGLE(mode, count, type, indices,
1180 primcount);
1182 void GLES2VertexAttribDivisorANGLE(GLuint index, GLuint divisor) {
1183 gles2::GetGLContext()->VertexAttribDivisorANGLE(index, divisor);
1185 void GLES2GenMailboxCHROMIUM(GLbyte* mailbox) {
1186 gles2::GetGLContext()->GenMailboxCHROMIUM(mailbox);
1188 void GLES2ProduceTextureCHROMIUM(GLenum target, const GLbyte* mailbox) {
1189 gles2::GetGLContext()->ProduceTextureCHROMIUM(target, mailbox);
1191 void GLES2ProduceTextureDirectCHROMIUM(GLuint texture,
1192 GLenum target,
1193 const GLbyte* mailbox) {
1194 gles2::GetGLContext()->ProduceTextureDirectCHROMIUM(texture, target, mailbox);
1196 void GLES2ConsumeTextureCHROMIUM(GLenum target, const GLbyte* mailbox) {
1197 gles2::GetGLContext()->ConsumeTextureCHROMIUM(target, mailbox);
1199 GLuint GLES2CreateAndConsumeTextureCHROMIUM(GLenum target,
1200 const GLbyte* mailbox) {
1201 return gles2::GetGLContext()->CreateAndConsumeTextureCHROMIUM(target,
1202 mailbox);
1204 void GLES2BindUniformLocationCHROMIUM(GLuint program,
1205 GLint location,
1206 const char* name) {
1207 gles2::GetGLContext()->BindUniformLocationCHROMIUM(program, location, name);
1209 void GLES2GenValuebuffersCHROMIUM(GLsizei n, GLuint* buffers) {
1210 gles2::GetGLContext()->GenValuebuffersCHROMIUM(n, buffers);
1212 void GLES2DeleteValuebuffersCHROMIUM(GLsizei n, const GLuint* valuebuffers) {
1213 gles2::GetGLContext()->DeleteValuebuffersCHROMIUM(n, valuebuffers);
1215 GLboolean GLES2IsValuebufferCHROMIUM(GLuint valuebuffer) {
1216 return gles2::GetGLContext()->IsValuebufferCHROMIUM(valuebuffer);
1218 void GLES2BindValuebufferCHROMIUM(GLenum target, GLuint valuebuffer) {
1219 gles2::GetGLContext()->BindValuebufferCHROMIUM(target, valuebuffer);
1221 void GLES2SubscribeValueCHROMIUM(GLenum target, GLenum subscription) {
1222 gles2::GetGLContext()->SubscribeValueCHROMIUM(target, subscription);
1224 void GLES2PopulateSubscribedValuesCHROMIUM(GLenum target) {
1225 gles2::GetGLContext()->PopulateSubscribedValuesCHROMIUM(target);
1227 void GLES2UniformValuebufferCHROMIUM(GLint location,
1228 GLenum target,
1229 GLenum subscription) {
1230 gles2::GetGLContext()->UniformValuebufferCHROMIUM(location, target,
1231 subscription);
1233 void GLES2BindTexImage2DCHROMIUM(GLenum target, GLint imageId) {
1234 gles2::GetGLContext()->BindTexImage2DCHROMIUM(target, imageId);
1236 void GLES2ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) {
1237 gles2::GetGLContext()->ReleaseTexImage2DCHROMIUM(target, imageId);
1239 void GLES2TraceBeginCHROMIUM(const char* category_name,
1240 const char* trace_name) {
1241 gles2::GetGLContext()->TraceBeginCHROMIUM(category_name, trace_name);
1243 void GLES2TraceEndCHROMIUM() {
1244 gles2::GetGLContext()->TraceEndCHROMIUM();
1246 void GLES2AsyncTexSubImage2DCHROMIUM(GLenum target,
1247 GLint level,
1248 GLint xoffset,
1249 GLint yoffset,
1250 GLsizei width,
1251 GLsizei height,
1252 GLenum format,
1253 GLenum type,
1254 const void* data) {
1255 gles2::GetGLContext()->AsyncTexSubImage2DCHROMIUM(
1256 target, level, xoffset, yoffset, width, height, format, type, data);
1258 void GLES2AsyncTexImage2DCHROMIUM(GLenum target,
1259 GLint level,
1260 GLenum internalformat,
1261 GLsizei width,
1262 GLsizei height,
1263 GLint border,
1264 GLenum format,
1265 GLenum type,
1266 const void* pixels) {
1267 gles2::GetGLContext()->AsyncTexImage2DCHROMIUM(target, level, internalformat,
1268 width, height, border, format,
1269 type, pixels);
1271 void GLES2WaitAsyncTexImage2DCHROMIUM(GLenum target) {
1272 gles2::GetGLContext()->WaitAsyncTexImage2DCHROMIUM(target);
1274 void GLES2WaitAllAsyncTexImage2DCHROMIUM() {
1275 gles2::GetGLContext()->WaitAllAsyncTexImage2DCHROMIUM();
1277 void GLES2DiscardFramebufferEXT(GLenum target,
1278 GLsizei count,
1279 const GLenum* attachments) {
1280 gles2::GetGLContext()->DiscardFramebufferEXT(target, count, attachments);
1282 void GLES2LoseContextCHROMIUM(GLenum current, GLenum other) {
1283 gles2::GetGLContext()->LoseContextCHROMIUM(current, other);
1285 GLuint GLES2InsertSyncPointCHROMIUM() {
1286 return gles2::GetGLContext()->InsertSyncPointCHROMIUM();
1288 void GLES2WaitSyncPointCHROMIUM(GLuint sync_point) {
1289 gles2::GetGLContext()->WaitSyncPointCHROMIUM(sync_point);
1291 void GLES2DrawBuffersEXT(GLsizei count, const GLenum* bufs) {
1292 gles2::GetGLContext()->DrawBuffersEXT(count, bufs);
1294 void GLES2DiscardBackbufferCHROMIUM() {
1295 gles2::GetGLContext()->DiscardBackbufferCHROMIUM();
1297 void GLES2ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order,
1298 GLenum plane_transform,
1299 GLuint overlay_texture_id,
1300 GLint bounds_x,
1301 GLint bounds_y,
1302 GLint bounds_width,
1303 GLint bounds_height,
1304 GLfloat uv_x,
1305 GLfloat uv_y,
1306 GLfloat uv_width,
1307 GLfloat uv_height) {
1308 gles2::GetGLContext()->ScheduleOverlayPlaneCHROMIUM(
1309 plane_z_order, plane_transform, overlay_texture_id, bounds_x, bounds_y,
1310 bounds_width, bounds_height, uv_x, uv_y, uv_width, uv_height);
1312 void GLES2SwapInterval(GLint interval) {
1313 gles2::GetGLContext()->SwapInterval(interval);
1315 void GLES2MatrixLoadfCHROMIUM(GLenum matrixMode, const GLfloat* m) {
1316 gles2::GetGLContext()->MatrixLoadfCHROMIUM(matrixMode, m);
1318 void GLES2MatrixLoadIdentityCHROMIUM(GLenum matrixMode) {
1319 gles2::GetGLContext()->MatrixLoadIdentityCHROMIUM(matrixMode);
1321 void GLES2BlendBarrierKHR() {
1322 gles2::GetGLContext()->BlendBarrierKHR();
1325 namespace gles2 {
1327 extern const NameToFunc g_gles2_function_table[] = {
1329 "glActiveTexture",
1330 reinterpret_cast<GLES2FunctionPointer>(glActiveTexture),
1333 "glAttachShader",
1334 reinterpret_cast<GLES2FunctionPointer>(glAttachShader),
1337 "glBindAttribLocation",
1338 reinterpret_cast<GLES2FunctionPointer>(glBindAttribLocation),
1341 "glBindBuffer",
1342 reinterpret_cast<GLES2FunctionPointer>(glBindBuffer),
1345 "glBindBufferBase",
1346 reinterpret_cast<GLES2FunctionPointer>(glBindBufferBase),
1349 "glBindBufferRange",
1350 reinterpret_cast<GLES2FunctionPointer>(glBindBufferRange),
1353 "glBindFramebuffer",
1354 reinterpret_cast<GLES2FunctionPointer>(glBindFramebuffer),
1357 "glBindRenderbuffer",
1358 reinterpret_cast<GLES2FunctionPointer>(glBindRenderbuffer),
1361 "glBindSampler",
1362 reinterpret_cast<GLES2FunctionPointer>(glBindSampler),
1365 "glBindTexture",
1366 reinterpret_cast<GLES2FunctionPointer>(glBindTexture),
1369 "glBindTransformFeedback",
1370 reinterpret_cast<GLES2FunctionPointer>(glBindTransformFeedback),
1373 "glBlendColor",
1374 reinterpret_cast<GLES2FunctionPointer>(glBlendColor),
1377 "glBlendEquation",
1378 reinterpret_cast<GLES2FunctionPointer>(glBlendEquation),
1381 "glBlendEquationSeparate",
1382 reinterpret_cast<GLES2FunctionPointer>(glBlendEquationSeparate),
1385 "glBlendFunc",
1386 reinterpret_cast<GLES2FunctionPointer>(glBlendFunc),
1389 "glBlendFuncSeparate",
1390 reinterpret_cast<GLES2FunctionPointer>(glBlendFuncSeparate),
1393 "glBufferData",
1394 reinterpret_cast<GLES2FunctionPointer>(glBufferData),
1397 "glBufferSubData",
1398 reinterpret_cast<GLES2FunctionPointer>(glBufferSubData),
1401 "glCheckFramebufferStatus",
1402 reinterpret_cast<GLES2FunctionPointer>(glCheckFramebufferStatus),
1405 "glClear",
1406 reinterpret_cast<GLES2FunctionPointer>(glClear),
1409 "glClearBufferfi",
1410 reinterpret_cast<GLES2FunctionPointer>(glClearBufferfi),
1413 "glClearBufferfv",
1414 reinterpret_cast<GLES2FunctionPointer>(glClearBufferfv),
1417 "glClearBufferiv",
1418 reinterpret_cast<GLES2FunctionPointer>(glClearBufferiv),
1421 "glClearBufferuiv",
1422 reinterpret_cast<GLES2FunctionPointer>(glClearBufferuiv),
1425 "glClearColor",
1426 reinterpret_cast<GLES2FunctionPointer>(glClearColor),
1429 "glClearDepthf",
1430 reinterpret_cast<GLES2FunctionPointer>(glClearDepthf),
1433 "glClearStencil",
1434 reinterpret_cast<GLES2FunctionPointer>(glClearStencil),
1437 "glClientWaitSync",
1438 reinterpret_cast<GLES2FunctionPointer>(glClientWaitSync),
1441 "glColorMask",
1442 reinterpret_cast<GLES2FunctionPointer>(glColorMask),
1445 "glCompileShader",
1446 reinterpret_cast<GLES2FunctionPointer>(glCompileShader),
1449 "glCompressedTexImage2D",
1450 reinterpret_cast<GLES2FunctionPointer>(glCompressedTexImage2D),
1453 "glCompressedTexSubImage2D",
1454 reinterpret_cast<GLES2FunctionPointer>(glCompressedTexSubImage2D),
1457 "glCopyBufferSubData",
1458 reinterpret_cast<GLES2FunctionPointer>(glCopyBufferSubData),
1461 "glCopyTexImage2D",
1462 reinterpret_cast<GLES2FunctionPointer>(glCopyTexImage2D),
1465 "glCopyTexSubImage2D",
1466 reinterpret_cast<GLES2FunctionPointer>(glCopyTexSubImage2D),
1469 "glCopyTexSubImage3D",
1470 reinterpret_cast<GLES2FunctionPointer>(glCopyTexSubImage3D),
1473 "glCreateProgram",
1474 reinterpret_cast<GLES2FunctionPointer>(glCreateProgram),
1477 "glCreateShader",
1478 reinterpret_cast<GLES2FunctionPointer>(glCreateShader),
1481 "glCullFace",
1482 reinterpret_cast<GLES2FunctionPointer>(glCullFace),
1485 "glDeleteBuffers",
1486 reinterpret_cast<GLES2FunctionPointer>(glDeleteBuffers),
1489 "glDeleteFramebuffers",
1490 reinterpret_cast<GLES2FunctionPointer>(glDeleteFramebuffers),
1493 "glDeleteProgram",
1494 reinterpret_cast<GLES2FunctionPointer>(glDeleteProgram),
1497 "glDeleteRenderbuffers",
1498 reinterpret_cast<GLES2FunctionPointer>(glDeleteRenderbuffers),
1501 "glDeleteSamplers",
1502 reinterpret_cast<GLES2FunctionPointer>(glDeleteSamplers),
1505 "glDeleteSync",
1506 reinterpret_cast<GLES2FunctionPointer>(glDeleteSync),
1509 "glDeleteShader",
1510 reinterpret_cast<GLES2FunctionPointer>(glDeleteShader),
1513 "glDeleteTextures",
1514 reinterpret_cast<GLES2FunctionPointer>(glDeleteTextures),
1517 "glDeleteTransformFeedbacks",
1518 reinterpret_cast<GLES2FunctionPointer>(glDeleteTransformFeedbacks),
1521 "glDepthFunc",
1522 reinterpret_cast<GLES2FunctionPointer>(glDepthFunc),
1525 "glDepthMask",
1526 reinterpret_cast<GLES2FunctionPointer>(glDepthMask),
1529 "glDepthRangef",
1530 reinterpret_cast<GLES2FunctionPointer>(glDepthRangef),
1533 "glDetachShader",
1534 reinterpret_cast<GLES2FunctionPointer>(glDetachShader),
1537 "glDisable",
1538 reinterpret_cast<GLES2FunctionPointer>(glDisable),
1541 "glDisableVertexAttribArray",
1542 reinterpret_cast<GLES2FunctionPointer>(glDisableVertexAttribArray),
1545 "glDrawArrays",
1546 reinterpret_cast<GLES2FunctionPointer>(glDrawArrays),
1549 "glDrawElements",
1550 reinterpret_cast<GLES2FunctionPointer>(glDrawElements),
1553 "glEnable",
1554 reinterpret_cast<GLES2FunctionPointer>(glEnable),
1557 "glEnableVertexAttribArray",
1558 reinterpret_cast<GLES2FunctionPointer>(glEnableVertexAttribArray),
1561 "glFenceSync",
1562 reinterpret_cast<GLES2FunctionPointer>(glFenceSync),
1565 "glFinish",
1566 reinterpret_cast<GLES2FunctionPointer>(glFinish),
1569 "glFlush",
1570 reinterpret_cast<GLES2FunctionPointer>(glFlush),
1573 "glFramebufferRenderbuffer",
1574 reinterpret_cast<GLES2FunctionPointer>(glFramebufferRenderbuffer),
1577 "glFramebufferTexture2D",
1578 reinterpret_cast<GLES2FunctionPointer>(glFramebufferTexture2D),
1581 "glFramebufferTextureLayer",
1582 reinterpret_cast<GLES2FunctionPointer>(glFramebufferTextureLayer),
1585 "glFrontFace",
1586 reinterpret_cast<GLES2FunctionPointer>(glFrontFace),
1589 "glGenBuffers",
1590 reinterpret_cast<GLES2FunctionPointer>(glGenBuffers),
1593 "glGenerateMipmap",
1594 reinterpret_cast<GLES2FunctionPointer>(glGenerateMipmap),
1597 "glGenFramebuffers",
1598 reinterpret_cast<GLES2FunctionPointer>(glGenFramebuffers),
1601 "glGenRenderbuffers",
1602 reinterpret_cast<GLES2FunctionPointer>(glGenRenderbuffers),
1605 "glGenSamplers",
1606 reinterpret_cast<GLES2FunctionPointer>(glGenSamplers),
1609 "glGenTextures",
1610 reinterpret_cast<GLES2FunctionPointer>(glGenTextures),
1613 "glGenTransformFeedbacks",
1614 reinterpret_cast<GLES2FunctionPointer>(glGenTransformFeedbacks),
1617 "glGetActiveAttrib",
1618 reinterpret_cast<GLES2FunctionPointer>(glGetActiveAttrib),
1621 "glGetActiveUniform",
1622 reinterpret_cast<GLES2FunctionPointer>(glGetActiveUniform),
1625 "glGetActiveUniformBlockiv",
1626 reinterpret_cast<GLES2FunctionPointer>(glGetActiveUniformBlockiv),
1629 "glGetActiveUniformBlockName",
1630 reinterpret_cast<GLES2FunctionPointer>(glGetActiveUniformBlockName),
1633 "glGetActiveUniformsiv",
1634 reinterpret_cast<GLES2FunctionPointer>(glGetActiveUniformsiv),
1637 "glGetAttachedShaders",
1638 reinterpret_cast<GLES2FunctionPointer>(glGetAttachedShaders),
1641 "glGetAttribLocation",
1642 reinterpret_cast<GLES2FunctionPointer>(glGetAttribLocation),
1645 "glGetBooleanv",
1646 reinterpret_cast<GLES2FunctionPointer>(glGetBooleanv),
1649 "glGetBufferParameteriv",
1650 reinterpret_cast<GLES2FunctionPointer>(glGetBufferParameteriv),
1653 "glGetError",
1654 reinterpret_cast<GLES2FunctionPointer>(glGetError),
1657 "glGetFloatv",
1658 reinterpret_cast<GLES2FunctionPointer>(glGetFloatv),
1661 "glGetFragDataLocation",
1662 reinterpret_cast<GLES2FunctionPointer>(glGetFragDataLocation),
1665 "glGetFramebufferAttachmentParameteriv",
1666 reinterpret_cast<GLES2FunctionPointer>(
1667 glGetFramebufferAttachmentParameteriv),
1670 "glGetIntegerv",
1671 reinterpret_cast<GLES2FunctionPointer>(glGetIntegerv),
1674 "glGetInternalformativ",
1675 reinterpret_cast<GLES2FunctionPointer>(glGetInternalformativ),
1678 "glGetProgramiv",
1679 reinterpret_cast<GLES2FunctionPointer>(glGetProgramiv),
1682 "glGetProgramInfoLog",
1683 reinterpret_cast<GLES2FunctionPointer>(glGetProgramInfoLog),
1686 "glGetRenderbufferParameteriv",
1687 reinterpret_cast<GLES2FunctionPointer>(glGetRenderbufferParameteriv),
1690 "glGetSamplerParameterfv",
1691 reinterpret_cast<GLES2FunctionPointer>(glGetSamplerParameterfv),
1694 "glGetSamplerParameteriv",
1695 reinterpret_cast<GLES2FunctionPointer>(glGetSamplerParameteriv),
1698 "glGetShaderiv",
1699 reinterpret_cast<GLES2FunctionPointer>(glGetShaderiv),
1702 "glGetShaderInfoLog",
1703 reinterpret_cast<GLES2FunctionPointer>(glGetShaderInfoLog),
1706 "glGetShaderPrecisionFormat",
1707 reinterpret_cast<GLES2FunctionPointer>(glGetShaderPrecisionFormat),
1710 "glGetShaderSource",
1711 reinterpret_cast<GLES2FunctionPointer>(glGetShaderSource),
1714 "glGetString",
1715 reinterpret_cast<GLES2FunctionPointer>(glGetString),
1718 "glGetSynciv",
1719 reinterpret_cast<GLES2FunctionPointer>(glGetSynciv),
1722 "glGetTexParameterfv",
1723 reinterpret_cast<GLES2FunctionPointer>(glGetTexParameterfv),
1726 "glGetTexParameteriv",
1727 reinterpret_cast<GLES2FunctionPointer>(glGetTexParameteriv),
1730 "glGetTransformFeedbackVarying",
1731 reinterpret_cast<GLES2FunctionPointer>(glGetTransformFeedbackVarying),
1734 "glGetUniformBlockIndex",
1735 reinterpret_cast<GLES2FunctionPointer>(glGetUniformBlockIndex),
1738 "glGetUniformfv",
1739 reinterpret_cast<GLES2FunctionPointer>(glGetUniformfv),
1742 "glGetUniformiv",
1743 reinterpret_cast<GLES2FunctionPointer>(glGetUniformiv),
1746 "glGetUniformIndices",
1747 reinterpret_cast<GLES2FunctionPointer>(glGetUniformIndices),
1750 "glGetUniformLocation",
1751 reinterpret_cast<GLES2FunctionPointer>(glGetUniformLocation),
1754 "glGetVertexAttribfv",
1755 reinterpret_cast<GLES2FunctionPointer>(glGetVertexAttribfv),
1758 "glGetVertexAttribiv",
1759 reinterpret_cast<GLES2FunctionPointer>(glGetVertexAttribiv),
1762 "glGetVertexAttribPointerv",
1763 reinterpret_cast<GLES2FunctionPointer>(glGetVertexAttribPointerv),
1766 "glHint",
1767 reinterpret_cast<GLES2FunctionPointer>(glHint),
1770 "glInvalidateFramebuffer",
1771 reinterpret_cast<GLES2FunctionPointer>(glInvalidateFramebuffer),
1774 "glInvalidateSubFramebuffer",
1775 reinterpret_cast<GLES2FunctionPointer>(glInvalidateSubFramebuffer),
1778 "glIsBuffer",
1779 reinterpret_cast<GLES2FunctionPointer>(glIsBuffer),
1782 "glIsEnabled",
1783 reinterpret_cast<GLES2FunctionPointer>(glIsEnabled),
1786 "glIsFramebuffer",
1787 reinterpret_cast<GLES2FunctionPointer>(glIsFramebuffer),
1790 "glIsProgram",
1791 reinterpret_cast<GLES2FunctionPointer>(glIsProgram),
1794 "glIsRenderbuffer",
1795 reinterpret_cast<GLES2FunctionPointer>(glIsRenderbuffer),
1798 "glIsSampler",
1799 reinterpret_cast<GLES2FunctionPointer>(glIsSampler),
1802 "glIsShader",
1803 reinterpret_cast<GLES2FunctionPointer>(glIsShader),
1806 "glIsSync",
1807 reinterpret_cast<GLES2FunctionPointer>(glIsSync),
1810 "glIsTexture",
1811 reinterpret_cast<GLES2FunctionPointer>(glIsTexture),
1814 "glIsTransformFeedback",
1815 reinterpret_cast<GLES2FunctionPointer>(glIsTransformFeedback),
1818 "glLineWidth",
1819 reinterpret_cast<GLES2FunctionPointer>(glLineWidth),
1822 "glLinkProgram",
1823 reinterpret_cast<GLES2FunctionPointer>(glLinkProgram),
1826 "glPauseTransformFeedback",
1827 reinterpret_cast<GLES2FunctionPointer>(glPauseTransformFeedback),
1830 "glPixelStorei",
1831 reinterpret_cast<GLES2FunctionPointer>(glPixelStorei),
1834 "glPolygonOffset",
1835 reinterpret_cast<GLES2FunctionPointer>(glPolygonOffset),
1838 "glReadBuffer",
1839 reinterpret_cast<GLES2FunctionPointer>(glReadBuffer),
1842 "glReadPixels",
1843 reinterpret_cast<GLES2FunctionPointer>(glReadPixels),
1846 "glReleaseShaderCompiler",
1847 reinterpret_cast<GLES2FunctionPointer>(glReleaseShaderCompiler),
1850 "glRenderbufferStorage",
1851 reinterpret_cast<GLES2FunctionPointer>(glRenderbufferStorage),
1854 "glResumeTransformFeedback",
1855 reinterpret_cast<GLES2FunctionPointer>(glResumeTransformFeedback),
1858 "glSampleCoverage",
1859 reinterpret_cast<GLES2FunctionPointer>(glSampleCoverage),
1862 "glSamplerParameterf",
1863 reinterpret_cast<GLES2FunctionPointer>(glSamplerParameterf),
1866 "glSamplerParameterfv",
1867 reinterpret_cast<GLES2FunctionPointer>(glSamplerParameterfv),
1870 "glSamplerParameteri",
1871 reinterpret_cast<GLES2FunctionPointer>(glSamplerParameteri),
1874 "glSamplerParameteriv",
1875 reinterpret_cast<GLES2FunctionPointer>(glSamplerParameteriv),
1878 "glScissor",
1879 reinterpret_cast<GLES2FunctionPointer>(glScissor),
1882 "glShaderBinary",
1883 reinterpret_cast<GLES2FunctionPointer>(glShaderBinary),
1886 "glShaderSource",
1887 reinterpret_cast<GLES2FunctionPointer>(glShaderSource),
1890 "glShallowFinishCHROMIUM",
1891 reinterpret_cast<GLES2FunctionPointer>(glShallowFinishCHROMIUM),
1894 "glShallowFlushCHROMIUM",
1895 reinterpret_cast<GLES2FunctionPointer>(glShallowFlushCHROMIUM),
1898 "glOrderingBarrierCHROMIUM",
1899 reinterpret_cast<GLES2FunctionPointer>(glOrderingBarrierCHROMIUM),
1902 "glStencilFunc",
1903 reinterpret_cast<GLES2FunctionPointer>(glStencilFunc),
1906 "glStencilFuncSeparate",
1907 reinterpret_cast<GLES2FunctionPointer>(glStencilFuncSeparate),
1910 "glStencilMask",
1911 reinterpret_cast<GLES2FunctionPointer>(glStencilMask),
1914 "glStencilMaskSeparate",
1915 reinterpret_cast<GLES2FunctionPointer>(glStencilMaskSeparate),
1918 "glStencilOp",
1919 reinterpret_cast<GLES2FunctionPointer>(glStencilOp),
1922 "glStencilOpSeparate",
1923 reinterpret_cast<GLES2FunctionPointer>(glStencilOpSeparate),
1926 "glTexImage2D",
1927 reinterpret_cast<GLES2FunctionPointer>(glTexImage2D),
1930 "glTexImage3D",
1931 reinterpret_cast<GLES2FunctionPointer>(glTexImage3D),
1934 "glTexParameterf",
1935 reinterpret_cast<GLES2FunctionPointer>(glTexParameterf),
1938 "glTexParameterfv",
1939 reinterpret_cast<GLES2FunctionPointer>(glTexParameterfv),
1942 "glTexParameteri",
1943 reinterpret_cast<GLES2FunctionPointer>(glTexParameteri),
1946 "glTexParameteriv",
1947 reinterpret_cast<GLES2FunctionPointer>(glTexParameteriv),
1950 "glTexStorage3D",
1951 reinterpret_cast<GLES2FunctionPointer>(glTexStorage3D),
1954 "glTexSubImage2D",
1955 reinterpret_cast<GLES2FunctionPointer>(glTexSubImage2D),
1958 "glTexSubImage3D",
1959 reinterpret_cast<GLES2FunctionPointer>(glTexSubImage3D),
1962 "glTransformFeedbackVaryings",
1963 reinterpret_cast<GLES2FunctionPointer>(glTransformFeedbackVaryings),
1966 "glUniform1f",
1967 reinterpret_cast<GLES2FunctionPointer>(glUniform1f),
1970 "glUniform1fv",
1971 reinterpret_cast<GLES2FunctionPointer>(glUniform1fv),
1974 "glUniform1i",
1975 reinterpret_cast<GLES2FunctionPointer>(glUniform1i),
1978 "glUniform1iv",
1979 reinterpret_cast<GLES2FunctionPointer>(glUniform1iv),
1982 "glUniform1ui",
1983 reinterpret_cast<GLES2FunctionPointer>(glUniform1ui),
1986 "glUniform1uiv",
1987 reinterpret_cast<GLES2FunctionPointer>(glUniform1uiv),
1990 "glUniform2f",
1991 reinterpret_cast<GLES2FunctionPointer>(glUniform2f),
1994 "glUniform2fv",
1995 reinterpret_cast<GLES2FunctionPointer>(glUniform2fv),
1998 "glUniform2i",
1999 reinterpret_cast<GLES2FunctionPointer>(glUniform2i),
2002 "glUniform2iv",
2003 reinterpret_cast<GLES2FunctionPointer>(glUniform2iv),
2006 "glUniform2ui",
2007 reinterpret_cast<GLES2FunctionPointer>(glUniform2ui),
2010 "glUniform2uiv",
2011 reinterpret_cast<GLES2FunctionPointer>(glUniform2uiv),
2014 "glUniform3f",
2015 reinterpret_cast<GLES2FunctionPointer>(glUniform3f),
2018 "glUniform3fv",
2019 reinterpret_cast<GLES2FunctionPointer>(glUniform3fv),
2022 "glUniform3i",
2023 reinterpret_cast<GLES2FunctionPointer>(glUniform3i),
2026 "glUniform3iv",
2027 reinterpret_cast<GLES2FunctionPointer>(glUniform3iv),
2030 "glUniform3ui",
2031 reinterpret_cast<GLES2FunctionPointer>(glUniform3ui),
2034 "glUniform3uiv",
2035 reinterpret_cast<GLES2FunctionPointer>(glUniform3uiv),
2038 "glUniform4f",
2039 reinterpret_cast<GLES2FunctionPointer>(glUniform4f),
2042 "glUniform4fv",
2043 reinterpret_cast<GLES2FunctionPointer>(glUniform4fv),
2046 "glUniform4i",
2047 reinterpret_cast<GLES2FunctionPointer>(glUniform4i),
2050 "glUniform4iv",
2051 reinterpret_cast<GLES2FunctionPointer>(glUniform4iv),
2054 "glUniform4ui",
2055 reinterpret_cast<GLES2FunctionPointer>(glUniform4ui),
2058 "glUniform4uiv",
2059 reinterpret_cast<GLES2FunctionPointer>(glUniform4uiv),
2062 "glUniformBlockBinding",
2063 reinterpret_cast<GLES2FunctionPointer>(glUniformBlockBinding),
2066 "glUniformMatrix2fv",
2067 reinterpret_cast<GLES2FunctionPointer>(glUniformMatrix2fv),
2070 "glUniformMatrix2x3fv",
2071 reinterpret_cast<GLES2FunctionPointer>(glUniformMatrix2x3fv),
2074 "glUniformMatrix2x4fv",
2075 reinterpret_cast<GLES2FunctionPointer>(glUniformMatrix2x4fv),
2078 "glUniformMatrix3fv",
2079 reinterpret_cast<GLES2FunctionPointer>(glUniformMatrix3fv),
2082 "glUniformMatrix3x2fv",
2083 reinterpret_cast<GLES2FunctionPointer>(glUniformMatrix3x2fv),
2086 "glUniformMatrix3x4fv",
2087 reinterpret_cast<GLES2FunctionPointer>(glUniformMatrix3x4fv),
2090 "glUniformMatrix4fv",
2091 reinterpret_cast<GLES2FunctionPointer>(glUniformMatrix4fv),
2094 "glUniformMatrix4x2fv",
2095 reinterpret_cast<GLES2FunctionPointer>(glUniformMatrix4x2fv),
2098 "glUniformMatrix4x3fv",
2099 reinterpret_cast<GLES2FunctionPointer>(glUniformMatrix4x3fv),
2102 "glUseProgram",
2103 reinterpret_cast<GLES2FunctionPointer>(glUseProgram),
2106 "glValidateProgram",
2107 reinterpret_cast<GLES2FunctionPointer>(glValidateProgram),
2110 "glVertexAttrib1f",
2111 reinterpret_cast<GLES2FunctionPointer>(glVertexAttrib1f),
2114 "glVertexAttrib1fv",
2115 reinterpret_cast<GLES2FunctionPointer>(glVertexAttrib1fv),
2118 "glVertexAttrib2f",
2119 reinterpret_cast<GLES2FunctionPointer>(glVertexAttrib2f),
2122 "glVertexAttrib2fv",
2123 reinterpret_cast<GLES2FunctionPointer>(glVertexAttrib2fv),
2126 "glVertexAttrib3f",
2127 reinterpret_cast<GLES2FunctionPointer>(glVertexAttrib3f),
2130 "glVertexAttrib3fv",
2131 reinterpret_cast<GLES2FunctionPointer>(glVertexAttrib3fv),
2134 "glVertexAttrib4f",
2135 reinterpret_cast<GLES2FunctionPointer>(glVertexAttrib4f),
2138 "glVertexAttrib4fv",
2139 reinterpret_cast<GLES2FunctionPointer>(glVertexAttrib4fv),
2142 "glVertexAttribI4i",
2143 reinterpret_cast<GLES2FunctionPointer>(glVertexAttribI4i),
2146 "glVertexAttribI4iv",
2147 reinterpret_cast<GLES2FunctionPointer>(glVertexAttribI4iv),
2150 "glVertexAttribI4ui",
2151 reinterpret_cast<GLES2FunctionPointer>(glVertexAttribI4ui),
2154 "glVertexAttribI4uiv",
2155 reinterpret_cast<GLES2FunctionPointer>(glVertexAttribI4uiv),
2158 "glVertexAttribIPointer",
2159 reinterpret_cast<GLES2FunctionPointer>(glVertexAttribIPointer),
2162 "glVertexAttribPointer",
2163 reinterpret_cast<GLES2FunctionPointer>(glVertexAttribPointer),
2166 "glViewport",
2167 reinterpret_cast<GLES2FunctionPointer>(glViewport),
2170 "glWaitSync",
2171 reinterpret_cast<GLES2FunctionPointer>(glWaitSync),
2174 "glBlitFramebufferCHROMIUM",
2175 reinterpret_cast<GLES2FunctionPointer>(glBlitFramebufferCHROMIUM),
2178 "glRenderbufferStorageMultisampleCHROMIUM",
2179 reinterpret_cast<GLES2FunctionPointer>(
2180 glRenderbufferStorageMultisampleCHROMIUM),
2183 "glRenderbufferStorageMultisampleEXT",
2184 reinterpret_cast<GLES2FunctionPointer>(
2185 glRenderbufferStorageMultisampleEXT),
2188 "glFramebufferTexture2DMultisampleEXT",
2189 reinterpret_cast<GLES2FunctionPointer>(
2190 glFramebufferTexture2DMultisampleEXT),
2193 "glTexStorage2DEXT",
2194 reinterpret_cast<GLES2FunctionPointer>(glTexStorage2DEXT),
2197 "glGenQueriesEXT",
2198 reinterpret_cast<GLES2FunctionPointer>(glGenQueriesEXT),
2201 "glDeleteQueriesEXT",
2202 reinterpret_cast<GLES2FunctionPointer>(glDeleteQueriesEXT),
2205 "glIsQueryEXT",
2206 reinterpret_cast<GLES2FunctionPointer>(glIsQueryEXT),
2209 "glBeginQueryEXT",
2210 reinterpret_cast<GLES2FunctionPointer>(glBeginQueryEXT),
2213 "glBeginTransformFeedback",
2214 reinterpret_cast<GLES2FunctionPointer>(glBeginTransformFeedback),
2217 "glEndQueryEXT",
2218 reinterpret_cast<GLES2FunctionPointer>(glEndQueryEXT),
2221 "glEndTransformFeedback",
2222 reinterpret_cast<GLES2FunctionPointer>(glEndTransformFeedback),
2225 "glGetQueryivEXT",
2226 reinterpret_cast<GLES2FunctionPointer>(glGetQueryivEXT),
2229 "glGetQueryObjectuivEXT",
2230 reinterpret_cast<GLES2FunctionPointer>(glGetQueryObjectuivEXT),
2233 "glInsertEventMarkerEXT",
2234 reinterpret_cast<GLES2FunctionPointer>(glInsertEventMarkerEXT),
2237 "glPushGroupMarkerEXT",
2238 reinterpret_cast<GLES2FunctionPointer>(glPushGroupMarkerEXT),
2241 "glPopGroupMarkerEXT",
2242 reinterpret_cast<GLES2FunctionPointer>(glPopGroupMarkerEXT),
2245 "glGenVertexArraysOES",
2246 reinterpret_cast<GLES2FunctionPointer>(glGenVertexArraysOES),
2249 "glDeleteVertexArraysOES",
2250 reinterpret_cast<GLES2FunctionPointer>(glDeleteVertexArraysOES),
2253 "glIsVertexArrayOES",
2254 reinterpret_cast<GLES2FunctionPointer>(glIsVertexArrayOES),
2257 "glBindVertexArrayOES",
2258 reinterpret_cast<GLES2FunctionPointer>(glBindVertexArrayOES),
2261 "glSwapBuffers",
2262 reinterpret_cast<GLES2FunctionPointer>(glSwapBuffers),
2265 "glGetMaxValueInBufferCHROMIUM",
2266 reinterpret_cast<GLES2FunctionPointer>(glGetMaxValueInBufferCHROMIUM),
2269 "glEnableFeatureCHROMIUM",
2270 reinterpret_cast<GLES2FunctionPointer>(glEnableFeatureCHROMIUM),
2273 "glMapBufferCHROMIUM",
2274 reinterpret_cast<GLES2FunctionPointer>(glMapBufferCHROMIUM),
2277 "glUnmapBufferCHROMIUM",
2278 reinterpret_cast<GLES2FunctionPointer>(glUnmapBufferCHROMIUM),
2281 "glMapBufferSubDataCHROMIUM",
2282 reinterpret_cast<GLES2FunctionPointer>(glMapBufferSubDataCHROMIUM),
2285 "glUnmapBufferSubDataCHROMIUM",
2286 reinterpret_cast<GLES2FunctionPointer>(glUnmapBufferSubDataCHROMIUM),
2289 "glMapTexSubImage2DCHROMIUM",
2290 reinterpret_cast<GLES2FunctionPointer>(glMapTexSubImage2DCHROMIUM),
2293 "glUnmapTexSubImage2DCHROMIUM",
2294 reinterpret_cast<GLES2FunctionPointer>(glUnmapTexSubImage2DCHROMIUM),
2297 "glResizeCHROMIUM",
2298 reinterpret_cast<GLES2FunctionPointer>(glResizeCHROMIUM),
2301 "glGetRequestableExtensionsCHROMIUM",
2302 reinterpret_cast<GLES2FunctionPointer>(glGetRequestableExtensionsCHROMIUM),
2305 "glRequestExtensionCHROMIUM",
2306 reinterpret_cast<GLES2FunctionPointer>(glRequestExtensionCHROMIUM),
2309 "glRateLimitOffscreenContextCHROMIUM",
2310 reinterpret_cast<GLES2FunctionPointer>(
2311 glRateLimitOffscreenContextCHROMIUM),
2314 "glGetProgramInfoCHROMIUM",
2315 reinterpret_cast<GLES2FunctionPointer>(glGetProgramInfoCHROMIUM),
2318 "glGetUniformBlocksCHROMIUM",
2319 reinterpret_cast<GLES2FunctionPointer>(glGetUniformBlocksCHROMIUM),
2322 "glGetTransformFeedbackVaryingsCHROMIUM",
2323 reinterpret_cast<GLES2FunctionPointer>(
2324 glGetTransformFeedbackVaryingsCHROMIUM),
2327 "glGetUniformsES3CHROMIUM",
2328 reinterpret_cast<GLES2FunctionPointer>(glGetUniformsES3CHROMIUM),
2331 "glCreateStreamTextureCHROMIUM",
2332 reinterpret_cast<GLES2FunctionPointer>(glCreateStreamTextureCHROMIUM),
2335 "glCreateImageCHROMIUM",
2336 reinterpret_cast<GLES2FunctionPointer>(glCreateImageCHROMIUM),
2339 "glDestroyImageCHROMIUM",
2340 reinterpret_cast<GLES2FunctionPointer>(glDestroyImageCHROMIUM),
2343 "glCreateGpuMemoryBufferImageCHROMIUM",
2344 reinterpret_cast<GLES2FunctionPointer>(
2345 glCreateGpuMemoryBufferImageCHROMIUM),
2348 "glGetTranslatedShaderSourceANGLE",
2349 reinterpret_cast<GLES2FunctionPointer>(glGetTranslatedShaderSourceANGLE),
2352 "glPostSubBufferCHROMIUM",
2353 reinterpret_cast<GLES2FunctionPointer>(glPostSubBufferCHROMIUM),
2356 "glTexImageIOSurface2DCHROMIUM",
2357 reinterpret_cast<GLES2FunctionPointer>(glTexImageIOSurface2DCHROMIUM),
2360 "glCopyTextureCHROMIUM",
2361 reinterpret_cast<GLES2FunctionPointer>(glCopyTextureCHROMIUM),
2364 "glDrawArraysInstancedANGLE",
2365 reinterpret_cast<GLES2FunctionPointer>(glDrawArraysInstancedANGLE),
2368 "glDrawElementsInstancedANGLE",
2369 reinterpret_cast<GLES2FunctionPointer>(glDrawElementsInstancedANGLE),
2372 "glVertexAttribDivisorANGLE",
2373 reinterpret_cast<GLES2FunctionPointer>(glVertexAttribDivisorANGLE),
2376 "glGenMailboxCHROMIUM",
2377 reinterpret_cast<GLES2FunctionPointer>(glGenMailboxCHROMIUM),
2380 "glProduceTextureCHROMIUM",
2381 reinterpret_cast<GLES2FunctionPointer>(glProduceTextureCHROMIUM),
2384 "glProduceTextureDirectCHROMIUM",
2385 reinterpret_cast<GLES2FunctionPointer>(glProduceTextureDirectCHROMIUM),
2388 "glConsumeTextureCHROMIUM",
2389 reinterpret_cast<GLES2FunctionPointer>(glConsumeTextureCHROMIUM),
2392 "glCreateAndConsumeTextureCHROMIUM",
2393 reinterpret_cast<GLES2FunctionPointer>(glCreateAndConsumeTextureCHROMIUM),
2396 "glBindUniformLocationCHROMIUM",
2397 reinterpret_cast<GLES2FunctionPointer>(glBindUniformLocationCHROMIUM),
2400 "glGenValuebuffersCHROMIUM",
2401 reinterpret_cast<GLES2FunctionPointer>(glGenValuebuffersCHROMIUM),
2404 "glDeleteValuebuffersCHROMIUM",
2405 reinterpret_cast<GLES2FunctionPointer>(glDeleteValuebuffersCHROMIUM),
2408 "glIsValuebufferCHROMIUM",
2409 reinterpret_cast<GLES2FunctionPointer>(glIsValuebufferCHROMIUM),
2412 "glBindValuebufferCHROMIUM",
2413 reinterpret_cast<GLES2FunctionPointer>(glBindValuebufferCHROMIUM),
2416 "glSubscribeValueCHROMIUM",
2417 reinterpret_cast<GLES2FunctionPointer>(glSubscribeValueCHROMIUM),
2420 "glPopulateSubscribedValuesCHROMIUM",
2421 reinterpret_cast<GLES2FunctionPointer>(glPopulateSubscribedValuesCHROMIUM),
2424 "glUniformValuebufferCHROMIUM",
2425 reinterpret_cast<GLES2FunctionPointer>(glUniformValuebufferCHROMIUM),
2428 "glBindTexImage2DCHROMIUM",
2429 reinterpret_cast<GLES2FunctionPointer>(glBindTexImage2DCHROMIUM),
2432 "glReleaseTexImage2DCHROMIUM",
2433 reinterpret_cast<GLES2FunctionPointer>(glReleaseTexImage2DCHROMIUM),
2436 "glTraceBeginCHROMIUM",
2437 reinterpret_cast<GLES2FunctionPointer>(glTraceBeginCHROMIUM),
2440 "glTraceEndCHROMIUM",
2441 reinterpret_cast<GLES2FunctionPointer>(glTraceEndCHROMIUM),
2444 "glAsyncTexSubImage2DCHROMIUM",
2445 reinterpret_cast<GLES2FunctionPointer>(glAsyncTexSubImage2DCHROMIUM),
2448 "glAsyncTexImage2DCHROMIUM",
2449 reinterpret_cast<GLES2FunctionPointer>(glAsyncTexImage2DCHROMIUM),
2452 "glWaitAsyncTexImage2DCHROMIUM",
2453 reinterpret_cast<GLES2FunctionPointer>(glWaitAsyncTexImage2DCHROMIUM),
2456 "glWaitAllAsyncTexImage2DCHROMIUM",
2457 reinterpret_cast<GLES2FunctionPointer>(glWaitAllAsyncTexImage2DCHROMIUM),
2460 "glDiscardFramebufferEXT",
2461 reinterpret_cast<GLES2FunctionPointer>(glDiscardFramebufferEXT),
2464 "glLoseContextCHROMIUM",
2465 reinterpret_cast<GLES2FunctionPointer>(glLoseContextCHROMIUM),
2468 "glInsertSyncPointCHROMIUM",
2469 reinterpret_cast<GLES2FunctionPointer>(glInsertSyncPointCHROMIUM),
2472 "glWaitSyncPointCHROMIUM",
2473 reinterpret_cast<GLES2FunctionPointer>(glWaitSyncPointCHROMIUM),
2476 "glDrawBuffersEXT",
2477 reinterpret_cast<GLES2FunctionPointer>(glDrawBuffersEXT),
2480 "glDiscardBackbufferCHROMIUM",
2481 reinterpret_cast<GLES2FunctionPointer>(glDiscardBackbufferCHROMIUM),
2484 "glScheduleOverlayPlaneCHROMIUM",
2485 reinterpret_cast<GLES2FunctionPointer>(glScheduleOverlayPlaneCHROMIUM),
2488 "glSwapInterval",
2489 reinterpret_cast<GLES2FunctionPointer>(glSwapInterval),
2492 "glMatrixLoadfCHROMIUM",
2493 reinterpret_cast<GLES2FunctionPointer>(glMatrixLoadfCHROMIUM),
2496 "glMatrixLoadIdentityCHROMIUM",
2497 reinterpret_cast<GLES2FunctionPointer>(glMatrixLoadIdentityCHROMIUM),
2500 "glBlendBarrierKHR",
2501 reinterpret_cast<GLES2FunctionPointer>(glBlendBarrierKHR),
2504 NULL,
2505 NULL,
2509 } // namespace gles2
2510 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_