Supervised user import: Listen for profile creation/deletion
[chromium-blink-merge.git] / gpu / command_buffer / client / gles2_c_lib_autogen.h
blob4f18a7ee12c32e887e87de4646bd7b4ae1b5f969
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 GLES2CompressedTexImage3D(GLenum target,
158 GLint level,
159 GLenum internalformat,
160 GLsizei width,
161 GLsizei height,
162 GLsizei depth,
163 GLint border,
164 GLsizei imageSize,
165 const void* data) {
166 gles2::GetGLContext()->CompressedTexImage3D(target, level, internalformat,
167 width, height, depth, border,
168 imageSize, data);
170 void GLES2CopyBufferSubData(GLenum readtarget,
171 GLenum writetarget,
172 GLintptr readoffset,
173 GLintptr writeoffset,
174 GLsizeiptr size) {
175 gles2::GetGLContext()->CopyBufferSubData(readtarget, writetarget, readoffset,
176 writeoffset, size);
178 void GLES2CopyTexImage2D(GLenum target,
179 GLint level,
180 GLenum internalformat,
181 GLint x,
182 GLint y,
183 GLsizei width,
184 GLsizei height,
185 GLint border) {
186 gles2::GetGLContext()->CopyTexImage2D(target, level, internalformat, x, y,
187 width, height, border);
189 void GLES2CopyTexSubImage2D(GLenum target,
190 GLint level,
191 GLint xoffset,
192 GLint yoffset,
193 GLint x,
194 GLint y,
195 GLsizei width,
196 GLsizei height) {
197 gles2::GetGLContext()->CopyTexSubImage2D(target, level, xoffset, yoffset, x,
198 y, width, height);
200 void GLES2CopyTexSubImage3D(GLenum target,
201 GLint level,
202 GLint xoffset,
203 GLint yoffset,
204 GLint zoffset,
205 GLint x,
206 GLint y,
207 GLsizei width,
208 GLsizei height) {
209 gles2::GetGLContext()->CopyTexSubImage3D(target, level, xoffset, yoffset,
210 zoffset, x, y, width, height);
212 GLuint GLES2CreateProgram() {
213 return gles2::GetGLContext()->CreateProgram();
215 GLuint GLES2CreateShader(GLenum type) {
216 return gles2::GetGLContext()->CreateShader(type);
218 void GLES2CullFace(GLenum mode) {
219 gles2::GetGLContext()->CullFace(mode);
221 void GLES2DeleteBuffers(GLsizei n, const GLuint* buffers) {
222 gles2::GetGLContext()->DeleteBuffers(n, buffers);
224 void GLES2DeleteFramebuffers(GLsizei n, const GLuint* framebuffers) {
225 gles2::GetGLContext()->DeleteFramebuffers(n, framebuffers);
227 void GLES2DeleteProgram(GLuint program) {
228 gles2::GetGLContext()->DeleteProgram(program);
230 void GLES2DeleteRenderbuffers(GLsizei n, const GLuint* renderbuffers) {
231 gles2::GetGLContext()->DeleteRenderbuffers(n, renderbuffers);
233 void GLES2DeleteSamplers(GLsizei n, const GLuint* samplers) {
234 gles2::GetGLContext()->DeleteSamplers(n, samplers);
236 void GLES2DeleteSync(GLsync sync) {
237 gles2::GetGLContext()->DeleteSync(sync);
239 void GLES2DeleteShader(GLuint shader) {
240 gles2::GetGLContext()->DeleteShader(shader);
242 void GLES2DeleteTextures(GLsizei n, const GLuint* textures) {
243 gles2::GetGLContext()->DeleteTextures(n, textures);
245 void GLES2DeleteTransformFeedbacks(GLsizei n, const GLuint* ids) {
246 gles2::GetGLContext()->DeleteTransformFeedbacks(n, ids);
248 void GLES2DepthFunc(GLenum func) {
249 gles2::GetGLContext()->DepthFunc(func);
251 void GLES2DepthMask(GLboolean flag) {
252 gles2::GetGLContext()->DepthMask(flag);
254 void GLES2DepthRangef(GLclampf zNear, GLclampf zFar) {
255 gles2::GetGLContext()->DepthRangef(zNear, zFar);
257 void GLES2DetachShader(GLuint program, GLuint shader) {
258 gles2::GetGLContext()->DetachShader(program, shader);
260 void GLES2Disable(GLenum cap) {
261 gles2::GetGLContext()->Disable(cap);
263 void GLES2DisableVertexAttribArray(GLuint index) {
264 gles2::GetGLContext()->DisableVertexAttribArray(index);
266 void GLES2DrawArrays(GLenum mode, GLint first, GLsizei count) {
267 gles2::GetGLContext()->DrawArrays(mode, first, count);
269 void GLES2DrawElements(GLenum mode,
270 GLsizei count,
271 GLenum type,
272 const void* indices) {
273 gles2::GetGLContext()->DrawElements(mode, count, type, indices);
275 void GLES2DrawRangeElements(GLenum mode,
276 GLuint start,
277 GLuint end,
278 GLsizei count,
279 GLenum type,
280 const void* indices) {
281 gles2::GetGLContext()->DrawRangeElements(mode, start, end, count, type,
282 indices);
284 void GLES2Enable(GLenum cap) {
285 gles2::GetGLContext()->Enable(cap);
287 void GLES2EnableVertexAttribArray(GLuint index) {
288 gles2::GetGLContext()->EnableVertexAttribArray(index);
290 GLsync GLES2FenceSync(GLenum condition, GLbitfield flags) {
291 return gles2::GetGLContext()->FenceSync(condition, flags);
293 void GLES2Finish() {
294 gles2::GetGLContext()->Finish();
296 void GLES2Flush() {
297 gles2::GetGLContext()->Flush();
299 void GLES2FramebufferRenderbuffer(GLenum target,
300 GLenum attachment,
301 GLenum renderbuffertarget,
302 GLuint renderbuffer) {
303 gles2::GetGLContext()->FramebufferRenderbuffer(
304 target, attachment, renderbuffertarget, renderbuffer);
306 void GLES2FramebufferTexture2D(GLenum target,
307 GLenum attachment,
308 GLenum textarget,
309 GLuint texture,
310 GLint level) {
311 gles2::GetGLContext()->FramebufferTexture2D(target, attachment, textarget,
312 texture, level);
314 void GLES2FramebufferTextureLayer(GLenum target,
315 GLenum attachment,
316 GLuint texture,
317 GLint level,
318 GLint layer) {
319 gles2::GetGLContext()->FramebufferTextureLayer(target, attachment, texture,
320 level, layer);
322 void GLES2FrontFace(GLenum mode) {
323 gles2::GetGLContext()->FrontFace(mode);
325 void GLES2GenBuffers(GLsizei n, GLuint* buffers) {
326 gles2::GetGLContext()->GenBuffers(n, buffers);
328 void GLES2GenerateMipmap(GLenum target) {
329 gles2::GetGLContext()->GenerateMipmap(target);
331 void GLES2GenFramebuffers(GLsizei n, GLuint* framebuffers) {
332 gles2::GetGLContext()->GenFramebuffers(n, framebuffers);
334 void GLES2GenRenderbuffers(GLsizei n, GLuint* renderbuffers) {
335 gles2::GetGLContext()->GenRenderbuffers(n, renderbuffers);
337 void GLES2GenSamplers(GLsizei n, GLuint* samplers) {
338 gles2::GetGLContext()->GenSamplers(n, samplers);
340 void GLES2GenTextures(GLsizei n, GLuint* textures) {
341 gles2::GetGLContext()->GenTextures(n, textures);
343 void GLES2GenTransformFeedbacks(GLsizei n, GLuint* ids) {
344 gles2::GetGLContext()->GenTransformFeedbacks(n, ids);
346 void GLES2GetActiveAttrib(GLuint program,
347 GLuint index,
348 GLsizei bufsize,
349 GLsizei* length,
350 GLint* size,
351 GLenum* type,
352 char* name) {
353 gles2::GetGLContext()->GetActiveAttrib(program, index, bufsize, length, size,
354 type, name);
356 void GLES2GetActiveUniform(GLuint program,
357 GLuint index,
358 GLsizei bufsize,
359 GLsizei* length,
360 GLint* size,
361 GLenum* type,
362 char* name) {
363 gles2::GetGLContext()->GetActiveUniform(program, index, bufsize, length, size,
364 type, name);
366 void GLES2GetActiveUniformBlockiv(GLuint program,
367 GLuint index,
368 GLenum pname,
369 GLint* params) {
370 gles2::GetGLContext()->GetActiveUniformBlockiv(program, index, pname, params);
372 void GLES2GetActiveUniformBlockName(GLuint program,
373 GLuint index,
374 GLsizei bufsize,
375 GLsizei* length,
376 char* name) {
377 gles2::GetGLContext()->GetActiveUniformBlockName(program, index, bufsize,
378 length, name);
380 void GLES2GetActiveUniformsiv(GLuint program,
381 GLsizei count,
382 const GLuint* indices,
383 GLenum pname,
384 GLint* params) {
385 gles2::GetGLContext()->GetActiveUniformsiv(program, count, indices, pname,
386 params);
388 void GLES2GetAttachedShaders(GLuint program,
389 GLsizei maxcount,
390 GLsizei* count,
391 GLuint* shaders) {
392 gles2::GetGLContext()->GetAttachedShaders(program, maxcount, count, shaders);
394 GLint GLES2GetAttribLocation(GLuint program, const char* name) {
395 return gles2::GetGLContext()->GetAttribLocation(program, name);
397 void GLES2GetBooleanv(GLenum pname, GLboolean* params) {
398 gles2::GetGLContext()->GetBooleanv(pname, params);
400 void GLES2GetBufferParameteriv(GLenum target, GLenum pname, GLint* params) {
401 gles2::GetGLContext()->GetBufferParameteriv(target, pname, params);
403 GLenum GLES2GetError() {
404 return gles2::GetGLContext()->GetError();
406 void GLES2GetFloatv(GLenum pname, GLfloat* params) {
407 gles2::GetGLContext()->GetFloatv(pname, params);
409 GLint GLES2GetFragDataLocation(GLuint program, const char* name) {
410 return gles2::GetGLContext()->GetFragDataLocation(program, name);
412 void GLES2GetFramebufferAttachmentParameteriv(GLenum target,
413 GLenum attachment,
414 GLenum pname,
415 GLint* params) {
416 gles2::GetGLContext()->GetFramebufferAttachmentParameteriv(target, attachment,
417 pname, params);
419 void GLES2GetInteger64v(GLenum pname, GLint64* params) {
420 gles2::GetGLContext()->GetInteger64v(pname, params);
422 void GLES2GetIntegeri_v(GLenum pname, GLuint index, GLint* data) {
423 gles2::GetGLContext()->GetIntegeri_v(pname, index, data);
425 void GLES2GetInteger64i_v(GLenum pname, GLuint index, GLint64* data) {
426 gles2::GetGLContext()->GetInteger64i_v(pname, index, data);
428 void GLES2GetIntegerv(GLenum pname, GLint* params) {
429 gles2::GetGLContext()->GetIntegerv(pname, params);
431 void GLES2GetInternalformativ(GLenum target,
432 GLenum format,
433 GLenum pname,
434 GLsizei bufSize,
435 GLint* params) {
436 gles2::GetGLContext()->GetInternalformativ(target, format, pname, bufSize,
437 params);
439 void GLES2GetProgramiv(GLuint program, GLenum pname, GLint* params) {
440 gles2::GetGLContext()->GetProgramiv(program, pname, params);
442 void GLES2GetProgramInfoLog(GLuint program,
443 GLsizei bufsize,
444 GLsizei* length,
445 char* infolog) {
446 gles2::GetGLContext()->GetProgramInfoLog(program, bufsize, length, infolog);
448 void GLES2GetRenderbufferParameteriv(GLenum target,
449 GLenum pname,
450 GLint* params) {
451 gles2::GetGLContext()->GetRenderbufferParameteriv(target, pname, params);
453 void GLES2GetSamplerParameterfv(GLuint sampler, GLenum pname, GLfloat* params) {
454 gles2::GetGLContext()->GetSamplerParameterfv(sampler, pname, params);
456 void GLES2GetSamplerParameteriv(GLuint sampler, GLenum pname, GLint* params) {
457 gles2::GetGLContext()->GetSamplerParameteriv(sampler, pname, params);
459 void GLES2GetShaderiv(GLuint shader, GLenum pname, GLint* params) {
460 gles2::GetGLContext()->GetShaderiv(shader, pname, params);
462 void GLES2GetShaderInfoLog(GLuint shader,
463 GLsizei bufsize,
464 GLsizei* length,
465 char* infolog) {
466 gles2::GetGLContext()->GetShaderInfoLog(shader, bufsize, length, infolog);
468 void GLES2GetShaderPrecisionFormat(GLenum shadertype,
469 GLenum precisiontype,
470 GLint* range,
471 GLint* precision) {
472 gles2::GetGLContext()->GetShaderPrecisionFormat(shadertype, precisiontype,
473 range, precision);
475 void GLES2GetShaderSource(GLuint shader,
476 GLsizei bufsize,
477 GLsizei* length,
478 char* source) {
479 gles2::GetGLContext()->GetShaderSource(shader, bufsize, length, source);
481 const GLubyte* GLES2GetString(GLenum name) {
482 return gles2::GetGLContext()->GetString(name);
484 void GLES2GetSynciv(GLsync sync,
485 GLenum pname,
486 GLsizei bufsize,
487 GLsizei* length,
488 GLint* values) {
489 gles2::GetGLContext()->GetSynciv(sync, pname, bufsize, length, values);
491 void GLES2GetTexParameterfv(GLenum target, GLenum pname, GLfloat* params) {
492 gles2::GetGLContext()->GetTexParameterfv(target, pname, params);
494 void GLES2GetTexParameteriv(GLenum target, GLenum pname, GLint* params) {
495 gles2::GetGLContext()->GetTexParameteriv(target, pname, params);
497 void GLES2GetTransformFeedbackVarying(GLuint program,
498 GLuint index,
499 GLsizei bufsize,
500 GLsizei* length,
501 GLsizei* size,
502 GLenum* type,
503 char* name) {
504 gles2::GetGLContext()->GetTransformFeedbackVarying(program, index, bufsize,
505 length, size, type, name);
507 GLuint GLES2GetUniformBlockIndex(GLuint program, const char* name) {
508 return gles2::GetGLContext()->GetUniformBlockIndex(program, name);
510 void GLES2GetUniformfv(GLuint program, GLint location, GLfloat* params) {
511 gles2::GetGLContext()->GetUniformfv(program, location, params);
513 void GLES2GetUniformiv(GLuint program, GLint location, GLint* params) {
514 gles2::GetGLContext()->GetUniformiv(program, location, params);
516 void GLES2GetUniformIndices(GLuint program,
517 GLsizei count,
518 const char* const* names,
519 GLuint* indices) {
520 gles2::GetGLContext()->GetUniformIndices(program, count, names, indices);
522 GLint GLES2GetUniformLocation(GLuint program, const char* name) {
523 return gles2::GetGLContext()->GetUniformLocation(program, name);
525 void GLES2GetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params) {
526 gles2::GetGLContext()->GetVertexAttribfv(index, pname, params);
528 void GLES2GetVertexAttribiv(GLuint index, GLenum pname, GLint* params) {
529 gles2::GetGLContext()->GetVertexAttribiv(index, pname, params);
531 void GLES2GetVertexAttribPointerv(GLuint index, GLenum pname, void** pointer) {
532 gles2::GetGLContext()->GetVertexAttribPointerv(index, pname, pointer);
534 void GLES2Hint(GLenum target, GLenum mode) {
535 gles2::GetGLContext()->Hint(target, mode);
537 void GLES2InvalidateFramebuffer(GLenum target,
538 GLsizei count,
539 const GLenum* attachments) {
540 gles2::GetGLContext()->InvalidateFramebuffer(target, count, attachments);
542 void GLES2InvalidateSubFramebuffer(GLenum target,
543 GLsizei count,
544 const GLenum* attachments,
545 GLint x,
546 GLint y,
547 GLsizei width,
548 GLsizei height) {
549 gles2::GetGLContext()->InvalidateSubFramebuffer(target, count, attachments, x,
550 y, width, height);
552 GLboolean GLES2IsBuffer(GLuint buffer) {
553 return gles2::GetGLContext()->IsBuffer(buffer);
555 GLboolean GLES2IsEnabled(GLenum cap) {
556 return gles2::GetGLContext()->IsEnabled(cap);
558 GLboolean GLES2IsFramebuffer(GLuint framebuffer) {
559 return gles2::GetGLContext()->IsFramebuffer(framebuffer);
561 GLboolean GLES2IsProgram(GLuint program) {
562 return gles2::GetGLContext()->IsProgram(program);
564 GLboolean GLES2IsRenderbuffer(GLuint renderbuffer) {
565 return gles2::GetGLContext()->IsRenderbuffer(renderbuffer);
567 GLboolean GLES2IsSampler(GLuint sampler) {
568 return gles2::GetGLContext()->IsSampler(sampler);
570 GLboolean GLES2IsShader(GLuint shader) {
571 return gles2::GetGLContext()->IsShader(shader);
573 GLboolean GLES2IsSync(GLsync sync) {
574 return gles2::GetGLContext()->IsSync(sync);
576 GLboolean GLES2IsTexture(GLuint texture) {
577 return gles2::GetGLContext()->IsTexture(texture);
579 GLboolean GLES2IsTransformFeedback(GLuint transformfeedback) {
580 return gles2::GetGLContext()->IsTransformFeedback(transformfeedback);
582 void GLES2LineWidth(GLfloat width) {
583 gles2::GetGLContext()->LineWidth(width);
585 void GLES2LinkProgram(GLuint program) {
586 gles2::GetGLContext()->LinkProgram(program);
588 void GLES2PauseTransformFeedback() {
589 gles2::GetGLContext()->PauseTransformFeedback();
591 void GLES2PixelStorei(GLenum pname, GLint param) {
592 gles2::GetGLContext()->PixelStorei(pname, param);
594 void GLES2PolygonOffset(GLfloat factor, GLfloat units) {
595 gles2::GetGLContext()->PolygonOffset(factor, units);
597 void GLES2ReadBuffer(GLenum src) {
598 gles2::GetGLContext()->ReadBuffer(src);
600 void GLES2ReadPixels(GLint x,
601 GLint y,
602 GLsizei width,
603 GLsizei height,
604 GLenum format,
605 GLenum type,
606 void* pixels) {
607 gles2::GetGLContext()->ReadPixels(x, y, width, height, format, type, pixels);
609 void GLES2ReleaseShaderCompiler() {
610 gles2::GetGLContext()->ReleaseShaderCompiler();
612 void GLES2RenderbufferStorage(GLenum target,
613 GLenum internalformat,
614 GLsizei width,
615 GLsizei height) {
616 gles2::GetGLContext()->RenderbufferStorage(target, internalformat, width,
617 height);
619 void GLES2ResumeTransformFeedback() {
620 gles2::GetGLContext()->ResumeTransformFeedback();
622 void GLES2SampleCoverage(GLclampf value, GLboolean invert) {
623 gles2::GetGLContext()->SampleCoverage(value, invert);
625 void GLES2SamplerParameterf(GLuint sampler, GLenum pname, GLfloat param) {
626 gles2::GetGLContext()->SamplerParameterf(sampler, pname, param);
628 void GLES2SamplerParameterfv(GLuint sampler,
629 GLenum pname,
630 const GLfloat* params) {
631 gles2::GetGLContext()->SamplerParameterfv(sampler, pname, params);
633 void GLES2SamplerParameteri(GLuint sampler, GLenum pname, GLint param) {
634 gles2::GetGLContext()->SamplerParameteri(sampler, pname, param);
636 void GLES2SamplerParameteriv(GLuint sampler,
637 GLenum pname,
638 const GLint* params) {
639 gles2::GetGLContext()->SamplerParameteriv(sampler, pname, params);
641 void GLES2Scissor(GLint x, GLint y, GLsizei width, GLsizei height) {
642 gles2::GetGLContext()->Scissor(x, y, width, height);
644 void GLES2ShaderBinary(GLsizei n,
645 const GLuint* shaders,
646 GLenum binaryformat,
647 const void* binary,
648 GLsizei length) {
649 gles2::GetGLContext()->ShaderBinary(n, shaders, binaryformat, binary, length);
651 void GLES2ShaderSource(GLuint shader,
652 GLsizei count,
653 const GLchar* const* str,
654 const GLint* length) {
655 gles2::GetGLContext()->ShaderSource(shader, count, str, length);
657 void GLES2ShallowFinishCHROMIUM() {
658 gles2::GetGLContext()->ShallowFinishCHROMIUM();
660 void GLES2ShallowFlushCHROMIUM() {
661 gles2::GetGLContext()->ShallowFlushCHROMIUM();
663 void GLES2OrderingBarrierCHROMIUM() {
664 gles2::GetGLContext()->OrderingBarrierCHROMIUM();
666 void GLES2StencilFunc(GLenum func, GLint ref, GLuint mask) {
667 gles2::GetGLContext()->StencilFunc(func, ref, mask);
669 void GLES2StencilFuncSeparate(GLenum face,
670 GLenum func,
671 GLint ref,
672 GLuint mask) {
673 gles2::GetGLContext()->StencilFuncSeparate(face, func, ref, mask);
675 void GLES2StencilMask(GLuint mask) {
676 gles2::GetGLContext()->StencilMask(mask);
678 void GLES2StencilMaskSeparate(GLenum face, GLuint mask) {
679 gles2::GetGLContext()->StencilMaskSeparate(face, mask);
681 void GLES2StencilOp(GLenum fail, GLenum zfail, GLenum zpass) {
682 gles2::GetGLContext()->StencilOp(fail, zfail, zpass);
684 void GLES2StencilOpSeparate(GLenum face,
685 GLenum fail,
686 GLenum zfail,
687 GLenum zpass) {
688 gles2::GetGLContext()->StencilOpSeparate(face, fail, zfail, zpass);
690 void GLES2TexImage2D(GLenum target,
691 GLint level,
692 GLint internalformat,
693 GLsizei width,
694 GLsizei height,
695 GLint border,
696 GLenum format,
697 GLenum type,
698 const void* pixels) {
699 gles2::GetGLContext()->TexImage2D(target, level, internalformat, width,
700 height, border, format, type, pixels);
702 void GLES2TexImage3D(GLenum target,
703 GLint level,
704 GLint internalformat,
705 GLsizei width,
706 GLsizei height,
707 GLsizei depth,
708 GLint border,
709 GLenum format,
710 GLenum type,
711 const void* pixels) {
712 gles2::GetGLContext()->TexImage3D(target, level, internalformat, width,
713 height, depth, border, format, type,
714 pixels);
716 void GLES2TexParameterf(GLenum target, GLenum pname, GLfloat param) {
717 gles2::GetGLContext()->TexParameterf(target, pname, param);
719 void GLES2TexParameterfv(GLenum target, GLenum pname, const GLfloat* params) {
720 gles2::GetGLContext()->TexParameterfv(target, pname, params);
722 void GLES2TexParameteri(GLenum target, GLenum pname, GLint param) {
723 gles2::GetGLContext()->TexParameteri(target, pname, param);
725 void GLES2TexParameteriv(GLenum target, GLenum pname, const GLint* params) {
726 gles2::GetGLContext()->TexParameteriv(target, pname, params);
728 void GLES2TexStorage3D(GLenum target,
729 GLsizei levels,
730 GLenum internalFormat,
731 GLsizei width,
732 GLsizei height,
733 GLsizei depth) {
734 gles2::GetGLContext()->TexStorage3D(target, levels, internalFormat, width,
735 height, depth);
737 void GLES2TexSubImage2D(GLenum target,
738 GLint level,
739 GLint xoffset,
740 GLint yoffset,
741 GLsizei width,
742 GLsizei height,
743 GLenum format,
744 GLenum type,
745 const void* pixels) {
746 gles2::GetGLContext()->TexSubImage2D(target, level, xoffset, yoffset, width,
747 height, format, type, pixels);
749 void GLES2TexSubImage3D(GLenum target,
750 GLint level,
751 GLint xoffset,
752 GLint yoffset,
753 GLint zoffset,
754 GLsizei width,
755 GLsizei height,
756 GLsizei depth,
757 GLenum format,
758 GLenum type,
759 const void* pixels) {
760 gles2::GetGLContext()->TexSubImage3D(target, level, xoffset, yoffset, zoffset,
761 width, height, depth, format, type,
762 pixels);
764 void GLES2TransformFeedbackVaryings(GLuint program,
765 GLsizei count,
766 const char* const* varyings,
767 GLenum buffermode) {
768 gles2::GetGLContext()->TransformFeedbackVaryings(program, count, varyings,
769 buffermode);
771 void GLES2Uniform1f(GLint location, GLfloat x) {
772 gles2::GetGLContext()->Uniform1f(location, x);
774 void GLES2Uniform1fv(GLint location, GLsizei count, const GLfloat* v) {
775 gles2::GetGLContext()->Uniform1fv(location, count, v);
777 void GLES2Uniform1i(GLint location, GLint x) {
778 gles2::GetGLContext()->Uniform1i(location, x);
780 void GLES2Uniform1iv(GLint location, GLsizei count, const GLint* v) {
781 gles2::GetGLContext()->Uniform1iv(location, count, v);
783 void GLES2Uniform1ui(GLint location, GLuint x) {
784 gles2::GetGLContext()->Uniform1ui(location, x);
786 void GLES2Uniform1uiv(GLint location, GLsizei count, const GLuint* v) {
787 gles2::GetGLContext()->Uniform1uiv(location, count, v);
789 void GLES2Uniform2f(GLint location, GLfloat x, GLfloat y) {
790 gles2::GetGLContext()->Uniform2f(location, x, y);
792 void GLES2Uniform2fv(GLint location, GLsizei count, const GLfloat* v) {
793 gles2::GetGLContext()->Uniform2fv(location, count, v);
795 void GLES2Uniform2i(GLint location, GLint x, GLint y) {
796 gles2::GetGLContext()->Uniform2i(location, x, y);
798 void GLES2Uniform2iv(GLint location, GLsizei count, const GLint* v) {
799 gles2::GetGLContext()->Uniform2iv(location, count, v);
801 void GLES2Uniform2ui(GLint location, GLuint x, GLuint y) {
802 gles2::GetGLContext()->Uniform2ui(location, x, y);
804 void GLES2Uniform2uiv(GLint location, GLsizei count, const GLuint* v) {
805 gles2::GetGLContext()->Uniform2uiv(location, count, v);
807 void GLES2Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) {
808 gles2::GetGLContext()->Uniform3f(location, x, y, z);
810 void GLES2Uniform3fv(GLint location, GLsizei count, const GLfloat* v) {
811 gles2::GetGLContext()->Uniform3fv(location, count, v);
813 void GLES2Uniform3i(GLint location, GLint x, GLint y, GLint z) {
814 gles2::GetGLContext()->Uniform3i(location, x, y, z);
816 void GLES2Uniform3iv(GLint location, GLsizei count, const GLint* v) {
817 gles2::GetGLContext()->Uniform3iv(location, count, v);
819 void GLES2Uniform3ui(GLint location, GLuint x, GLuint y, GLuint z) {
820 gles2::GetGLContext()->Uniform3ui(location, x, y, z);
822 void GLES2Uniform3uiv(GLint location, GLsizei count, const GLuint* v) {
823 gles2::GetGLContext()->Uniform3uiv(location, count, v);
825 void GLES2Uniform4f(GLint location,
826 GLfloat x,
827 GLfloat y,
828 GLfloat z,
829 GLfloat w) {
830 gles2::GetGLContext()->Uniform4f(location, x, y, z, w);
832 void GLES2Uniform4fv(GLint location, GLsizei count, const GLfloat* v) {
833 gles2::GetGLContext()->Uniform4fv(location, count, v);
835 void GLES2Uniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) {
836 gles2::GetGLContext()->Uniform4i(location, x, y, z, w);
838 void GLES2Uniform4iv(GLint location, GLsizei count, const GLint* v) {
839 gles2::GetGLContext()->Uniform4iv(location, count, v);
841 void GLES2Uniform4ui(GLint location, GLuint x, GLuint y, GLuint z, GLuint w) {
842 gles2::GetGLContext()->Uniform4ui(location, x, y, z, w);
844 void GLES2Uniform4uiv(GLint location, GLsizei count, const GLuint* v) {
845 gles2::GetGLContext()->Uniform4uiv(location, count, v);
847 void GLES2UniformBlockBinding(GLuint program, GLuint index, GLuint binding) {
848 gles2::GetGLContext()->UniformBlockBinding(program, index, binding);
850 void GLES2UniformMatrix2fv(GLint location,
851 GLsizei count,
852 GLboolean transpose,
853 const GLfloat* value) {
854 gles2::GetGLContext()->UniformMatrix2fv(location, count, transpose, value);
856 void GLES2UniformMatrix2x3fv(GLint location,
857 GLsizei count,
858 GLboolean transpose,
859 const GLfloat* value) {
860 gles2::GetGLContext()->UniformMatrix2x3fv(location, count, transpose, value);
862 void GLES2UniformMatrix2x4fv(GLint location,
863 GLsizei count,
864 GLboolean transpose,
865 const GLfloat* value) {
866 gles2::GetGLContext()->UniformMatrix2x4fv(location, count, transpose, value);
868 void GLES2UniformMatrix3fv(GLint location,
869 GLsizei count,
870 GLboolean transpose,
871 const GLfloat* value) {
872 gles2::GetGLContext()->UniformMatrix3fv(location, count, transpose, value);
874 void GLES2UniformMatrix3x2fv(GLint location,
875 GLsizei count,
876 GLboolean transpose,
877 const GLfloat* value) {
878 gles2::GetGLContext()->UniformMatrix3x2fv(location, count, transpose, value);
880 void GLES2UniformMatrix3x4fv(GLint location,
881 GLsizei count,
882 GLboolean transpose,
883 const GLfloat* value) {
884 gles2::GetGLContext()->UniformMatrix3x4fv(location, count, transpose, value);
886 void GLES2UniformMatrix4fv(GLint location,
887 GLsizei count,
888 GLboolean transpose,
889 const GLfloat* value) {
890 gles2::GetGLContext()->UniformMatrix4fv(location, count, transpose, value);
892 void GLES2UniformMatrix4x2fv(GLint location,
893 GLsizei count,
894 GLboolean transpose,
895 const GLfloat* value) {
896 gles2::GetGLContext()->UniformMatrix4x2fv(location, count, transpose, value);
898 void GLES2UniformMatrix4x3fv(GLint location,
899 GLsizei count,
900 GLboolean transpose,
901 const GLfloat* value) {
902 gles2::GetGLContext()->UniformMatrix4x3fv(location, count, transpose, value);
904 void GLES2UseProgram(GLuint program) {
905 gles2::GetGLContext()->UseProgram(program);
907 void GLES2ValidateProgram(GLuint program) {
908 gles2::GetGLContext()->ValidateProgram(program);
910 void GLES2VertexAttrib1f(GLuint indx, GLfloat x) {
911 gles2::GetGLContext()->VertexAttrib1f(indx, x);
913 void GLES2VertexAttrib1fv(GLuint indx, const GLfloat* values) {
914 gles2::GetGLContext()->VertexAttrib1fv(indx, values);
916 void GLES2VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) {
917 gles2::GetGLContext()->VertexAttrib2f(indx, x, y);
919 void GLES2VertexAttrib2fv(GLuint indx, const GLfloat* values) {
920 gles2::GetGLContext()->VertexAttrib2fv(indx, values);
922 void GLES2VertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) {
923 gles2::GetGLContext()->VertexAttrib3f(indx, x, y, z);
925 void GLES2VertexAttrib3fv(GLuint indx, const GLfloat* values) {
926 gles2::GetGLContext()->VertexAttrib3fv(indx, values);
928 void GLES2VertexAttrib4f(GLuint indx,
929 GLfloat x,
930 GLfloat y,
931 GLfloat z,
932 GLfloat w) {
933 gles2::GetGLContext()->VertexAttrib4f(indx, x, y, z, w);
935 void GLES2VertexAttrib4fv(GLuint indx, const GLfloat* values) {
936 gles2::GetGLContext()->VertexAttrib4fv(indx, values);
938 void GLES2VertexAttribI4i(GLuint indx, GLint x, GLint y, GLint z, GLint w) {
939 gles2::GetGLContext()->VertexAttribI4i(indx, x, y, z, w);
941 void GLES2VertexAttribI4iv(GLuint indx, const GLint* values) {
942 gles2::GetGLContext()->VertexAttribI4iv(indx, values);
944 void GLES2VertexAttribI4ui(GLuint indx,
945 GLuint x,
946 GLuint y,
947 GLuint z,
948 GLuint w) {
949 gles2::GetGLContext()->VertexAttribI4ui(indx, x, y, z, w);
951 void GLES2VertexAttribI4uiv(GLuint indx, const GLuint* values) {
952 gles2::GetGLContext()->VertexAttribI4uiv(indx, values);
954 void GLES2VertexAttribIPointer(GLuint indx,
955 GLint size,
956 GLenum type,
957 GLsizei stride,
958 const void* ptr) {
959 gles2::GetGLContext()->VertexAttribIPointer(indx, size, type, stride, ptr);
961 void GLES2VertexAttribPointer(GLuint indx,
962 GLint size,
963 GLenum type,
964 GLboolean normalized,
965 GLsizei stride,
966 const void* ptr) {
967 gles2::GetGLContext()->VertexAttribPointer(indx, size, type, normalized,
968 stride, ptr);
970 void GLES2Viewport(GLint x, GLint y, GLsizei width, GLsizei height) {
971 gles2::GetGLContext()->Viewport(x, y, width, height);
973 void GLES2WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) {
974 gles2::GetGLContext()->WaitSync(sync, flags, timeout);
976 void GLES2BlitFramebufferCHROMIUM(GLint srcX0,
977 GLint srcY0,
978 GLint srcX1,
979 GLint srcY1,
980 GLint dstX0,
981 GLint dstY0,
982 GLint dstX1,
983 GLint dstY1,
984 GLbitfield mask,
985 GLenum filter) {
986 gles2::GetGLContext()->BlitFramebufferCHROMIUM(
987 srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
989 void GLES2RenderbufferStorageMultisampleCHROMIUM(GLenum target,
990 GLsizei samples,
991 GLenum internalformat,
992 GLsizei width,
993 GLsizei height) {
994 gles2::GetGLContext()->RenderbufferStorageMultisampleCHROMIUM(
995 target, samples, internalformat, width, height);
997 void GLES2RenderbufferStorageMultisampleEXT(GLenum target,
998 GLsizei samples,
999 GLenum internalformat,
1000 GLsizei width,
1001 GLsizei height) {
1002 gles2::GetGLContext()->RenderbufferStorageMultisampleEXT(
1003 target, samples, internalformat, width, height);
1005 void GLES2FramebufferTexture2DMultisampleEXT(GLenum target,
1006 GLenum attachment,
1007 GLenum textarget,
1008 GLuint texture,
1009 GLint level,
1010 GLsizei samples) {
1011 gles2::GetGLContext()->FramebufferTexture2DMultisampleEXT(
1012 target, attachment, textarget, texture, level, samples);
1014 void GLES2TexStorage2DEXT(GLenum target,
1015 GLsizei levels,
1016 GLenum internalFormat,
1017 GLsizei width,
1018 GLsizei height) {
1019 gles2::GetGLContext()->TexStorage2DEXT(target, levels, internalFormat, width,
1020 height);
1022 void GLES2GenQueriesEXT(GLsizei n, GLuint* queries) {
1023 gles2::GetGLContext()->GenQueriesEXT(n, queries);
1025 void GLES2DeleteQueriesEXT(GLsizei n, const GLuint* queries) {
1026 gles2::GetGLContext()->DeleteQueriesEXT(n, queries);
1028 GLboolean GLES2IsQueryEXT(GLuint id) {
1029 return gles2::GetGLContext()->IsQueryEXT(id);
1031 void GLES2BeginQueryEXT(GLenum target, GLuint id) {
1032 gles2::GetGLContext()->BeginQueryEXT(target, id);
1034 void GLES2BeginTransformFeedback(GLenum primitivemode) {
1035 gles2::GetGLContext()->BeginTransformFeedback(primitivemode);
1037 void GLES2EndQueryEXT(GLenum target) {
1038 gles2::GetGLContext()->EndQueryEXT(target);
1040 void GLES2EndTransformFeedback() {
1041 gles2::GetGLContext()->EndTransformFeedback();
1043 void GLES2GetQueryivEXT(GLenum target, GLenum pname, GLint* params) {
1044 gles2::GetGLContext()->GetQueryivEXT(target, pname, params);
1046 void GLES2GetQueryObjectuivEXT(GLuint id, GLenum pname, GLuint* params) {
1047 gles2::GetGLContext()->GetQueryObjectuivEXT(id, pname, params);
1049 void GLES2InsertEventMarkerEXT(GLsizei length, const GLchar* marker) {
1050 gles2::GetGLContext()->InsertEventMarkerEXT(length, marker);
1052 void GLES2PushGroupMarkerEXT(GLsizei length, const GLchar* marker) {
1053 gles2::GetGLContext()->PushGroupMarkerEXT(length, marker);
1055 void GLES2PopGroupMarkerEXT() {
1056 gles2::GetGLContext()->PopGroupMarkerEXT();
1058 void GLES2GenVertexArraysOES(GLsizei n, GLuint* arrays) {
1059 gles2::GetGLContext()->GenVertexArraysOES(n, arrays);
1061 void GLES2DeleteVertexArraysOES(GLsizei n, const GLuint* arrays) {
1062 gles2::GetGLContext()->DeleteVertexArraysOES(n, arrays);
1064 GLboolean GLES2IsVertexArrayOES(GLuint array) {
1065 return gles2::GetGLContext()->IsVertexArrayOES(array);
1067 void GLES2BindVertexArrayOES(GLuint array) {
1068 gles2::GetGLContext()->BindVertexArrayOES(array);
1070 void GLES2SwapBuffers() {
1071 gles2::GetGLContext()->SwapBuffers();
1073 GLuint GLES2GetMaxValueInBufferCHROMIUM(GLuint buffer_id,
1074 GLsizei count,
1075 GLenum type,
1076 GLuint offset) {
1077 return gles2::GetGLContext()->GetMaxValueInBufferCHROMIUM(buffer_id, count,
1078 type, offset);
1080 GLboolean GLES2EnableFeatureCHROMIUM(const char* feature) {
1081 return gles2::GetGLContext()->EnableFeatureCHROMIUM(feature);
1083 void* GLES2MapBufferCHROMIUM(GLuint target, GLenum access) {
1084 return gles2::GetGLContext()->MapBufferCHROMIUM(target, access);
1086 GLboolean GLES2UnmapBufferCHROMIUM(GLuint target) {
1087 return gles2::GetGLContext()->UnmapBufferCHROMIUM(target);
1089 void* GLES2MapBufferSubDataCHROMIUM(GLuint target,
1090 GLintptr offset,
1091 GLsizeiptr size,
1092 GLenum access) {
1093 return gles2::GetGLContext()->MapBufferSubDataCHROMIUM(target, offset, size,
1094 access);
1096 void GLES2UnmapBufferSubDataCHROMIUM(const void* mem) {
1097 gles2::GetGLContext()->UnmapBufferSubDataCHROMIUM(mem);
1099 void* GLES2MapBufferRange(GLenum target,
1100 GLintptr offset,
1101 GLsizeiptr size,
1102 GLbitfield access) {
1103 return gles2::GetGLContext()->MapBufferRange(target, offset, size, access);
1105 GLboolean GLES2UnmapBuffer(GLenum target) {
1106 return gles2::GetGLContext()->UnmapBuffer(target);
1108 void* GLES2MapTexSubImage2DCHROMIUM(GLenum target,
1109 GLint level,
1110 GLint xoffset,
1111 GLint yoffset,
1112 GLsizei width,
1113 GLsizei height,
1114 GLenum format,
1115 GLenum type,
1116 GLenum access) {
1117 return gles2::GetGLContext()->MapTexSubImage2DCHROMIUM(
1118 target, level, xoffset, yoffset, width, height, format, type, access);
1120 void GLES2UnmapTexSubImage2DCHROMIUM(const void* mem) {
1121 gles2::GetGLContext()->UnmapTexSubImage2DCHROMIUM(mem);
1123 void GLES2ResizeCHROMIUM(GLuint width, GLuint height, GLfloat scale_factor) {
1124 gles2::GetGLContext()->ResizeCHROMIUM(width, height, scale_factor);
1126 const GLchar* GLES2GetRequestableExtensionsCHROMIUM() {
1127 return gles2::GetGLContext()->GetRequestableExtensionsCHROMIUM();
1129 void GLES2RequestExtensionCHROMIUM(const char* extension) {
1130 gles2::GetGLContext()->RequestExtensionCHROMIUM(extension);
1132 void GLES2RateLimitOffscreenContextCHROMIUM() {
1133 gles2::GetGLContext()->RateLimitOffscreenContextCHROMIUM();
1135 void GLES2GetProgramInfoCHROMIUM(GLuint program,
1136 GLsizei bufsize,
1137 GLsizei* size,
1138 void* info) {
1139 gles2::GetGLContext()->GetProgramInfoCHROMIUM(program, bufsize, size, info);
1141 void GLES2GetUniformBlocksCHROMIUM(GLuint program,
1142 GLsizei bufsize,
1143 GLsizei* size,
1144 void* info) {
1145 gles2::GetGLContext()->GetUniformBlocksCHROMIUM(program, bufsize, size, info);
1147 void GLES2GetTransformFeedbackVaryingsCHROMIUM(GLuint program,
1148 GLsizei bufsize,
1149 GLsizei* size,
1150 void* info) {
1151 gles2::GetGLContext()->GetTransformFeedbackVaryingsCHROMIUM(program, bufsize,
1152 size, info);
1154 void GLES2GetUniformsES3CHROMIUM(GLuint program,
1155 GLsizei bufsize,
1156 GLsizei* size,
1157 void* info) {
1158 gles2::GetGLContext()->GetUniformsES3CHROMIUM(program, bufsize, size, info);
1160 GLuint GLES2CreateStreamTextureCHROMIUM(GLuint texture) {
1161 return gles2::GetGLContext()->CreateStreamTextureCHROMIUM(texture);
1163 GLuint GLES2CreateImageCHROMIUM(ClientBuffer buffer,
1164 GLsizei width,
1165 GLsizei height,
1166 GLenum internalformat) {
1167 return gles2::GetGLContext()->CreateImageCHROMIUM(buffer, width, height,
1168 internalformat);
1170 void GLES2DestroyImageCHROMIUM(GLuint image_id) {
1171 gles2::GetGLContext()->DestroyImageCHROMIUM(image_id);
1173 GLuint GLES2CreateGpuMemoryBufferImageCHROMIUM(GLsizei width,
1174 GLsizei height,
1175 GLenum internalformat,
1176 GLenum usage) {
1177 return gles2::GetGLContext()->CreateGpuMemoryBufferImageCHROMIUM(
1178 width, height, internalformat, usage);
1180 void GLES2GetTranslatedShaderSourceANGLE(GLuint shader,
1181 GLsizei bufsize,
1182 GLsizei* length,
1183 char* source) {
1184 gles2::GetGLContext()->GetTranslatedShaderSourceANGLE(shader, bufsize, length,
1185 source);
1187 void GLES2PostSubBufferCHROMIUM(GLint x, GLint y, GLint width, GLint height) {
1188 gles2::GetGLContext()->PostSubBufferCHROMIUM(x, y, width, height);
1190 void GLES2TexImageIOSurface2DCHROMIUM(GLenum target,
1191 GLsizei width,
1192 GLsizei height,
1193 GLuint ioSurfaceId,
1194 GLuint plane) {
1195 gles2::GetGLContext()->TexImageIOSurface2DCHROMIUM(target, width, height,
1196 ioSurfaceId, plane);
1198 void GLES2CopyTextureCHROMIUM(GLenum target,
1199 GLenum source_id,
1200 GLenum dest_id,
1201 GLint internalformat,
1202 GLenum dest_type) {
1203 gles2::GetGLContext()->CopyTextureCHROMIUM(target, source_id, dest_id,
1204 internalformat, dest_type);
1206 void GLES2CopySubTextureCHROMIUM(GLenum target,
1207 GLenum source_id,
1208 GLenum dest_id,
1209 GLint xoffset,
1210 GLint yoffset) {
1211 gles2::GetGLContext()->CopySubTextureCHROMIUM(target, source_id, dest_id,
1212 xoffset, yoffset);
1214 void GLES2DrawArraysInstancedANGLE(GLenum mode,
1215 GLint first,
1216 GLsizei count,
1217 GLsizei primcount) {
1218 gles2::GetGLContext()->DrawArraysInstancedANGLE(mode, first, count,
1219 primcount);
1221 void GLES2DrawElementsInstancedANGLE(GLenum mode,
1222 GLsizei count,
1223 GLenum type,
1224 const void* indices,
1225 GLsizei primcount) {
1226 gles2::GetGLContext()->DrawElementsInstancedANGLE(mode, count, type, indices,
1227 primcount);
1229 void GLES2VertexAttribDivisorANGLE(GLuint index, GLuint divisor) {
1230 gles2::GetGLContext()->VertexAttribDivisorANGLE(index, divisor);
1232 void GLES2GenMailboxCHROMIUM(GLbyte* mailbox) {
1233 gles2::GetGLContext()->GenMailboxCHROMIUM(mailbox);
1235 void GLES2ProduceTextureCHROMIUM(GLenum target, const GLbyte* mailbox) {
1236 gles2::GetGLContext()->ProduceTextureCHROMIUM(target, mailbox);
1238 void GLES2ProduceTextureDirectCHROMIUM(GLuint texture,
1239 GLenum target,
1240 const GLbyte* mailbox) {
1241 gles2::GetGLContext()->ProduceTextureDirectCHROMIUM(texture, target, mailbox);
1243 void GLES2ConsumeTextureCHROMIUM(GLenum target, const GLbyte* mailbox) {
1244 gles2::GetGLContext()->ConsumeTextureCHROMIUM(target, mailbox);
1246 GLuint GLES2CreateAndConsumeTextureCHROMIUM(GLenum target,
1247 const GLbyte* mailbox) {
1248 return gles2::GetGLContext()->CreateAndConsumeTextureCHROMIUM(target,
1249 mailbox);
1251 void GLES2BindUniformLocationCHROMIUM(GLuint program,
1252 GLint location,
1253 const char* name) {
1254 gles2::GetGLContext()->BindUniformLocationCHROMIUM(program, location, name);
1256 void GLES2GenValuebuffersCHROMIUM(GLsizei n, GLuint* buffers) {
1257 gles2::GetGLContext()->GenValuebuffersCHROMIUM(n, buffers);
1259 void GLES2DeleteValuebuffersCHROMIUM(GLsizei n, const GLuint* valuebuffers) {
1260 gles2::GetGLContext()->DeleteValuebuffersCHROMIUM(n, valuebuffers);
1262 GLboolean GLES2IsValuebufferCHROMIUM(GLuint valuebuffer) {
1263 return gles2::GetGLContext()->IsValuebufferCHROMIUM(valuebuffer);
1265 void GLES2BindValuebufferCHROMIUM(GLenum target, GLuint valuebuffer) {
1266 gles2::GetGLContext()->BindValuebufferCHROMIUM(target, valuebuffer);
1268 void GLES2SubscribeValueCHROMIUM(GLenum target, GLenum subscription) {
1269 gles2::GetGLContext()->SubscribeValueCHROMIUM(target, subscription);
1271 void GLES2PopulateSubscribedValuesCHROMIUM(GLenum target) {
1272 gles2::GetGLContext()->PopulateSubscribedValuesCHROMIUM(target);
1274 void GLES2UniformValuebufferCHROMIUM(GLint location,
1275 GLenum target,
1276 GLenum subscription) {
1277 gles2::GetGLContext()->UniformValuebufferCHROMIUM(location, target,
1278 subscription);
1280 void GLES2BindTexImage2DCHROMIUM(GLenum target, GLint imageId) {
1281 gles2::GetGLContext()->BindTexImage2DCHROMIUM(target, imageId);
1283 void GLES2ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) {
1284 gles2::GetGLContext()->ReleaseTexImage2DCHROMIUM(target, imageId);
1286 void GLES2TraceBeginCHROMIUM(const char* category_name,
1287 const char* trace_name) {
1288 gles2::GetGLContext()->TraceBeginCHROMIUM(category_name, trace_name);
1290 void GLES2TraceEndCHROMIUM() {
1291 gles2::GetGLContext()->TraceEndCHROMIUM();
1293 void GLES2AsyncTexSubImage2DCHROMIUM(GLenum target,
1294 GLint level,
1295 GLint xoffset,
1296 GLint yoffset,
1297 GLsizei width,
1298 GLsizei height,
1299 GLenum format,
1300 GLenum type,
1301 const void* data) {
1302 gles2::GetGLContext()->AsyncTexSubImage2DCHROMIUM(
1303 target, level, xoffset, yoffset, width, height, format, type, data);
1305 void GLES2AsyncTexImage2DCHROMIUM(GLenum target,
1306 GLint level,
1307 GLenum internalformat,
1308 GLsizei width,
1309 GLsizei height,
1310 GLint border,
1311 GLenum format,
1312 GLenum type,
1313 const void* pixels) {
1314 gles2::GetGLContext()->AsyncTexImage2DCHROMIUM(target, level, internalformat,
1315 width, height, border, format,
1316 type, pixels);
1318 void GLES2WaitAsyncTexImage2DCHROMIUM(GLenum target) {
1319 gles2::GetGLContext()->WaitAsyncTexImage2DCHROMIUM(target);
1321 void GLES2WaitAllAsyncTexImage2DCHROMIUM() {
1322 gles2::GetGLContext()->WaitAllAsyncTexImage2DCHROMIUM();
1324 void GLES2DiscardFramebufferEXT(GLenum target,
1325 GLsizei count,
1326 const GLenum* attachments) {
1327 gles2::GetGLContext()->DiscardFramebufferEXT(target, count, attachments);
1329 void GLES2LoseContextCHROMIUM(GLenum current, GLenum other) {
1330 gles2::GetGLContext()->LoseContextCHROMIUM(current, other);
1332 GLuint GLES2InsertSyncPointCHROMIUM() {
1333 return gles2::GetGLContext()->InsertSyncPointCHROMIUM();
1335 void GLES2WaitSyncPointCHROMIUM(GLuint sync_point) {
1336 gles2::GetGLContext()->WaitSyncPointCHROMIUM(sync_point);
1338 void GLES2DrawBuffersEXT(GLsizei count, const GLenum* bufs) {
1339 gles2::GetGLContext()->DrawBuffersEXT(count, bufs);
1341 void GLES2DiscardBackbufferCHROMIUM() {
1342 gles2::GetGLContext()->DiscardBackbufferCHROMIUM();
1344 void GLES2ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order,
1345 GLenum plane_transform,
1346 GLuint overlay_texture_id,
1347 GLint bounds_x,
1348 GLint bounds_y,
1349 GLint bounds_width,
1350 GLint bounds_height,
1351 GLfloat uv_x,
1352 GLfloat uv_y,
1353 GLfloat uv_width,
1354 GLfloat uv_height) {
1355 gles2::GetGLContext()->ScheduleOverlayPlaneCHROMIUM(
1356 plane_z_order, plane_transform, overlay_texture_id, bounds_x, bounds_y,
1357 bounds_width, bounds_height, uv_x, uv_y, uv_width, uv_height);
1359 void GLES2SwapInterval(GLint interval) {
1360 gles2::GetGLContext()->SwapInterval(interval);
1362 void GLES2MatrixLoadfCHROMIUM(GLenum matrixMode, const GLfloat* m) {
1363 gles2::GetGLContext()->MatrixLoadfCHROMIUM(matrixMode, m);
1365 void GLES2MatrixLoadIdentityCHROMIUM(GLenum matrixMode) {
1366 gles2::GetGLContext()->MatrixLoadIdentityCHROMIUM(matrixMode);
1368 void GLES2BlendBarrierKHR() {
1369 gles2::GetGLContext()->BlendBarrierKHR();
1372 namespace gles2 {
1374 extern const NameToFunc g_gles2_function_table[] = {
1376 "glActiveTexture",
1377 reinterpret_cast<GLES2FunctionPointer>(glActiveTexture),
1380 "glAttachShader",
1381 reinterpret_cast<GLES2FunctionPointer>(glAttachShader),
1384 "glBindAttribLocation",
1385 reinterpret_cast<GLES2FunctionPointer>(glBindAttribLocation),
1388 "glBindBuffer",
1389 reinterpret_cast<GLES2FunctionPointer>(glBindBuffer),
1392 "glBindBufferBase",
1393 reinterpret_cast<GLES2FunctionPointer>(glBindBufferBase),
1396 "glBindBufferRange",
1397 reinterpret_cast<GLES2FunctionPointer>(glBindBufferRange),
1400 "glBindFramebuffer",
1401 reinterpret_cast<GLES2FunctionPointer>(glBindFramebuffer),
1404 "glBindRenderbuffer",
1405 reinterpret_cast<GLES2FunctionPointer>(glBindRenderbuffer),
1408 "glBindSampler",
1409 reinterpret_cast<GLES2FunctionPointer>(glBindSampler),
1412 "glBindTexture",
1413 reinterpret_cast<GLES2FunctionPointer>(glBindTexture),
1416 "glBindTransformFeedback",
1417 reinterpret_cast<GLES2FunctionPointer>(glBindTransformFeedback),
1420 "glBlendColor",
1421 reinterpret_cast<GLES2FunctionPointer>(glBlendColor),
1424 "glBlendEquation",
1425 reinterpret_cast<GLES2FunctionPointer>(glBlendEquation),
1428 "glBlendEquationSeparate",
1429 reinterpret_cast<GLES2FunctionPointer>(glBlendEquationSeparate),
1432 "glBlendFunc",
1433 reinterpret_cast<GLES2FunctionPointer>(glBlendFunc),
1436 "glBlendFuncSeparate",
1437 reinterpret_cast<GLES2FunctionPointer>(glBlendFuncSeparate),
1440 "glBufferData",
1441 reinterpret_cast<GLES2FunctionPointer>(glBufferData),
1444 "glBufferSubData",
1445 reinterpret_cast<GLES2FunctionPointer>(glBufferSubData),
1448 "glCheckFramebufferStatus",
1449 reinterpret_cast<GLES2FunctionPointer>(glCheckFramebufferStatus),
1452 "glClear",
1453 reinterpret_cast<GLES2FunctionPointer>(glClear),
1456 "glClearBufferfi",
1457 reinterpret_cast<GLES2FunctionPointer>(glClearBufferfi),
1460 "glClearBufferfv",
1461 reinterpret_cast<GLES2FunctionPointer>(glClearBufferfv),
1464 "glClearBufferiv",
1465 reinterpret_cast<GLES2FunctionPointer>(glClearBufferiv),
1468 "glClearBufferuiv",
1469 reinterpret_cast<GLES2FunctionPointer>(glClearBufferuiv),
1472 "glClearColor",
1473 reinterpret_cast<GLES2FunctionPointer>(glClearColor),
1476 "glClearDepthf",
1477 reinterpret_cast<GLES2FunctionPointer>(glClearDepthf),
1480 "glClearStencil",
1481 reinterpret_cast<GLES2FunctionPointer>(glClearStencil),
1484 "glClientWaitSync",
1485 reinterpret_cast<GLES2FunctionPointer>(glClientWaitSync),
1488 "glColorMask",
1489 reinterpret_cast<GLES2FunctionPointer>(glColorMask),
1492 "glCompileShader",
1493 reinterpret_cast<GLES2FunctionPointer>(glCompileShader),
1496 "glCompressedTexImage2D",
1497 reinterpret_cast<GLES2FunctionPointer>(glCompressedTexImage2D),
1500 "glCompressedTexSubImage2D",
1501 reinterpret_cast<GLES2FunctionPointer>(glCompressedTexSubImage2D),
1504 "glCompressedTexImage3D",
1505 reinterpret_cast<GLES2FunctionPointer>(glCompressedTexImage3D),
1508 "glCopyBufferSubData",
1509 reinterpret_cast<GLES2FunctionPointer>(glCopyBufferSubData),
1512 "glCopyTexImage2D",
1513 reinterpret_cast<GLES2FunctionPointer>(glCopyTexImage2D),
1516 "glCopyTexSubImage2D",
1517 reinterpret_cast<GLES2FunctionPointer>(glCopyTexSubImage2D),
1520 "glCopyTexSubImage3D",
1521 reinterpret_cast<GLES2FunctionPointer>(glCopyTexSubImage3D),
1524 "glCreateProgram",
1525 reinterpret_cast<GLES2FunctionPointer>(glCreateProgram),
1528 "glCreateShader",
1529 reinterpret_cast<GLES2FunctionPointer>(glCreateShader),
1532 "glCullFace",
1533 reinterpret_cast<GLES2FunctionPointer>(glCullFace),
1536 "glDeleteBuffers",
1537 reinterpret_cast<GLES2FunctionPointer>(glDeleteBuffers),
1540 "glDeleteFramebuffers",
1541 reinterpret_cast<GLES2FunctionPointer>(glDeleteFramebuffers),
1544 "glDeleteProgram",
1545 reinterpret_cast<GLES2FunctionPointer>(glDeleteProgram),
1548 "glDeleteRenderbuffers",
1549 reinterpret_cast<GLES2FunctionPointer>(glDeleteRenderbuffers),
1552 "glDeleteSamplers",
1553 reinterpret_cast<GLES2FunctionPointer>(glDeleteSamplers),
1556 "glDeleteSync",
1557 reinterpret_cast<GLES2FunctionPointer>(glDeleteSync),
1560 "glDeleteShader",
1561 reinterpret_cast<GLES2FunctionPointer>(glDeleteShader),
1564 "glDeleteTextures",
1565 reinterpret_cast<GLES2FunctionPointer>(glDeleteTextures),
1568 "glDeleteTransformFeedbacks",
1569 reinterpret_cast<GLES2FunctionPointer>(glDeleteTransformFeedbacks),
1572 "glDepthFunc",
1573 reinterpret_cast<GLES2FunctionPointer>(glDepthFunc),
1576 "glDepthMask",
1577 reinterpret_cast<GLES2FunctionPointer>(glDepthMask),
1580 "glDepthRangef",
1581 reinterpret_cast<GLES2FunctionPointer>(glDepthRangef),
1584 "glDetachShader",
1585 reinterpret_cast<GLES2FunctionPointer>(glDetachShader),
1588 "glDisable",
1589 reinterpret_cast<GLES2FunctionPointer>(glDisable),
1592 "glDisableVertexAttribArray",
1593 reinterpret_cast<GLES2FunctionPointer>(glDisableVertexAttribArray),
1596 "glDrawArrays",
1597 reinterpret_cast<GLES2FunctionPointer>(glDrawArrays),
1600 "glDrawElements",
1601 reinterpret_cast<GLES2FunctionPointer>(glDrawElements),
1604 "glDrawRangeElements",
1605 reinterpret_cast<GLES2FunctionPointer>(glDrawRangeElements),
1608 "glEnable",
1609 reinterpret_cast<GLES2FunctionPointer>(glEnable),
1612 "glEnableVertexAttribArray",
1613 reinterpret_cast<GLES2FunctionPointer>(glEnableVertexAttribArray),
1616 "glFenceSync",
1617 reinterpret_cast<GLES2FunctionPointer>(glFenceSync),
1620 "glFinish",
1621 reinterpret_cast<GLES2FunctionPointer>(glFinish),
1624 "glFlush",
1625 reinterpret_cast<GLES2FunctionPointer>(glFlush),
1628 "glFramebufferRenderbuffer",
1629 reinterpret_cast<GLES2FunctionPointer>(glFramebufferRenderbuffer),
1632 "glFramebufferTexture2D",
1633 reinterpret_cast<GLES2FunctionPointer>(glFramebufferTexture2D),
1636 "glFramebufferTextureLayer",
1637 reinterpret_cast<GLES2FunctionPointer>(glFramebufferTextureLayer),
1640 "glFrontFace",
1641 reinterpret_cast<GLES2FunctionPointer>(glFrontFace),
1644 "glGenBuffers",
1645 reinterpret_cast<GLES2FunctionPointer>(glGenBuffers),
1648 "glGenerateMipmap",
1649 reinterpret_cast<GLES2FunctionPointer>(glGenerateMipmap),
1652 "glGenFramebuffers",
1653 reinterpret_cast<GLES2FunctionPointer>(glGenFramebuffers),
1656 "glGenRenderbuffers",
1657 reinterpret_cast<GLES2FunctionPointer>(glGenRenderbuffers),
1660 "glGenSamplers",
1661 reinterpret_cast<GLES2FunctionPointer>(glGenSamplers),
1664 "glGenTextures",
1665 reinterpret_cast<GLES2FunctionPointer>(glGenTextures),
1668 "glGenTransformFeedbacks",
1669 reinterpret_cast<GLES2FunctionPointer>(glGenTransformFeedbacks),
1672 "glGetActiveAttrib",
1673 reinterpret_cast<GLES2FunctionPointer>(glGetActiveAttrib),
1676 "glGetActiveUniform",
1677 reinterpret_cast<GLES2FunctionPointer>(glGetActiveUniform),
1680 "glGetActiveUniformBlockiv",
1681 reinterpret_cast<GLES2FunctionPointer>(glGetActiveUniformBlockiv),
1684 "glGetActiveUniformBlockName",
1685 reinterpret_cast<GLES2FunctionPointer>(glGetActiveUniformBlockName),
1688 "glGetActiveUniformsiv",
1689 reinterpret_cast<GLES2FunctionPointer>(glGetActiveUniformsiv),
1692 "glGetAttachedShaders",
1693 reinterpret_cast<GLES2FunctionPointer>(glGetAttachedShaders),
1696 "glGetAttribLocation",
1697 reinterpret_cast<GLES2FunctionPointer>(glGetAttribLocation),
1700 "glGetBooleanv",
1701 reinterpret_cast<GLES2FunctionPointer>(glGetBooleanv),
1704 "glGetBufferParameteriv",
1705 reinterpret_cast<GLES2FunctionPointer>(glGetBufferParameteriv),
1708 "glGetError",
1709 reinterpret_cast<GLES2FunctionPointer>(glGetError),
1712 "glGetFloatv",
1713 reinterpret_cast<GLES2FunctionPointer>(glGetFloatv),
1716 "glGetFragDataLocation",
1717 reinterpret_cast<GLES2FunctionPointer>(glGetFragDataLocation),
1720 "glGetFramebufferAttachmentParameteriv",
1721 reinterpret_cast<GLES2FunctionPointer>(
1722 glGetFramebufferAttachmentParameteriv),
1725 "glGetInteger64v",
1726 reinterpret_cast<GLES2FunctionPointer>(glGetInteger64v),
1729 "glGetIntegeri_v",
1730 reinterpret_cast<GLES2FunctionPointer>(glGetIntegeri_v),
1733 "glGetInteger64i_v",
1734 reinterpret_cast<GLES2FunctionPointer>(glGetInteger64i_v),
1737 "glGetIntegerv",
1738 reinterpret_cast<GLES2FunctionPointer>(glGetIntegerv),
1741 "glGetInternalformativ",
1742 reinterpret_cast<GLES2FunctionPointer>(glGetInternalformativ),
1745 "glGetProgramiv",
1746 reinterpret_cast<GLES2FunctionPointer>(glGetProgramiv),
1749 "glGetProgramInfoLog",
1750 reinterpret_cast<GLES2FunctionPointer>(glGetProgramInfoLog),
1753 "glGetRenderbufferParameteriv",
1754 reinterpret_cast<GLES2FunctionPointer>(glGetRenderbufferParameteriv),
1757 "glGetSamplerParameterfv",
1758 reinterpret_cast<GLES2FunctionPointer>(glGetSamplerParameterfv),
1761 "glGetSamplerParameteriv",
1762 reinterpret_cast<GLES2FunctionPointer>(glGetSamplerParameteriv),
1765 "glGetShaderiv",
1766 reinterpret_cast<GLES2FunctionPointer>(glGetShaderiv),
1769 "glGetShaderInfoLog",
1770 reinterpret_cast<GLES2FunctionPointer>(glGetShaderInfoLog),
1773 "glGetShaderPrecisionFormat",
1774 reinterpret_cast<GLES2FunctionPointer>(glGetShaderPrecisionFormat),
1777 "glGetShaderSource",
1778 reinterpret_cast<GLES2FunctionPointer>(glGetShaderSource),
1781 "glGetString",
1782 reinterpret_cast<GLES2FunctionPointer>(glGetString),
1785 "glGetSynciv",
1786 reinterpret_cast<GLES2FunctionPointer>(glGetSynciv),
1789 "glGetTexParameterfv",
1790 reinterpret_cast<GLES2FunctionPointer>(glGetTexParameterfv),
1793 "glGetTexParameteriv",
1794 reinterpret_cast<GLES2FunctionPointer>(glGetTexParameteriv),
1797 "glGetTransformFeedbackVarying",
1798 reinterpret_cast<GLES2FunctionPointer>(glGetTransformFeedbackVarying),
1801 "glGetUniformBlockIndex",
1802 reinterpret_cast<GLES2FunctionPointer>(glGetUniformBlockIndex),
1805 "glGetUniformfv",
1806 reinterpret_cast<GLES2FunctionPointer>(glGetUniformfv),
1809 "glGetUniformiv",
1810 reinterpret_cast<GLES2FunctionPointer>(glGetUniformiv),
1813 "glGetUniformIndices",
1814 reinterpret_cast<GLES2FunctionPointer>(glGetUniformIndices),
1817 "glGetUniformLocation",
1818 reinterpret_cast<GLES2FunctionPointer>(glGetUniformLocation),
1821 "glGetVertexAttribfv",
1822 reinterpret_cast<GLES2FunctionPointer>(glGetVertexAttribfv),
1825 "glGetVertexAttribiv",
1826 reinterpret_cast<GLES2FunctionPointer>(glGetVertexAttribiv),
1829 "glGetVertexAttribPointerv",
1830 reinterpret_cast<GLES2FunctionPointer>(glGetVertexAttribPointerv),
1833 "glHint",
1834 reinterpret_cast<GLES2FunctionPointer>(glHint),
1837 "glInvalidateFramebuffer",
1838 reinterpret_cast<GLES2FunctionPointer>(glInvalidateFramebuffer),
1841 "glInvalidateSubFramebuffer",
1842 reinterpret_cast<GLES2FunctionPointer>(glInvalidateSubFramebuffer),
1845 "glIsBuffer",
1846 reinterpret_cast<GLES2FunctionPointer>(glIsBuffer),
1849 "glIsEnabled",
1850 reinterpret_cast<GLES2FunctionPointer>(glIsEnabled),
1853 "glIsFramebuffer",
1854 reinterpret_cast<GLES2FunctionPointer>(glIsFramebuffer),
1857 "glIsProgram",
1858 reinterpret_cast<GLES2FunctionPointer>(glIsProgram),
1861 "glIsRenderbuffer",
1862 reinterpret_cast<GLES2FunctionPointer>(glIsRenderbuffer),
1865 "glIsSampler",
1866 reinterpret_cast<GLES2FunctionPointer>(glIsSampler),
1869 "glIsShader",
1870 reinterpret_cast<GLES2FunctionPointer>(glIsShader),
1873 "glIsSync",
1874 reinterpret_cast<GLES2FunctionPointer>(glIsSync),
1877 "glIsTexture",
1878 reinterpret_cast<GLES2FunctionPointer>(glIsTexture),
1881 "glIsTransformFeedback",
1882 reinterpret_cast<GLES2FunctionPointer>(glIsTransformFeedback),
1885 "glLineWidth",
1886 reinterpret_cast<GLES2FunctionPointer>(glLineWidth),
1889 "glLinkProgram",
1890 reinterpret_cast<GLES2FunctionPointer>(glLinkProgram),
1893 "glPauseTransformFeedback",
1894 reinterpret_cast<GLES2FunctionPointer>(glPauseTransformFeedback),
1897 "glPixelStorei",
1898 reinterpret_cast<GLES2FunctionPointer>(glPixelStorei),
1901 "glPolygonOffset",
1902 reinterpret_cast<GLES2FunctionPointer>(glPolygonOffset),
1905 "glReadBuffer",
1906 reinterpret_cast<GLES2FunctionPointer>(glReadBuffer),
1909 "glReadPixels",
1910 reinterpret_cast<GLES2FunctionPointer>(glReadPixels),
1913 "glReleaseShaderCompiler",
1914 reinterpret_cast<GLES2FunctionPointer>(glReleaseShaderCompiler),
1917 "glRenderbufferStorage",
1918 reinterpret_cast<GLES2FunctionPointer>(glRenderbufferStorage),
1921 "glResumeTransformFeedback",
1922 reinterpret_cast<GLES2FunctionPointer>(glResumeTransformFeedback),
1925 "glSampleCoverage",
1926 reinterpret_cast<GLES2FunctionPointer>(glSampleCoverage),
1929 "glSamplerParameterf",
1930 reinterpret_cast<GLES2FunctionPointer>(glSamplerParameterf),
1933 "glSamplerParameterfv",
1934 reinterpret_cast<GLES2FunctionPointer>(glSamplerParameterfv),
1937 "glSamplerParameteri",
1938 reinterpret_cast<GLES2FunctionPointer>(glSamplerParameteri),
1941 "glSamplerParameteriv",
1942 reinterpret_cast<GLES2FunctionPointer>(glSamplerParameteriv),
1945 "glScissor",
1946 reinterpret_cast<GLES2FunctionPointer>(glScissor),
1949 "glShaderBinary",
1950 reinterpret_cast<GLES2FunctionPointer>(glShaderBinary),
1953 "glShaderSource",
1954 reinterpret_cast<GLES2FunctionPointer>(glShaderSource),
1957 "glShallowFinishCHROMIUM",
1958 reinterpret_cast<GLES2FunctionPointer>(glShallowFinishCHROMIUM),
1961 "glShallowFlushCHROMIUM",
1962 reinterpret_cast<GLES2FunctionPointer>(glShallowFlushCHROMIUM),
1965 "glOrderingBarrierCHROMIUM",
1966 reinterpret_cast<GLES2FunctionPointer>(glOrderingBarrierCHROMIUM),
1969 "glStencilFunc",
1970 reinterpret_cast<GLES2FunctionPointer>(glStencilFunc),
1973 "glStencilFuncSeparate",
1974 reinterpret_cast<GLES2FunctionPointer>(glStencilFuncSeparate),
1977 "glStencilMask",
1978 reinterpret_cast<GLES2FunctionPointer>(glStencilMask),
1981 "glStencilMaskSeparate",
1982 reinterpret_cast<GLES2FunctionPointer>(glStencilMaskSeparate),
1985 "glStencilOp",
1986 reinterpret_cast<GLES2FunctionPointer>(glStencilOp),
1989 "glStencilOpSeparate",
1990 reinterpret_cast<GLES2FunctionPointer>(glStencilOpSeparate),
1993 "glTexImage2D",
1994 reinterpret_cast<GLES2FunctionPointer>(glTexImage2D),
1997 "glTexImage3D",
1998 reinterpret_cast<GLES2FunctionPointer>(glTexImage3D),
2001 "glTexParameterf",
2002 reinterpret_cast<GLES2FunctionPointer>(glTexParameterf),
2005 "glTexParameterfv",
2006 reinterpret_cast<GLES2FunctionPointer>(glTexParameterfv),
2009 "glTexParameteri",
2010 reinterpret_cast<GLES2FunctionPointer>(glTexParameteri),
2013 "glTexParameteriv",
2014 reinterpret_cast<GLES2FunctionPointer>(glTexParameteriv),
2017 "glTexStorage3D",
2018 reinterpret_cast<GLES2FunctionPointer>(glTexStorage3D),
2021 "glTexSubImage2D",
2022 reinterpret_cast<GLES2FunctionPointer>(glTexSubImage2D),
2025 "glTexSubImage3D",
2026 reinterpret_cast<GLES2FunctionPointer>(glTexSubImage3D),
2029 "glTransformFeedbackVaryings",
2030 reinterpret_cast<GLES2FunctionPointer>(glTransformFeedbackVaryings),
2033 "glUniform1f",
2034 reinterpret_cast<GLES2FunctionPointer>(glUniform1f),
2037 "glUniform1fv",
2038 reinterpret_cast<GLES2FunctionPointer>(glUniform1fv),
2041 "glUniform1i",
2042 reinterpret_cast<GLES2FunctionPointer>(glUniform1i),
2045 "glUniform1iv",
2046 reinterpret_cast<GLES2FunctionPointer>(glUniform1iv),
2049 "glUniform1ui",
2050 reinterpret_cast<GLES2FunctionPointer>(glUniform1ui),
2053 "glUniform1uiv",
2054 reinterpret_cast<GLES2FunctionPointer>(glUniform1uiv),
2057 "glUniform2f",
2058 reinterpret_cast<GLES2FunctionPointer>(glUniform2f),
2061 "glUniform2fv",
2062 reinterpret_cast<GLES2FunctionPointer>(glUniform2fv),
2065 "glUniform2i",
2066 reinterpret_cast<GLES2FunctionPointer>(glUniform2i),
2069 "glUniform2iv",
2070 reinterpret_cast<GLES2FunctionPointer>(glUniform2iv),
2073 "glUniform2ui",
2074 reinterpret_cast<GLES2FunctionPointer>(glUniform2ui),
2077 "glUniform2uiv",
2078 reinterpret_cast<GLES2FunctionPointer>(glUniform2uiv),
2081 "glUniform3f",
2082 reinterpret_cast<GLES2FunctionPointer>(glUniform3f),
2085 "glUniform3fv",
2086 reinterpret_cast<GLES2FunctionPointer>(glUniform3fv),
2089 "glUniform3i",
2090 reinterpret_cast<GLES2FunctionPointer>(glUniform3i),
2093 "glUniform3iv",
2094 reinterpret_cast<GLES2FunctionPointer>(glUniform3iv),
2097 "glUniform3ui",
2098 reinterpret_cast<GLES2FunctionPointer>(glUniform3ui),
2101 "glUniform3uiv",
2102 reinterpret_cast<GLES2FunctionPointer>(glUniform3uiv),
2105 "glUniform4f",
2106 reinterpret_cast<GLES2FunctionPointer>(glUniform4f),
2109 "glUniform4fv",
2110 reinterpret_cast<GLES2FunctionPointer>(glUniform4fv),
2113 "glUniform4i",
2114 reinterpret_cast<GLES2FunctionPointer>(glUniform4i),
2117 "glUniform4iv",
2118 reinterpret_cast<GLES2FunctionPointer>(glUniform4iv),
2121 "glUniform4ui",
2122 reinterpret_cast<GLES2FunctionPointer>(glUniform4ui),
2125 "glUniform4uiv",
2126 reinterpret_cast<GLES2FunctionPointer>(glUniform4uiv),
2129 "glUniformBlockBinding",
2130 reinterpret_cast<GLES2FunctionPointer>(glUniformBlockBinding),
2133 "glUniformMatrix2fv",
2134 reinterpret_cast<GLES2FunctionPointer>(glUniformMatrix2fv),
2137 "glUniformMatrix2x3fv",
2138 reinterpret_cast<GLES2FunctionPointer>(glUniformMatrix2x3fv),
2141 "glUniformMatrix2x4fv",
2142 reinterpret_cast<GLES2FunctionPointer>(glUniformMatrix2x4fv),
2145 "glUniformMatrix3fv",
2146 reinterpret_cast<GLES2FunctionPointer>(glUniformMatrix3fv),
2149 "glUniformMatrix3x2fv",
2150 reinterpret_cast<GLES2FunctionPointer>(glUniformMatrix3x2fv),
2153 "glUniformMatrix3x4fv",
2154 reinterpret_cast<GLES2FunctionPointer>(glUniformMatrix3x4fv),
2157 "glUniformMatrix4fv",
2158 reinterpret_cast<GLES2FunctionPointer>(glUniformMatrix4fv),
2161 "glUniformMatrix4x2fv",
2162 reinterpret_cast<GLES2FunctionPointer>(glUniformMatrix4x2fv),
2165 "glUniformMatrix4x3fv",
2166 reinterpret_cast<GLES2FunctionPointer>(glUniformMatrix4x3fv),
2169 "glUseProgram",
2170 reinterpret_cast<GLES2FunctionPointer>(glUseProgram),
2173 "glValidateProgram",
2174 reinterpret_cast<GLES2FunctionPointer>(glValidateProgram),
2177 "glVertexAttrib1f",
2178 reinterpret_cast<GLES2FunctionPointer>(glVertexAttrib1f),
2181 "glVertexAttrib1fv",
2182 reinterpret_cast<GLES2FunctionPointer>(glVertexAttrib1fv),
2185 "glVertexAttrib2f",
2186 reinterpret_cast<GLES2FunctionPointer>(glVertexAttrib2f),
2189 "glVertexAttrib2fv",
2190 reinterpret_cast<GLES2FunctionPointer>(glVertexAttrib2fv),
2193 "glVertexAttrib3f",
2194 reinterpret_cast<GLES2FunctionPointer>(glVertexAttrib3f),
2197 "glVertexAttrib3fv",
2198 reinterpret_cast<GLES2FunctionPointer>(glVertexAttrib3fv),
2201 "glVertexAttrib4f",
2202 reinterpret_cast<GLES2FunctionPointer>(glVertexAttrib4f),
2205 "glVertexAttrib4fv",
2206 reinterpret_cast<GLES2FunctionPointer>(glVertexAttrib4fv),
2209 "glVertexAttribI4i",
2210 reinterpret_cast<GLES2FunctionPointer>(glVertexAttribI4i),
2213 "glVertexAttribI4iv",
2214 reinterpret_cast<GLES2FunctionPointer>(glVertexAttribI4iv),
2217 "glVertexAttribI4ui",
2218 reinterpret_cast<GLES2FunctionPointer>(glVertexAttribI4ui),
2221 "glVertexAttribI4uiv",
2222 reinterpret_cast<GLES2FunctionPointer>(glVertexAttribI4uiv),
2225 "glVertexAttribIPointer",
2226 reinterpret_cast<GLES2FunctionPointer>(glVertexAttribIPointer),
2229 "glVertexAttribPointer",
2230 reinterpret_cast<GLES2FunctionPointer>(glVertexAttribPointer),
2233 "glViewport",
2234 reinterpret_cast<GLES2FunctionPointer>(glViewport),
2237 "glWaitSync",
2238 reinterpret_cast<GLES2FunctionPointer>(glWaitSync),
2241 "glBlitFramebufferCHROMIUM",
2242 reinterpret_cast<GLES2FunctionPointer>(glBlitFramebufferCHROMIUM),
2245 "glRenderbufferStorageMultisampleCHROMIUM",
2246 reinterpret_cast<GLES2FunctionPointer>(
2247 glRenderbufferStorageMultisampleCHROMIUM),
2250 "glRenderbufferStorageMultisampleEXT",
2251 reinterpret_cast<GLES2FunctionPointer>(
2252 glRenderbufferStorageMultisampleEXT),
2255 "glFramebufferTexture2DMultisampleEXT",
2256 reinterpret_cast<GLES2FunctionPointer>(
2257 glFramebufferTexture2DMultisampleEXT),
2260 "glTexStorage2DEXT",
2261 reinterpret_cast<GLES2FunctionPointer>(glTexStorage2DEXT),
2264 "glGenQueriesEXT",
2265 reinterpret_cast<GLES2FunctionPointer>(glGenQueriesEXT),
2268 "glDeleteQueriesEXT",
2269 reinterpret_cast<GLES2FunctionPointer>(glDeleteQueriesEXT),
2272 "glIsQueryEXT",
2273 reinterpret_cast<GLES2FunctionPointer>(glIsQueryEXT),
2276 "glBeginQueryEXT",
2277 reinterpret_cast<GLES2FunctionPointer>(glBeginQueryEXT),
2280 "glBeginTransformFeedback",
2281 reinterpret_cast<GLES2FunctionPointer>(glBeginTransformFeedback),
2284 "glEndQueryEXT",
2285 reinterpret_cast<GLES2FunctionPointer>(glEndQueryEXT),
2288 "glEndTransformFeedback",
2289 reinterpret_cast<GLES2FunctionPointer>(glEndTransformFeedback),
2292 "glGetQueryivEXT",
2293 reinterpret_cast<GLES2FunctionPointer>(glGetQueryivEXT),
2296 "glGetQueryObjectuivEXT",
2297 reinterpret_cast<GLES2FunctionPointer>(glGetQueryObjectuivEXT),
2300 "glInsertEventMarkerEXT",
2301 reinterpret_cast<GLES2FunctionPointer>(glInsertEventMarkerEXT),
2304 "glPushGroupMarkerEXT",
2305 reinterpret_cast<GLES2FunctionPointer>(glPushGroupMarkerEXT),
2308 "glPopGroupMarkerEXT",
2309 reinterpret_cast<GLES2FunctionPointer>(glPopGroupMarkerEXT),
2312 "glGenVertexArraysOES",
2313 reinterpret_cast<GLES2FunctionPointer>(glGenVertexArraysOES),
2316 "glDeleteVertexArraysOES",
2317 reinterpret_cast<GLES2FunctionPointer>(glDeleteVertexArraysOES),
2320 "glIsVertexArrayOES",
2321 reinterpret_cast<GLES2FunctionPointer>(glIsVertexArrayOES),
2324 "glBindVertexArrayOES",
2325 reinterpret_cast<GLES2FunctionPointer>(glBindVertexArrayOES),
2328 "glSwapBuffers",
2329 reinterpret_cast<GLES2FunctionPointer>(glSwapBuffers),
2332 "glGetMaxValueInBufferCHROMIUM",
2333 reinterpret_cast<GLES2FunctionPointer>(glGetMaxValueInBufferCHROMIUM),
2336 "glEnableFeatureCHROMIUM",
2337 reinterpret_cast<GLES2FunctionPointer>(glEnableFeatureCHROMIUM),
2340 "glMapBufferCHROMIUM",
2341 reinterpret_cast<GLES2FunctionPointer>(glMapBufferCHROMIUM),
2344 "glUnmapBufferCHROMIUM",
2345 reinterpret_cast<GLES2FunctionPointer>(glUnmapBufferCHROMIUM),
2348 "glMapBufferSubDataCHROMIUM",
2349 reinterpret_cast<GLES2FunctionPointer>(glMapBufferSubDataCHROMIUM),
2352 "glUnmapBufferSubDataCHROMIUM",
2353 reinterpret_cast<GLES2FunctionPointer>(glUnmapBufferSubDataCHROMIUM),
2356 "glMapBufferRange",
2357 reinterpret_cast<GLES2FunctionPointer>(glMapBufferRange),
2360 "glUnmapBuffer",
2361 reinterpret_cast<GLES2FunctionPointer>(glUnmapBuffer),
2364 "glMapTexSubImage2DCHROMIUM",
2365 reinterpret_cast<GLES2FunctionPointer>(glMapTexSubImage2DCHROMIUM),
2368 "glUnmapTexSubImage2DCHROMIUM",
2369 reinterpret_cast<GLES2FunctionPointer>(glUnmapTexSubImage2DCHROMIUM),
2372 "glResizeCHROMIUM",
2373 reinterpret_cast<GLES2FunctionPointer>(glResizeCHROMIUM),
2376 "glGetRequestableExtensionsCHROMIUM",
2377 reinterpret_cast<GLES2FunctionPointer>(glGetRequestableExtensionsCHROMIUM),
2380 "glRequestExtensionCHROMIUM",
2381 reinterpret_cast<GLES2FunctionPointer>(glRequestExtensionCHROMIUM),
2384 "glRateLimitOffscreenContextCHROMIUM",
2385 reinterpret_cast<GLES2FunctionPointer>(
2386 glRateLimitOffscreenContextCHROMIUM),
2389 "glGetProgramInfoCHROMIUM",
2390 reinterpret_cast<GLES2FunctionPointer>(glGetProgramInfoCHROMIUM),
2393 "glGetUniformBlocksCHROMIUM",
2394 reinterpret_cast<GLES2FunctionPointer>(glGetUniformBlocksCHROMIUM),
2397 "glGetTransformFeedbackVaryingsCHROMIUM",
2398 reinterpret_cast<GLES2FunctionPointer>(
2399 glGetTransformFeedbackVaryingsCHROMIUM),
2402 "glGetUniformsES3CHROMIUM",
2403 reinterpret_cast<GLES2FunctionPointer>(glGetUniformsES3CHROMIUM),
2406 "glCreateStreamTextureCHROMIUM",
2407 reinterpret_cast<GLES2FunctionPointer>(glCreateStreamTextureCHROMIUM),
2410 "glCreateImageCHROMIUM",
2411 reinterpret_cast<GLES2FunctionPointer>(glCreateImageCHROMIUM),
2414 "glDestroyImageCHROMIUM",
2415 reinterpret_cast<GLES2FunctionPointer>(glDestroyImageCHROMIUM),
2418 "glCreateGpuMemoryBufferImageCHROMIUM",
2419 reinterpret_cast<GLES2FunctionPointer>(
2420 glCreateGpuMemoryBufferImageCHROMIUM),
2423 "glGetTranslatedShaderSourceANGLE",
2424 reinterpret_cast<GLES2FunctionPointer>(glGetTranslatedShaderSourceANGLE),
2427 "glPostSubBufferCHROMIUM",
2428 reinterpret_cast<GLES2FunctionPointer>(glPostSubBufferCHROMIUM),
2431 "glTexImageIOSurface2DCHROMIUM",
2432 reinterpret_cast<GLES2FunctionPointer>(glTexImageIOSurface2DCHROMIUM),
2435 "glCopyTextureCHROMIUM",
2436 reinterpret_cast<GLES2FunctionPointer>(glCopyTextureCHROMIUM),
2439 "glCopySubTextureCHROMIUM",
2440 reinterpret_cast<GLES2FunctionPointer>(glCopySubTextureCHROMIUM),
2443 "glDrawArraysInstancedANGLE",
2444 reinterpret_cast<GLES2FunctionPointer>(glDrawArraysInstancedANGLE),
2447 "glDrawElementsInstancedANGLE",
2448 reinterpret_cast<GLES2FunctionPointer>(glDrawElementsInstancedANGLE),
2451 "glVertexAttribDivisorANGLE",
2452 reinterpret_cast<GLES2FunctionPointer>(glVertexAttribDivisorANGLE),
2455 "glGenMailboxCHROMIUM",
2456 reinterpret_cast<GLES2FunctionPointer>(glGenMailboxCHROMIUM),
2459 "glProduceTextureCHROMIUM",
2460 reinterpret_cast<GLES2FunctionPointer>(glProduceTextureCHROMIUM),
2463 "glProduceTextureDirectCHROMIUM",
2464 reinterpret_cast<GLES2FunctionPointer>(glProduceTextureDirectCHROMIUM),
2467 "glConsumeTextureCHROMIUM",
2468 reinterpret_cast<GLES2FunctionPointer>(glConsumeTextureCHROMIUM),
2471 "glCreateAndConsumeTextureCHROMIUM",
2472 reinterpret_cast<GLES2FunctionPointer>(glCreateAndConsumeTextureCHROMIUM),
2475 "glBindUniformLocationCHROMIUM",
2476 reinterpret_cast<GLES2FunctionPointer>(glBindUniformLocationCHROMIUM),
2479 "glGenValuebuffersCHROMIUM",
2480 reinterpret_cast<GLES2FunctionPointer>(glGenValuebuffersCHROMIUM),
2483 "glDeleteValuebuffersCHROMIUM",
2484 reinterpret_cast<GLES2FunctionPointer>(glDeleteValuebuffersCHROMIUM),
2487 "glIsValuebufferCHROMIUM",
2488 reinterpret_cast<GLES2FunctionPointer>(glIsValuebufferCHROMIUM),
2491 "glBindValuebufferCHROMIUM",
2492 reinterpret_cast<GLES2FunctionPointer>(glBindValuebufferCHROMIUM),
2495 "glSubscribeValueCHROMIUM",
2496 reinterpret_cast<GLES2FunctionPointer>(glSubscribeValueCHROMIUM),
2499 "glPopulateSubscribedValuesCHROMIUM",
2500 reinterpret_cast<GLES2FunctionPointer>(glPopulateSubscribedValuesCHROMIUM),
2503 "glUniformValuebufferCHROMIUM",
2504 reinterpret_cast<GLES2FunctionPointer>(glUniformValuebufferCHROMIUM),
2507 "glBindTexImage2DCHROMIUM",
2508 reinterpret_cast<GLES2FunctionPointer>(glBindTexImage2DCHROMIUM),
2511 "glReleaseTexImage2DCHROMIUM",
2512 reinterpret_cast<GLES2FunctionPointer>(glReleaseTexImage2DCHROMIUM),
2515 "glTraceBeginCHROMIUM",
2516 reinterpret_cast<GLES2FunctionPointer>(glTraceBeginCHROMIUM),
2519 "glTraceEndCHROMIUM",
2520 reinterpret_cast<GLES2FunctionPointer>(glTraceEndCHROMIUM),
2523 "glAsyncTexSubImage2DCHROMIUM",
2524 reinterpret_cast<GLES2FunctionPointer>(glAsyncTexSubImage2DCHROMIUM),
2527 "glAsyncTexImage2DCHROMIUM",
2528 reinterpret_cast<GLES2FunctionPointer>(glAsyncTexImage2DCHROMIUM),
2531 "glWaitAsyncTexImage2DCHROMIUM",
2532 reinterpret_cast<GLES2FunctionPointer>(glWaitAsyncTexImage2DCHROMIUM),
2535 "glWaitAllAsyncTexImage2DCHROMIUM",
2536 reinterpret_cast<GLES2FunctionPointer>(glWaitAllAsyncTexImage2DCHROMIUM),
2539 "glDiscardFramebufferEXT",
2540 reinterpret_cast<GLES2FunctionPointer>(glDiscardFramebufferEXT),
2543 "glLoseContextCHROMIUM",
2544 reinterpret_cast<GLES2FunctionPointer>(glLoseContextCHROMIUM),
2547 "glInsertSyncPointCHROMIUM",
2548 reinterpret_cast<GLES2FunctionPointer>(glInsertSyncPointCHROMIUM),
2551 "glWaitSyncPointCHROMIUM",
2552 reinterpret_cast<GLES2FunctionPointer>(glWaitSyncPointCHROMIUM),
2555 "glDrawBuffersEXT",
2556 reinterpret_cast<GLES2FunctionPointer>(glDrawBuffersEXT),
2559 "glDiscardBackbufferCHROMIUM",
2560 reinterpret_cast<GLES2FunctionPointer>(glDiscardBackbufferCHROMIUM),
2563 "glScheduleOverlayPlaneCHROMIUM",
2564 reinterpret_cast<GLES2FunctionPointer>(glScheduleOverlayPlaneCHROMIUM),
2567 "glSwapInterval",
2568 reinterpret_cast<GLES2FunctionPointer>(glSwapInterval),
2571 "glMatrixLoadfCHROMIUM",
2572 reinterpret_cast<GLES2FunctionPointer>(glMatrixLoadfCHROMIUM),
2575 "glMatrixLoadIdentityCHROMIUM",
2576 reinterpret_cast<GLES2FunctionPointer>(glMatrixLoadIdentityCHROMIUM),
2579 "glBlendBarrierKHR",
2580 reinterpret_cast<GLES2FunctionPointer>(glBlendBarrierKHR),
2583 NULL,
2584 NULL,
2588 } // namespace gles2
2589 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_