Histograms.xml python script housekeeping:
[chromium-blink-merge.git] / mojo / gpu / mojo_gles2_impl_autogen.h
blob8b242d76fcbf58039e3880d946b3f72480e88cac
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 // This file is included by gles2_interface.h to declare the
12 // GL api functions.
13 #ifndef MOJO_GPU_MOJO_GLES2_IMPL_AUTOGEN_H_
14 #define MOJO_GPU_MOJO_GLES2_IMPL_AUTOGEN_H_
16 #include "gpu/command_buffer/client/gles2_interface.h"
17 #include "third_party/mojo/src/mojo/public/c/gles2/gles2.h"
19 namespace mojo {
21 class MojoGLES2Impl : public gpu::gles2::GLES2Interface {
22 public:
23 explicit MojoGLES2Impl(MojoGLES2Context context) { context_ = context; }
24 ~MojoGLES2Impl() override {}
25 void ActiveTexture(GLenum texture) override;
26 void AttachShader(GLuint program, GLuint shader) override;
27 void BindAttribLocation(GLuint program,
28 GLuint index,
29 const char* name) override;
30 void BindBuffer(GLenum target, GLuint buffer) override;
31 void BindBufferBase(GLenum target, GLuint index, GLuint buffer) override;
32 void BindBufferRange(GLenum target,
33 GLuint index,
34 GLuint buffer,
35 GLintptr offset,
36 GLsizeiptr size) override;
37 void BindFramebuffer(GLenum target, GLuint framebuffer) override;
38 void BindRenderbuffer(GLenum target, GLuint renderbuffer) override;
39 void BindSampler(GLuint unit, GLuint sampler) override;
40 void BindTexture(GLenum target, GLuint texture) override;
41 void BindTransformFeedback(GLenum target, GLuint transformfeedback) override;
42 void BlendColor(GLclampf red,
43 GLclampf green,
44 GLclampf blue,
45 GLclampf alpha) override;
46 void BlendEquation(GLenum mode) override;
47 void BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) override;
48 void BlendFunc(GLenum sfactor, GLenum dfactor) override;
49 void BlendFuncSeparate(GLenum srcRGB,
50 GLenum dstRGB,
51 GLenum srcAlpha,
52 GLenum dstAlpha) override;
53 void BufferData(GLenum target,
54 GLsizeiptr size,
55 const void* data,
56 GLenum usage) override;
57 void BufferSubData(GLenum target,
58 GLintptr offset,
59 GLsizeiptr size,
60 const void* data) override;
61 GLenum CheckFramebufferStatus(GLenum target) override;
62 void Clear(GLbitfield mask) override;
63 void ClearBufferfi(GLenum buffer,
64 GLint drawbuffers,
65 GLfloat depth,
66 GLint stencil) override;
67 void ClearBufferfv(GLenum buffer,
68 GLint drawbuffers,
69 const GLfloat* value) override;
70 void ClearBufferiv(GLenum buffer,
71 GLint drawbuffers,
72 const GLint* value) override;
73 void ClearBufferuiv(GLenum buffer,
74 GLint drawbuffers,
75 const GLuint* value) override;
76 void ClearColor(GLclampf red,
77 GLclampf green,
78 GLclampf blue,
79 GLclampf alpha) override;
80 void ClearDepthf(GLclampf depth) override;
81 void ClearStencil(GLint s) override;
82 GLenum ClientWaitSync(GLsync sync,
83 GLbitfield flags,
84 GLuint64 timeout) override;
85 void ColorMask(GLboolean red,
86 GLboolean green,
87 GLboolean blue,
88 GLboolean alpha) override;
89 void CompileShader(GLuint shader) override;
90 void CompressedTexImage2D(GLenum target,
91 GLint level,
92 GLenum internalformat,
93 GLsizei width,
94 GLsizei height,
95 GLint border,
96 GLsizei imageSize,
97 const void* data) override;
98 void CompressedTexSubImage2D(GLenum target,
99 GLint level,
100 GLint xoffset,
101 GLint yoffset,
102 GLsizei width,
103 GLsizei height,
104 GLenum format,
105 GLsizei imageSize,
106 const void* data) override;
107 void CompressedTexImage3D(GLenum target,
108 GLint level,
109 GLenum internalformat,
110 GLsizei width,
111 GLsizei height,
112 GLsizei depth,
113 GLint border,
114 GLsizei imageSize,
115 const void* data) override;
116 void CompressedTexSubImage3D(GLenum target,
117 GLint level,
118 GLint xoffset,
119 GLint yoffset,
120 GLint zoffset,
121 GLsizei width,
122 GLsizei height,
123 GLsizei depth,
124 GLenum format,
125 GLsizei imageSize,
126 const void* data) override;
127 void CopyBufferSubData(GLenum readtarget,
128 GLenum writetarget,
129 GLintptr readoffset,
130 GLintptr writeoffset,
131 GLsizeiptr size) override;
132 void CopyTexImage2D(GLenum target,
133 GLint level,
134 GLenum internalformat,
135 GLint x,
136 GLint y,
137 GLsizei width,
138 GLsizei height,
139 GLint border) override;
140 void CopyTexSubImage2D(GLenum target,
141 GLint level,
142 GLint xoffset,
143 GLint yoffset,
144 GLint x,
145 GLint y,
146 GLsizei width,
147 GLsizei height) override;
148 void CopyTexSubImage3D(GLenum target,
149 GLint level,
150 GLint xoffset,
151 GLint yoffset,
152 GLint zoffset,
153 GLint x,
154 GLint y,
155 GLsizei width,
156 GLsizei height) override;
157 GLuint CreateProgram() override;
158 GLuint CreateShader(GLenum type) override;
159 void CullFace(GLenum mode) override;
160 void DeleteBuffers(GLsizei n, const GLuint* buffers) override;
161 void DeleteFramebuffers(GLsizei n, const GLuint* framebuffers) override;
162 void DeleteProgram(GLuint program) override;
163 void DeleteRenderbuffers(GLsizei n, const GLuint* renderbuffers) override;
164 void DeleteSamplers(GLsizei n, const GLuint* samplers) override;
165 void DeleteSync(GLsync sync) override;
166 void DeleteShader(GLuint shader) override;
167 void DeleteTextures(GLsizei n, const GLuint* textures) override;
168 void DeleteTransformFeedbacks(GLsizei n, const GLuint* ids) override;
169 void DepthFunc(GLenum func) override;
170 void DepthMask(GLboolean flag) override;
171 void DepthRangef(GLclampf zNear, GLclampf zFar) override;
172 void DetachShader(GLuint program, GLuint shader) override;
173 void Disable(GLenum cap) override;
174 void DisableVertexAttribArray(GLuint index) override;
175 void DrawArrays(GLenum mode, GLint first, GLsizei count) override;
176 void DrawElements(GLenum mode,
177 GLsizei count,
178 GLenum type,
179 const void* indices) override;
180 void DrawRangeElements(GLenum mode,
181 GLuint start,
182 GLuint end,
183 GLsizei count,
184 GLenum type,
185 const void* indices) override;
186 void Enable(GLenum cap) override;
187 void EnableVertexAttribArray(GLuint index) override;
188 GLsync FenceSync(GLenum condition, GLbitfield flags) override;
189 void Finish() override;
190 void Flush() override;
191 void FramebufferRenderbuffer(GLenum target,
192 GLenum attachment,
193 GLenum renderbuffertarget,
194 GLuint renderbuffer) override;
195 void FramebufferTexture2D(GLenum target,
196 GLenum attachment,
197 GLenum textarget,
198 GLuint texture,
199 GLint level) override;
200 void FramebufferTextureLayer(GLenum target,
201 GLenum attachment,
202 GLuint texture,
203 GLint level,
204 GLint layer) override;
205 void FrontFace(GLenum mode) override;
206 void GenBuffers(GLsizei n, GLuint* buffers) override;
207 void GenerateMipmap(GLenum target) override;
208 void GenFramebuffers(GLsizei n, GLuint* framebuffers) override;
209 void GenRenderbuffers(GLsizei n, GLuint* renderbuffers) override;
210 void GenSamplers(GLsizei n, GLuint* samplers) override;
211 void GenTextures(GLsizei n, GLuint* textures) override;
212 void GenTransformFeedbacks(GLsizei n, GLuint* ids) override;
213 void GetActiveAttrib(GLuint program,
214 GLuint index,
215 GLsizei bufsize,
216 GLsizei* length,
217 GLint* size,
218 GLenum* type,
219 char* name) override;
220 void GetActiveUniform(GLuint program,
221 GLuint index,
222 GLsizei bufsize,
223 GLsizei* length,
224 GLint* size,
225 GLenum* type,
226 char* name) override;
227 void GetActiveUniformBlockiv(GLuint program,
228 GLuint index,
229 GLenum pname,
230 GLint* params) override;
231 void GetActiveUniformBlockName(GLuint program,
232 GLuint index,
233 GLsizei bufsize,
234 GLsizei* length,
235 char* name) override;
236 void GetActiveUniformsiv(GLuint program,
237 GLsizei count,
238 const GLuint* indices,
239 GLenum pname,
240 GLint* params) override;
241 void GetAttachedShaders(GLuint program,
242 GLsizei maxcount,
243 GLsizei* count,
244 GLuint* shaders) override;
245 GLint GetAttribLocation(GLuint program, const char* name) override;
246 void GetBooleanv(GLenum pname, GLboolean* params) override;
247 void GetBufferParameteriv(GLenum target,
248 GLenum pname,
249 GLint* params) override;
250 GLenum GetError() override;
251 void GetFloatv(GLenum pname, GLfloat* params) override;
252 GLint GetFragDataLocation(GLuint program, const char* name) override;
253 void GetFramebufferAttachmentParameteriv(GLenum target,
254 GLenum attachment,
255 GLenum pname,
256 GLint* params) override;
257 void GetInteger64v(GLenum pname, GLint64* params) override;
258 void GetIntegeri_v(GLenum pname, GLuint index, GLint* data) override;
259 void GetInteger64i_v(GLenum pname, GLuint index, GLint64* data) override;
260 void GetIntegerv(GLenum pname, GLint* params) override;
261 void GetInternalformativ(GLenum target,
262 GLenum format,
263 GLenum pname,
264 GLsizei bufSize,
265 GLint* params) override;
266 void GetProgramiv(GLuint program, GLenum pname, GLint* params) override;
267 void GetProgramInfoLog(GLuint program,
268 GLsizei bufsize,
269 GLsizei* length,
270 char* infolog) override;
271 void GetRenderbufferParameteriv(GLenum target,
272 GLenum pname,
273 GLint* params) override;
274 void GetSamplerParameterfv(GLuint sampler,
275 GLenum pname,
276 GLfloat* params) override;
277 void GetSamplerParameteriv(GLuint sampler,
278 GLenum pname,
279 GLint* params) override;
280 void GetShaderiv(GLuint shader, GLenum pname, GLint* params) override;
281 void GetShaderInfoLog(GLuint shader,
282 GLsizei bufsize,
283 GLsizei* length,
284 char* infolog) override;
285 void GetShaderPrecisionFormat(GLenum shadertype,
286 GLenum precisiontype,
287 GLint* range,
288 GLint* precision) override;
289 void GetShaderSource(GLuint shader,
290 GLsizei bufsize,
291 GLsizei* length,
292 char* source) override;
293 const GLubyte* GetString(GLenum name) override;
294 void GetSynciv(GLsync sync,
295 GLenum pname,
296 GLsizei bufsize,
297 GLsizei* length,
298 GLint* values) override;
299 void GetTexParameterfv(GLenum target, GLenum pname, GLfloat* params) override;
300 void GetTexParameteriv(GLenum target, GLenum pname, GLint* params) override;
301 void GetTransformFeedbackVarying(GLuint program,
302 GLuint index,
303 GLsizei bufsize,
304 GLsizei* length,
305 GLsizei* size,
306 GLenum* type,
307 char* name) override;
308 GLuint GetUniformBlockIndex(GLuint program, const char* name) override;
309 void GetUniformfv(GLuint program, GLint location, GLfloat* params) override;
310 void GetUniformiv(GLuint program, GLint location, GLint* params) override;
311 void GetUniformuiv(GLuint program, GLint location, GLuint* params) override;
312 void GetUniformIndices(GLuint program,
313 GLsizei count,
314 const char* const* names,
315 GLuint* indices) override;
316 GLint GetUniformLocation(GLuint program, const char* name) override;
317 void GetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params) override;
318 void GetVertexAttribiv(GLuint index, GLenum pname, GLint* params) override;
319 void GetVertexAttribIiv(GLuint index, GLenum pname, GLint* params) override;
320 void GetVertexAttribIuiv(GLuint index, GLenum pname, GLuint* params) override;
321 void GetVertexAttribPointerv(GLuint index,
322 GLenum pname,
323 void** pointer) override;
324 void Hint(GLenum target, GLenum mode) override;
325 void InvalidateFramebuffer(GLenum target,
326 GLsizei count,
327 const GLenum* attachments) override;
328 void InvalidateSubFramebuffer(GLenum target,
329 GLsizei count,
330 const GLenum* attachments,
331 GLint x,
332 GLint y,
333 GLsizei width,
334 GLsizei height) override;
335 GLboolean IsBuffer(GLuint buffer) override;
336 GLboolean IsEnabled(GLenum cap) override;
337 GLboolean IsFramebuffer(GLuint framebuffer) override;
338 GLboolean IsProgram(GLuint program) override;
339 GLboolean IsRenderbuffer(GLuint renderbuffer) override;
340 GLboolean IsSampler(GLuint sampler) override;
341 GLboolean IsShader(GLuint shader) override;
342 GLboolean IsSync(GLsync sync) override;
343 GLboolean IsTexture(GLuint texture) override;
344 GLboolean IsTransformFeedback(GLuint transformfeedback) override;
345 void LineWidth(GLfloat width) override;
346 void LinkProgram(GLuint program) override;
347 void PauseTransformFeedback() override;
348 void PixelStorei(GLenum pname, GLint param) override;
349 void PolygonOffset(GLfloat factor, GLfloat units) override;
350 void ReadBuffer(GLenum src) override;
351 void ReadPixels(GLint x,
352 GLint y,
353 GLsizei width,
354 GLsizei height,
355 GLenum format,
356 GLenum type,
357 void* pixels) override;
358 void ReleaseShaderCompiler() override;
359 void RenderbufferStorage(GLenum target,
360 GLenum internalformat,
361 GLsizei width,
362 GLsizei height) override;
363 void ResumeTransformFeedback() override;
364 void SampleCoverage(GLclampf value, GLboolean invert) override;
365 void SamplerParameterf(GLuint sampler, GLenum pname, GLfloat param) override;
366 void SamplerParameterfv(GLuint sampler,
367 GLenum pname,
368 const GLfloat* params) override;
369 void SamplerParameteri(GLuint sampler, GLenum pname, GLint param) override;
370 void SamplerParameteriv(GLuint sampler,
371 GLenum pname,
372 const GLint* params) override;
373 void Scissor(GLint x, GLint y, GLsizei width, GLsizei height) override;
374 void ShaderBinary(GLsizei n,
375 const GLuint* shaders,
376 GLenum binaryformat,
377 const void* binary,
378 GLsizei length) override;
379 void ShaderSource(GLuint shader,
380 GLsizei count,
381 const GLchar* const* str,
382 const GLint* length) override;
383 void ShallowFinishCHROMIUM() override;
384 void ShallowFlushCHROMIUM() override;
385 void OrderingBarrierCHROMIUM() override;
386 void StencilFunc(GLenum func, GLint ref, GLuint mask) override;
387 void StencilFuncSeparate(GLenum face,
388 GLenum func,
389 GLint ref,
390 GLuint mask) override;
391 void StencilMask(GLuint mask) override;
392 void StencilMaskSeparate(GLenum face, GLuint mask) override;
393 void StencilOp(GLenum fail, GLenum zfail, GLenum zpass) override;
394 void StencilOpSeparate(GLenum face,
395 GLenum fail,
396 GLenum zfail,
397 GLenum zpass) override;
398 void TexImage2D(GLenum target,
399 GLint level,
400 GLint internalformat,
401 GLsizei width,
402 GLsizei height,
403 GLint border,
404 GLenum format,
405 GLenum type,
406 const void* pixels) override;
407 void TexImage3D(GLenum target,
408 GLint level,
409 GLint internalformat,
410 GLsizei width,
411 GLsizei height,
412 GLsizei depth,
413 GLint border,
414 GLenum format,
415 GLenum type,
416 const void* pixels) override;
417 void TexParameterf(GLenum target, GLenum pname, GLfloat param) override;
418 void TexParameterfv(GLenum target,
419 GLenum pname,
420 const GLfloat* params) override;
421 void TexParameteri(GLenum target, GLenum pname, GLint param) override;
422 void TexParameteriv(GLenum target,
423 GLenum pname,
424 const GLint* params) override;
425 void TexStorage3D(GLenum target,
426 GLsizei levels,
427 GLenum internalFormat,
428 GLsizei width,
429 GLsizei height,
430 GLsizei depth) override;
431 void TexSubImage2D(GLenum target,
432 GLint level,
433 GLint xoffset,
434 GLint yoffset,
435 GLsizei width,
436 GLsizei height,
437 GLenum format,
438 GLenum type,
439 const void* pixels) override;
440 void TexSubImage3D(GLenum target,
441 GLint level,
442 GLint xoffset,
443 GLint yoffset,
444 GLint zoffset,
445 GLsizei width,
446 GLsizei height,
447 GLsizei depth,
448 GLenum format,
449 GLenum type,
450 const void* pixels) override;
451 void TransformFeedbackVaryings(GLuint program,
452 GLsizei count,
453 const char* const* varyings,
454 GLenum buffermode) override;
455 void Uniform1f(GLint location, GLfloat x) override;
456 void Uniform1fv(GLint location, GLsizei count, const GLfloat* v) override;
457 void Uniform1i(GLint location, GLint x) override;
458 void Uniform1iv(GLint location, GLsizei count, const GLint* v) override;
459 void Uniform1ui(GLint location, GLuint x) override;
460 void Uniform1uiv(GLint location, GLsizei count, const GLuint* v) override;
461 void Uniform2f(GLint location, GLfloat x, GLfloat y) override;
462 void Uniform2fv(GLint location, GLsizei count, const GLfloat* v) override;
463 void Uniform2i(GLint location, GLint x, GLint y) override;
464 void Uniform2iv(GLint location, GLsizei count, const GLint* v) override;
465 void Uniform2ui(GLint location, GLuint x, GLuint y) override;
466 void Uniform2uiv(GLint location, GLsizei count, const GLuint* v) override;
467 void Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) override;
468 void Uniform3fv(GLint location, GLsizei count, const GLfloat* v) override;
469 void Uniform3i(GLint location, GLint x, GLint y, GLint z) override;
470 void Uniform3iv(GLint location, GLsizei count, const GLint* v) override;
471 void Uniform3ui(GLint location, GLuint x, GLuint y, GLuint z) override;
472 void Uniform3uiv(GLint location, GLsizei count, const GLuint* v) override;
473 void Uniform4f(GLint location,
474 GLfloat x,
475 GLfloat y,
476 GLfloat z,
477 GLfloat w) override;
478 void Uniform4fv(GLint location, GLsizei count, const GLfloat* v) override;
479 void Uniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) override;
480 void Uniform4iv(GLint location, GLsizei count, const GLint* v) override;
481 void Uniform4ui(GLint location,
482 GLuint x,
483 GLuint y,
484 GLuint z,
485 GLuint w) override;
486 void Uniform4uiv(GLint location, GLsizei count, const GLuint* v) override;
487 void UniformBlockBinding(GLuint program,
488 GLuint index,
489 GLuint binding) override;
490 void UniformMatrix2fv(GLint location,
491 GLsizei count,
492 GLboolean transpose,
493 const GLfloat* value) override;
494 void UniformMatrix2x3fv(GLint location,
495 GLsizei count,
496 GLboolean transpose,
497 const GLfloat* value) override;
498 void UniformMatrix2x4fv(GLint location,
499 GLsizei count,
500 GLboolean transpose,
501 const GLfloat* value) override;
502 void UniformMatrix3fv(GLint location,
503 GLsizei count,
504 GLboolean transpose,
505 const GLfloat* value) override;
506 void UniformMatrix3x2fv(GLint location,
507 GLsizei count,
508 GLboolean transpose,
509 const GLfloat* value) override;
510 void UniformMatrix3x4fv(GLint location,
511 GLsizei count,
512 GLboolean transpose,
513 const GLfloat* value) override;
514 void UniformMatrix4fv(GLint location,
515 GLsizei count,
516 GLboolean transpose,
517 const GLfloat* value) override;
518 void UniformMatrix4x2fv(GLint location,
519 GLsizei count,
520 GLboolean transpose,
521 const GLfloat* value) override;
522 void UniformMatrix4x3fv(GLint location,
523 GLsizei count,
524 GLboolean transpose,
525 const GLfloat* value) override;
526 void UseProgram(GLuint program) override;
527 void ValidateProgram(GLuint program) override;
528 void VertexAttrib1f(GLuint indx, GLfloat x) override;
529 void VertexAttrib1fv(GLuint indx, const GLfloat* values) override;
530 void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) override;
531 void VertexAttrib2fv(GLuint indx, const GLfloat* values) override;
532 void VertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) override;
533 void VertexAttrib3fv(GLuint indx, const GLfloat* values) override;
534 void VertexAttrib4f(GLuint indx,
535 GLfloat x,
536 GLfloat y,
537 GLfloat z,
538 GLfloat w) override;
539 void VertexAttrib4fv(GLuint indx, const GLfloat* values) override;
540 void VertexAttribI4i(GLuint indx,
541 GLint x,
542 GLint y,
543 GLint z,
544 GLint w) override;
545 void VertexAttribI4iv(GLuint indx, const GLint* values) override;
546 void VertexAttribI4ui(GLuint indx,
547 GLuint x,
548 GLuint y,
549 GLuint z,
550 GLuint w) override;
551 void VertexAttribI4uiv(GLuint indx, const GLuint* values) override;
552 void VertexAttribIPointer(GLuint indx,
553 GLint size,
554 GLenum type,
555 GLsizei stride,
556 const void* ptr) override;
557 void VertexAttribPointer(GLuint indx,
558 GLint size,
559 GLenum type,
560 GLboolean normalized,
561 GLsizei stride,
562 const void* ptr) override;
563 void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) override;
564 void WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) override;
565 void BlitFramebufferCHROMIUM(GLint srcX0,
566 GLint srcY0,
567 GLint srcX1,
568 GLint srcY1,
569 GLint dstX0,
570 GLint dstY0,
571 GLint dstX1,
572 GLint dstY1,
573 GLbitfield mask,
574 GLenum filter) override;
575 void RenderbufferStorageMultisampleCHROMIUM(GLenum target,
576 GLsizei samples,
577 GLenum internalformat,
578 GLsizei width,
579 GLsizei height) override;
580 void RenderbufferStorageMultisampleEXT(GLenum target,
581 GLsizei samples,
582 GLenum internalformat,
583 GLsizei width,
584 GLsizei height) override;
585 void FramebufferTexture2DMultisampleEXT(GLenum target,
586 GLenum attachment,
587 GLenum textarget,
588 GLuint texture,
589 GLint level,
590 GLsizei samples) override;
591 void TexStorage2DEXT(GLenum target,
592 GLsizei levels,
593 GLenum internalFormat,
594 GLsizei width,
595 GLsizei height) override;
596 void GenQueriesEXT(GLsizei n, GLuint* queries) override;
597 void DeleteQueriesEXT(GLsizei n, const GLuint* queries) override;
598 GLboolean IsQueryEXT(GLuint id) override;
599 void BeginQueryEXT(GLenum target, GLuint id) override;
600 void BeginTransformFeedback(GLenum primitivemode) override;
601 void EndQueryEXT(GLenum target) override;
602 void EndTransformFeedback() override;
603 void GetQueryivEXT(GLenum target, GLenum pname, GLint* params) override;
604 void GetQueryObjectuivEXT(GLuint id, GLenum pname, GLuint* params) override;
605 void InsertEventMarkerEXT(GLsizei length, const GLchar* marker) override;
606 void PushGroupMarkerEXT(GLsizei length, const GLchar* marker) override;
607 void PopGroupMarkerEXT() override;
608 void GenVertexArraysOES(GLsizei n, GLuint* arrays) override;
609 void DeleteVertexArraysOES(GLsizei n, const GLuint* arrays) override;
610 GLboolean IsVertexArrayOES(GLuint array) override;
611 void BindVertexArrayOES(GLuint array) override;
612 void SwapBuffers() override;
613 GLuint GetMaxValueInBufferCHROMIUM(GLuint buffer_id,
614 GLsizei count,
615 GLenum type,
616 GLuint offset) override;
617 GLboolean EnableFeatureCHROMIUM(const char* feature) override;
618 void* MapBufferCHROMIUM(GLuint target, GLenum access) override;
619 GLboolean UnmapBufferCHROMIUM(GLuint target) override;
620 void* MapBufferSubDataCHROMIUM(GLuint target,
621 GLintptr offset,
622 GLsizeiptr size,
623 GLenum access) override;
624 void UnmapBufferSubDataCHROMIUM(const void* mem) override;
625 void* MapBufferRange(GLenum target,
626 GLintptr offset,
627 GLsizeiptr size,
628 GLbitfield access) override;
629 GLboolean UnmapBuffer(GLenum target) override;
630 void* MapTexSubImage2DCHROMIUM(GLenum target,
631 GLint level,
632 GLint xoffset,
633 GLint yoffset,
634 GLsizei width,
635 GLsizei height,
636 GLenum format,
637 GLenum type,
638 GLenum access) override;
639 void UnmapTexSubImage2DCHROMIUM(const void* mem) override;
640 void ResizeCHROMIUM(GLuint width,
641 GLuint height,
642 GLfloat scale_factor) override;
643 const GLchar* GetRequestableExtensionsCHROMIUM() override;
644 void RequestExtensionCHROMIUM(const char* extension) override;
645 void RateLimitOffscreenContextCHROMIUM() override;
646 void GetProgramInfoCHROMIUM(GLuint program,
647 GLsizei bufsize,
648 GLsizei* size,
649 void* info) override;
650 void GetUniformBlocksCHROMIUM(GLuint program,
651 GLsizei bufsize,
652 GLsizei* size,
653 void* info) override;
654 void GetTransformFeedbackVaryingsCHROMIUM(GLuint program,
655 GLsizei bufsize,
656 GLsizei* size,
657 void* info) override;
658 void GetUniformsES3CHROMIUM(GLuint program,
659 GLsizei bufsize,
660 GLsizei* size,
661 void* info) override;
662 GLuint CreateStreamTextureCHROMIUM(GLuint texture) override;
663 GLuint CreateImageCHROMIUM(ClientBuffer buffer,
664 GLsizei width,
665 GLsizei height,
666 GLenum internalformat) override;
667 void DestroyImageCHROMIUM(GLuint image_id) override;
668 GLuint CreateGpuMemoryBufferImageCHROMIUM(GLsizei width,
669 GLsizei height,
670 GLenum internalformat,
671 GLenum usage) override;
672 void GetTranslatedShaderSourceANGLE(GLuint shader,
673 GLsizei bufsize,
674 GLsizei* length,
675 char* source) override;
676 void PostSubBufferCHROMIUM(GLint x,
677 GLint y,
678 GLint width,
679 GLint height) override;
680 void TexImageIOSurface2DCHROMIUM(GLenum target,
681 GLsizei width,
682 GLsizei height,
683 GLuint ioSurfaceId,
684 GLuint plane) override;
685 void CopyTextureCHROMIUM(GLenum target,
686 GLenum source_id,
687 GLenum dest_id,
688 GLint internalformat,
689 GLenum dest_type) override;
690 void CopySubTextureCHROMIUM(GLenum target,
691 GLenum source_id,
692 GLenum dest_id,
693 GLint xoffset,
694 GLint yoffset,
695 GLint x,
696 GLint y,
697 GLsizei width,
698 GLsizei height) override;
699 void DrawArraysInstancedANGLE(GLenum mode,
700 GLint first,
701 GLsizei count,
702 GLsizei primcount) override;
703 void DrawElementsInstancedANGLE(GLenum mode,
704 GLsizei count,
705 GLenum type,
706 const void* indices,
707 GLsizei primcount) override;
708 void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) override;
709 void GenMailboxCHROMIUM(GLbyte* mailbox) override;
710 void ProduceTextureCHROMIUM(GLenum target, const GLbyte* mailbox) override;
711 void ProduceTextureDirectCHROMIUM(GLuint texture,
712 GLenum target,
713 const GLbyte* mailbox) override;
714 void ConsumeTextureCHROMIUM(GLenum target, const GLbyte* mailbox) override;
715 GLuint CreateAndConsumeTextureCHROMIUM(GLenum target,
716 const GLbyte* mailbox) override;
717 void BindUniformLocationCHROMIUM(GLuint program,
718 GLint location,
719 const char* name) override;
720 void GenValuebuffersCHROMIUM(GLsizei n, GLuint* buffers) override;
721 void DeleteValuebuffersCHROMIUM(GLsizei n,
722 const GLuint* valuebuffers) override;
723 GLboolean IsValuebufferCHROMIUM(GLuint valuebuffer) override;
724 void BindValuebufferCHROMIUM(GLenum target, GLuint valuebuffer) override;
725 void SubscribeValueCHROMIUM(GLenum target, GLenum subscription) override;
726 void PopulateSubscribedValuesCHROMIUM(GLenum target) override;
727 void UniformValuebufferCHROMIUM(GLint location,
728 GLenum target,
729 GLenum subscription) override;
730 void BindTexImage2DCHROMIUM(GLenum target, GLint imageId) override;
731 void ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) override;
732 void TraceBeginCHROMIUM(const char* category_name,
733 const char* trace_name) override;
734 void TraceEndCHROMIUM() override;
735 void AsyncTexSubImage2DCHROMIUM(GLenum target,
736 GLint level,
737 GLint xoffset,
738 GLint yoffset,
739 GLsizei width,
740 GLsizei height,
741 GLenum format,
742 GLenum type,
743 const void* data) override;
744 void AsyncTexImage2DCHROMIUM(GLenum target,
745 GLint level,
746 GLenum internalformat,
747 GLsizei width,
748 GLsizei height,
749 GLint border,
750 GLenum format,
751 GLenum type,
752 const void* pixels) override;
753 void WaitAsyncTexImage2DCHROMIUM(GLenum target) override;
754 void WaitAllAsyncTexImage2DCHROMIUM() override;
755 void DiscardFramebufferEXT(GLenum target,
756 GLsizei count,
757 const GLenum* attachments) override;
758 void LoseContextCHROMIUM(GLenum current, GLenum other) override;
759 GLuint InsertSyncPointCHROMIUM() override;
760 void WaitSyncPointCHROMIUM(GLuint sync_point) override;
761 void DrawBuffersEXT(GLsizei count, const GLenum* bufs) override;
762 void DiscardBackbufferCHROMIUM() override;
763 void ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order,
764 GLenum plane_transform,
765 GLuint overlay_texture_id,
766 GLint bounds_x,
767 GLint bounds_y,
768 GLint bounds_width,
769 GLint bounds_height,
770 GLfloat uv_x,
771 GLfloat uv_y,
772 GLfloat uv_width,
773 GLfloat uv_height) override;
774 void SwapInterval(GLint interval) override;
775 void MatrixLoadfCHROMIUM(GLenum matrixMode, const GLfloat* m) override;
776 void MatrixLoadIdentityCHROMIUM(GLenum matrixMode) override;
777 void BlendBarrierKHR() override;
779 private:
780 MojoGLES2Context context_;
783 } // namespace mojo
784 #endif // MOJO_GPU_MOJO_GLES2_IMPL_AUTOGEN_H_