Add ICU message format support
[chromium-blink-merge.git] / mojo / gpu / mojo_gles2_impl_autogen.h
blob13690f7d302f37deb14b948edc5687cdc7efd5ae
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 GetBufferParameteri64v(GLenum target,
248 GLenum pname,
249 GLint64* params) override;
250 void GetBufferParameteriv(GLenum target,
251 GLenum pname,
252 GLint* params) override;
253 GLenum GetError() override;
254 void GetFloatv(GLenum pname, GLfloat* params) override;
255 GLint GetFragDataLocation(GLuint program, const char* name) override;
256 void GetFramebufferAttachmentParameteriv(GLenum target,
257 GLenum attachment,
258 GLenum pname,
259 GLint* params) override;
260 void GetInteger64v(GLenum pname, GLint64* params) override;
261 void GetIntegeri_v(GLenum pname, GLuint index, GLint* data) override;
262 void GetInteger64i_v(GLenum pname, GLuint index, GLint64* data) override;
263 void GetIntegerv(GLenum pname, GLint* params) override;
264 void GetInternalformativ(GLenum target,
265 GLenum format,
266 GLenum pname,
267 GLsizei bufSize,
268 GLint* params) override;
269 void GetProgramiv(GLuint program, GLenum pname, GLint* params) override;
270 void GetProgramInfoLog(GLuint program,
271 GLsizei bufsize,
272 GLsizei* length,
273 char* infolog) override;
274 void GetRenderbufferParameteriv(GLenum target,
275 GLenum pname,
276 GLint* params) override;
277 void GetSamplerParameterfv(GLuint sampler,
278 GLenum pname,
279 GLfloat* params) override;
280 void GetSamplerParameteriv(GLuint sampler,
281 GLenum pname,
282 GLint* params) override;
283 void GetShaderiv(GLuint shader, GLenum pname, GLint* params) override;
284 void GetShaderInfoLog(GLuint shader,
285 GLsizei bufsize,
286 GLsizei* length,
287 char* infolog) override;
288 void GetShaderPrecisionFormat(GLenum shadertype,
289 GLenum precisiontype,
290 GLint* range,
291 GLint* precision) override;
292 void GetShaderSource(GLuint shader,
293 GLsizei bufsize,
294 GLsizei* length,
295 char* source) override;
296 const GLubyte* GetString(GLenum name) override;
297 void GetSynciv(GLsync sync,
298 GLenum pname,
299 GLsizei bufsize,
300 GLsizei* length,
301 GLint* values) override;
302 void GetTexParameterfv(GLenum target, GLenum pname, GLfloat* params) override;
303 void GetTexParameteriv(GLenum target, GLenum pname, GLint* params) override;
304 void GetTransformFeedbackVarying(GLuint program,
305 GLuint index,
306 GLsizei bufsize,
307 GLsizei* length,
308 GLsizei* size,
309 GLenum* type,
310 char* name) override;
311 GLuint GetUniformBlockIndex(GLuint program, const char* name) override;
312 void GetUniformfv(GLuint program, GLint location, GLfloat* params) override;
313 void GetUniformiv(GLuint program, GLint location, GLint* params) override;
314 void GetUniformuiv(GLuint program, GLint location, GLuint* params) override;
315 void GetUniformIndices(GLuint program,
316 GLsizei count,
317 const char* const* names,
318 GLuint* indices) override;
319 GLint GetUniformLocation(GLuint program, const char* name) override;
320 void GetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params) override;
321 void GetVertexAttribiv(GLuint index, GLenum pname, GLint* params) override;
322 void GetVertexAttribIiv(GLuint index, GLenum pname, GLint* params) override;
323 void GetVertexAttribIuiv(GLuint index, GLenum pname, GLuint* params) override;
324 void GetVertexAttribPointerv(GLuint index,
325 GLenum pname,
326 void** pointer) override;
327 void Hint(GLenum target, GLenum mode) override;
328 void InvalidateFramebuffer(GLenum target,
329 GLsizei count,
330 const GLenum* attachments) override;
331 void InvalidateSubFramebuffer(GLenum target,
332 GLsizei count,
333 const GLenum* attachments,
334 GLint x,
335 GLint y,
336 GLsizei width,
337 GLsizei height) override;
338 GLboolean IsBuffer(GLuint buffer) override;
339 GLboolean IsEnabled(GLenum cap) override;
340 GLboolean IsFramebuffer(GLuint framebuffer) override;
341 GLboolean IsProgram(GLuint program) override;
342 GLboolean IsRenderbuffer(GLuint renderbuffer) override;
343 GLboolean IsSampler(GLuint sampler) override;
344 GLboolean IsShader(GLuint shader) override;
345 GLboolean IsSync(GLsync sync) override;
346 GLboolean IsTexture(GLuint texture) override;
347 GLboolean IsTransformFeedback(GLuint transformfeedback) override;
348 void LineWidth(GLfloat width) override;
349 void LinkProgram(GLuint program) override;
350 void PauseTransformFeedback() override;
351 void PixelStorei(GLenum pname, GLint param) override;
352 void PolygonOffset(GLfloat factor, GLfloat units) override;
353 void ReadBuffer(GLenum src) override;
354 void ReadPixels(GLint x,
355 GLint y,
356 GLsizei width,
357 GLsizei height,
358 GLenum format,
359 GLenum type,
360 void* pixels) override;
361 void ReleaseShaderCompiler() override;
362 void RenderbufferStorage(GLenum target,
363 GLenum internalformat,
364 GLsizei width,
365 GLsizei height) override;
366 void ResumeTransformFeedback() override;
367 void SampleCoverage(GLclampf value, GLboolean invert) override;
368 void SamplerParameterf(GLuint sampler, GLenum pname, GLfloat param) override;
369 void SamplerParameterfv(GLuint sampler,
370 GLenum pname,
371 const GLfloat* params) override;
372 void SamplerParameteri(GLuint sampler, GLenum pname, GLint param) override;
373 void SamplerParameteriv(GLuint sampler,
374 GLenum pname,
375 const GLint* params) override;
376 void Scissor(GLint x, GLint y, GLsizei width, GLsizei height) override;
377 void ShaderBinary(GLsizei n,
378 const GLuint* shaders,
379 GLenum binaryformat,
380 const void* binary,
381 GLsizei length) override;
382 void ShaderSource(GLuint shader,
383 GLsizei count,
384 const GLchar* const* str,
385 const GLint* length) override;
386 void ShallowFinishCHROMIUM() override;
387 void ShallowFlushCHROMIUM() override;
388 void OrderingBarrierCHROMIUM() override;
389 void StencilFunc(GLenum func, GLint ref, GLuint mask) override;
390 void StencilFuncSeparate(GLenum face,
391 GLenum func,
392 GLint ref,
393 GLuint mask) override;
394 void StencilMask(GLuint mask) override;
395 void StencilMaskSeparate(GLenum face, GLuint mask) override;
396 void StencilOp(GLenum fail, GLenum zfail, GLenum zpass) override;
397 void StencilOpSeparate(GLenum face,
398 GLenum fail,
399 GLenum zfail,
400 GLenum zpass) override;
401 void TexImage2D(GLenum target,
402 GLint level,
403 GLint internalformat,
404 GLsizei width,
405 GLsizei height,
406 GLint border,
407 GLenum format,
408 GLenum type,
409 const void* pixels) override;
410 void TexImage3D(GLenum target,
411 GLint level,
412 GLint internalformat,
413 GLsizei width,
414 GLsizei height,
415 GLsizei depth,
416 GLint border,
417 GLenum format,
418 GLenum type,
419 const void* pixels) override;
420 void TexParameterf(GLenum target, GLenum pname, GLfloat param) override;
421 void TexParameterfv(GLenum target,
422 GLenum pname,
423 const GLfloat* params) override;
424 void TexParameteri(GLenum target, GLenum pname, GLint param) override;
425 void TexParameteriv(GLenum target,
426 GLenum pname,
427 const GLint* params) override;
428 void TexStorage3D(GLenum target,
429 GLsizei levels,
430 GLenum internalFormat,
431 GLsizei width,
432 GLsizei height,
433 GLsizei depth) override;
434 void TexSubImage2D(GLenum target,
435 GLint level,
436 GLint xoffset,
437 GLint yoffset,
438 GLsizei width,
439 GLsizei height,
440 GLenum format,
441 GLenum type,
442 const void* pixels) override;
443 void TexSubImage3D(GLenum target,
444 GLint level,
445 GLint xoffset,
446 GLint yoffset,
447 GLint zoffset,
448 GLsizei width,
449 GLsizei height,
450 GLsizei depth,
451 GLenum format,
452 GLenum type,
453 const void* pixels) override;
454 void TransformFeedbackVaryings(GLuint program,
455 GLsizei count,
456 const char* const* varyings,
457 GLenum buffermode) override;
458 void Uniform1f(GLint location, GLfloat x) override;
459 void Uniform1fv(GLint location, GLsizei count, const GLfloat* v) override;
460 void Uniform1i(GLint location, GLint x) override;
461 void Uniform1iv(GLint location, GLsizei count, const GLint* v) override;
462 void Uniform1ui(GLint location, GLuint x) override;
463 void Uniform1uiv(GLint location, GLsizei count, const GLuint* v) override;
464 void Uniform2f(GLint location, GLfloat x, GLfloat y) override;
465 void Uniform2fv(GLint location, GLsizei count, const GLfloat* v) override;
466 void Uniform2i(GLint location, GLint x, GLint y) override;
467 void Uniform2iv(GLint location, GLsizei count, const GLint* v) override;
468 void Uniform2ui(GLint location, GLuint x, GLuint y) override;
469 void Uniform2uiv(GLint location, GLsizei count, const GLuint* v) override;
470 void Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) override;
471 void Uniform3fv(GLint location, GLsizei count, const GLfloat* v) override;
472 void Uniform3i(GLint location, GLint x, GLint y, GLint z) override;
473 void Uniform3iv(GLint location, GLsizei count, const GLint* v) override;
474 void Uniform3ui(GLint location, GLuint x, GLuint y, GLuint z) override;
475 void Uniform3uiv(GLint location, GLsizei count, const GLuint* v) override;
476 void Uniform4f(GLint location,
477 GLfloat x,
478 GLfloat y,
479 GLfloat z,
480 GLfloat w) override;
481 void Uniform4fv(GLint location, GLsizei count, const GLfloat* v) override;
482 void Uniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) override;
483 void Uniform4iv(GLint location, GLsizei count, const GLint* v) override;
484 void Uniform4ui(GLint location,
485 GLuint x,
486 GLuint y,
487 GLuint z,
488 GLuint w) override;
489 void Uniform4uiv(GLint location, GLsizei count, const GLuint* v) override;
490 void UniformBlockBinding(GLuint program,
491 GLuint index,
492 GLuint binding) override;
493 void UniformMatrix2fv(GLint location,
494 GLsizei count,
495 GLboolean transpose,
496 const GLfloat* value) override;
497 void UniformMatrix2x3fv(GLint location,
498 GLsizei count,
499 GLboolean transpose,
500 const GLfloat* value) override;
501 void UniformMatrix2x4fv(GLint location,
502 GLsizei count,
503 GLboolean transpose,
504 const GLfloat* value) override;
505 void UniformMatrix3fv(GLint location,
506 GLsizei count,
507 GLboolean transpose,
508 const GLfloat* value) override;
509 void UniformMatrix3x2fv(GLint location,
510 GLsizei count,
511 GLboolean transpose,
512 const GLfloat* value) override;
513 void UniformMatrix3x4fv(GLint location,
514 GLsizei count,
515 GLboolean transpose,
516 const GLfloat* value) override;
517 void UniformMatrix4fv(GLint location,
518 GLsizei count,
519 GLboolean transpose,
520 const GLfloat* value) override;
521 void UniformMatrix4x2fv(GLint location,
522 GLsizei count,
523 GLboolean transpose,
524 const GLfloat* value) override;
525 void UniformMatrix4x3fv(GLint location,
526 GLsizei count,
527 GLboolean transpose,
528 const GLfloat* value) override;
529 void UseProgram(GLuint program) override;
530 void ValidateProgram(GLuint program) override;
531 void VertexAttrib1f(GLuint indx, GLfloat x) override;
532 void VertexAttrib1fv(GLuint indx, const GLfloat* values) override;
533 void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) override;
534 void VertexAttrib2fv(GLuint indx, const GLfloat* values) override;
535 void VertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) override;
536 void VertexAttrib3fv(GLuint indx, const GLfloat* values) override;
537 void VertexAttrib4f(GLuint indx,
538 GLfloat x,
539 GLfloat y,
540 GLfloat z,
541 GLfloat w) override;
542 void VertexAttrib4fv(GLuint indx, const GLfloat* values) override;
543 void VertexAttribI4i(GLuint indx,
544 GLint x,
545 GLint y,
546 GLint z,
547 GLint w) override;
548 void VertexAttribI4iv(GLuint indx, const GLint* values) override;
549 void VertexAttribI4ui(GLuint indx,
550 GLuint x,
551 GLuint y,
552 GLuint z,
553 GLuint w) override;
554 void VertexAttribI4uiv(GLuint indx, const GLuint* values) override;
555 void VertexAttribIPointer(GLuint indx,
556 GLint size,
557 GLenum type,
558 GLsizei stride,
559 const void* ptr) override;
560 void VertexAttribPointer(GLuint indx,
561 GLint size,
562 GLenum type,
563 GLboolean normalized,
564 GLsizei stride,
565 const void* ptr) override;
566 void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) override;
567 void WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) override;
568 void BlitFramebufferCHROMIUM(GLint srcX0,
569 GLint srcY0,
570 GLint srcX1,
571 GLint srcY1,
572 GLint dstX0,
573 GLint dstY0,
574 GLint dstX1,
575 GLint dstY1,
576 GLbitfield mask,
577 GLenum filter) override;
578 void RenderbufferStorageMultisampleCHROMIUM(GLenum target,
579 GLsizei samples,
580 GLenum internalformat,
581 GLsizei width,
582 GLsizei height) override;
583 void RenderbufferStorageMultisampleEXT(GLenum target,
584 GLsizei samples,
585 GLenum internalformat,
586 GLsizei width,
587 GLsizei height) override;
588 void FramebufferTexture2DMultisampleEXT(GLenum target,
589 GLenum attachment,
590 GLenum textarget,
591 GLuint texture,
592 GLint level,
593 GLsizei samples) override;
594 void TexStorage2DEXT(GLenum target,
595 GLsizei levels,
596 GLenum internalFormat,
597 GLsizei width,
598 GLsizei height) override;
599 void GenQueriesEXT(GLsizei n, GLuint* queries) override;
600 void DeleteQueriesEXT(GLsizei n, const GLuint* queries) override;
601 void QueryCounterEXT(GLuint id, GLenum target) override;
602 GLboolean IsQueryEXT(GLuint id) override;
603 void BeginQueryEXT(GLenum target, GLuint id) override;
604 void BeginTransformFeedback(GLenum primitivemode) override;
605 void EndQueryEXT(GLenum target) override;
606 void EndTransformFeedback() override;
607 void GetQueryivEXT(GLenum target, GLenum pname, GLint* params) override;
608 void GetQueryObjectuivEXT(GLuint id, GLenum pname, GLuint* params) override;
609 void GetQueryObjectui64vEXT(GLuint id,
610 GLenum pname,
611 GLuint64* params) override;
612 void InsertEventMarkerEXT(GLsizei length, const GLchar* marker) override;
613 void PushGroupMarkerEXT(GLsizei length, const GLchar* marker) override;
614 void PopGroupMarkerEXT() override;
615 void GenVertexArraysOES(GLsizei n, GLuint* arrays) override;
616 void DeleteVertexArraysOES(GLsizei n, const GLuint* arrays) override;
617 GLboolean IsVertexArrayOES(GLuint array) override;
618 void BindVertexArrayOES(GLuint array) override;
619 void SwapBuffers() override;
620 GLuint GetMaxValueInBufferCHROMIUM(GLuint buffer_id,
621 GLsizei count,
622 GLenum type,
623 GLuint offset) override;
624 GLboolean EnableFeatureCHROMIUM(const char* feature) override;
625 void* MapBufferCHROMIUM(GLuint target, GLenum access) override;
626 GLboolean UnmapBufferCHROMIUM(GLuint target) override;
627 void* MapBufferSubDataCHROMIUM(GLuint target,
628 GLintptr offset,
629 GLsizeiptr size,
630 GLenum access) override;
631 void UnmapBufferSubDataCHROMIUM(const void* mem) override;
632 void* MapBufferRange(GLenum target,
633 GLintptr offset,
634 GLsizeiptr size,
635 GLbitfield access) override;
636 GLboolean UnmapBuffer(GLenum target) override;
637 void* MapTexSubImage2DCHROMIUM(GLenum target,
638 GLint level,
639 GLint xoffset,
640 GLint yoffset,
641 GLsizei width,
642 GLsizei height,
643 GLenum format,
644 GLenum type,
645 GLenum access) override;
646 void UnmapTexSubImage2DCHROMIUM(const void* mem) override;
647 void ResizeCHROMIUM(GLuint width,
648 GLuint height,
649 GLfloat scale_factor) override;
650 const GLchar* GetRequestableExtensionsCHROMIUM() override;
651 void RequestExtensionCHROMIUM(const char* extension) override;
652 void RateLimitOffscreenContextCHROMIUM() override;
653 void GetProgramInfoCHROMIUM(GLuint program,
654 GLsizei bufsize,
655 GLsizei* size,
656 void* info) override;
657 void GetUniformBlocksCHROMIUM(GLuint program,
658 GLsizei bufsize,
659 GLsizei* size,
660 void* info) override;
661 void GetTransformFeedbackVaryingsCHROMIUM(GLuint program,
662 GLsizei bufsize,
663 GLsizei* size,
664 void* info) override;
665 void GetUniformsES3CHROMIUM(GLuint program,
666 GLsizei bufsize,
667 GLsizei* size,
668 void* info) override;
669 GLuint CreateStreamTextureCHROMIUM(GLuint texture) override;
670 GLuint CreateImageCHROMIUM(ClientBuffer buffer,
671 GLsizei width,
672 GLsizei height,
673 GLenum internalformat) override;
674 void DestroyImageCHROMIUM(GLuint image_id) override;
675 GLuint CreateGpuMemoryBufferImageCHROMIUM(GLsizei width,
676 GLsizei height,
677 GLenum internalformat,
678 GLenum usage) override;
679 void GetTranslatedShaderSourceANGLE(GLuint shader,
680 GLsizei bufsize,
681 GLsizei* length,
682 char* source) override;
683 void PostSubBufferCHROMIUM(GLint x,
684 GLint y,
685 GLint width,
686 GLint height) override;
687 void TexImageIOSurface2DCHROMIUM(GLenum target,
688 GLsizei width,
689 GLsizei height,
690 GLuint ioSurfaceId,
691 GLuint plane) override;
692 void CopyTextureCHROMIUM(GLenum target,
693 GLenum source_id,
694 GLenum dest_id,
695 GLint internalformat,
696 GLenum dest_type,
697 GLboolean unpack_flip_y,
698 GLboolean unpack_premultiply_alpha,
699 GLboolean unpack_unmultiply_alpha) override;
700 void CopySubTextureCHROMIUM(GLenum target,
701 GLenum source_id,
702 GLenum dest_id,
703 GLint xoffset,
704 GLint yoffset,
705 GLint x,
706 GLint y,
707 GLsizei width,
708 GLsizei height,
709 GLboolean unpack_flip_y,
710 GLboolean unpack_premultiply_alpha,
711 GLboolean unpack_unmultiply_alpha) override;
712 void CompressedCopyTextureCHROMIUM(GLenum target,
713 GLenum source_id,
714 GLenum dest_id) override;
715 void DrawArraysInstancedANGLE(GLenum mode,
716 GLint first,
717 GLsizei count,
718 GLsizei primcount) override;
719 void DrawElementsInstancedANGLE(GLenum mode,
720 GLsizei count,
721 GLenum type,
722 const void* indices,
723 GLsizei primcount) override;
724 void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) override;
725 void GenMailboxCHROMIUM(GLbyte* mailbox) override;
726 void ProduceTextureCHROMIUM(GLenum target, const GLbyte* mailbox) override;
727 void ProduceTextureDirectCHROMIUM(GLuint texture,
728 GLenum target,
729 const GLbyte* mailbox) override;
730 void ConsumeTextureCHROMIUM(GLenum target, const GLbyte* mailbox) override;
731 GLuint CreateAndConsumeTextureCHROMIUM(GLenum target,
732 const GLbyte* mailbox) override;
733 void BindUniformLocationCHROMIUM(GLuint program,
734 GLint location,
735 const char* name) override;
736 void GenValuebuffersCHROMIUM(GLsizei n, GLuint* buffers) override;
737 void DeleteValuebuffersCHROMIUM(GLsizei n,
738 const GLuint* valuebuffers) override;
739 GLboolean IsValuebufferCHROMIUM(GLuint valuebuffer) override;
740 void BindValuebufferCHROMIUM(GLenum target, GLuint valuebuffer) override;
741 void SubscribeValueCHROMIUM(GLenum target, GLenum subscription) override;
742 void PopulateSubscribedValuesCHROMIUM(GLenum target) override;
743 void UniformValuebufferCHROMIUM(GLint location,
744 GLenum target,
745 GLenum subscription) override;
746 void BindTexImage2DCHROMIUM(GLenum target, GLint imageId) override;
747 void ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) override;
748 void TraceBeginCHROMIUM(const char* category_name,
749 const char* trace_name) override;
750 void TraceEndCHROMIUM() override;
751 void AsyncTexSubImage2DCHROMIUM(GLenum target,
752 GLint level,
753 GLint xoffset,
754 GLint yoffset,
755 GLsizei width,
756 GLsizei height,
757 GLenum format,
758 GLenum type,
759 const void* data) override;
760 void AsyncTexImage2DCHROMIUM(GLenum target,
761 GLint level,
762 GLenum internalformat,
763 GLsizei width,
764 GLsizei height,
765 GLint border,
766 GLenum format,
767 GLenum type,
768 const void* pixels) override;
769 void WaitAsyncTexImage2DCHROMIUM(GLenum target) override;
770 void WaitAllAsyncTexImage2DCHROMIUM() override;
771 void DiscardFramebufferEXT(GLenum target,
772 GLsizei count,
773 const GLenum* attachments) override;
774 void LoseContextCHROMIUM(GLenum current, GLenum other) override;
775 GLuint InsertSyncPointCHROMIUM() override;
776 void WaitSyncPointCHROMIUM(GLuint sync_point) override;
777 void DrawBuffersEXT(GLsizei count, const GLenum* bufs) override;
778 void DiscardBackbufferCHROMIUM() override;
779 void ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order,
780 GLenum plane_transform,
781 GLuint overlay_texture_id,
782 GLint bounds_x,
783 GLint bounds_y,
784 GLint bounds_width,
785 GLint bounds_height,
786 GLfloat uv_x,
787 GLfloat uv_y,
788 GLfloat uv_width,
789 GLfloat uv_height) override;
790 void SwapInterval(GLint interval) override;
791 void FlushDriverCachesCHROMIUM() override;
792 void MatrixLoadfCHROMIUM(GLenum matrixMode, const GLfloat* m) override;
793 void MatrixLoadIdentityCHROMIUM(GLenum matrixMode) override;
794 GLuint GenPathsCHROMIUM(GLsizei range) override;
795 void DeletePathsCHROMIUM(GLuint path, GLsizei range) override;
796 GLboolean IsPathCHROMIUM(GLuint path) override;
797 void PathCommandsCHROMIUM(GLuint path,
798 GLsizei numCommands,
799 const GLubyte* commands,
800 GLsizei numCoords,
801 GLenum coordType,
802 const GLvoid* coords) override;
803 void PathParameterfCHROMIUM(GLuint path,
804 GLenum pname,
805 GLfloat value) override;
806 void PathParameteriCHROMIUM(GLuint path, GLenum pname, GLint value) override;
807 void PathStencilFuncCHROMIUM(GLenum func, GLint ref, GLuint mask) override;
808 void StencilFillPathCHROMIUM(GLuint path,
809 GLenum fillMode,
810 GLuint mask) override;
811 void StencilStrokePathCHROMIUM(GLuint path,
812 GLint reference,
813 GLuint mask) override;
814 void CoverFillPathCHROMIUM(GLuint path, GLenum coverMode) override;
815 void CoverStrokePathCHROMIUM(GLuint path, GLenum coverMode) override;
816 void StencilThenCoverFillPathCHROMIUM(GLuint path,
817 GLenum fillMode,
818 GLuint mask,
819 GLenum coverMode) override;
820 void StencilThenCoverStrokePathCHROMIUM(GLuint path,
821 GLint reference,
822 GLuint mask,
823 GLenum coverMode) override;
824 GLenum GetGraphicsResetStatusKHR() override;
825 void BlendBarrierKHR() override;
827 private:
828 MojoGLES2Context context_;
831 } // namespace mojo
832 #endif // MOJO_GPU_MOJO_GLES2_IMPL_AUTOGEN_H_