Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / mojo / gpu / mojo_gles2_impl_autogen.h
blob6d4e45e9e57d37931c90d4e8e7667eaa0887ef2a
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 void QueryCounterEXT(GLuint id, GLenum target) override;
599 GLboolean IsQueryEXT(GLuint id) override;
600 void BeginQueryEXT(GLenum target, GLuint id) override;
601 void BeginTransformFeedback(GLenum primitivemode) override;
602 void EndQueryEXT(GLenum target) override;
603 void EndTransformFeedback() override;
604 void GetQueryivEXT(GLenum target, GLenum pname, GLint* params) override;
605 void GetQueryObjectuivEXT(GLuint id, GLenum pname, GLuint* params) override;
606 void GetQueryObjectui64vEXT(GLuint id,
607 GLenum pname,
608 GLuint64* params) override;
609 void InsertEventMarkerEXT(GLsizei length, const GLchar* marker) override;
610 void PushGroupMarkerEXT(GLsizei length, const GLchar* marker) override;
611 void PopGroupMarkerEXT() override;
612 void GenVertexArraysOES(GLsizei n, GLuint* arrays) override;
613 void DeleteVertexArraysOES(GLsizei n, const GLuint* arrays) override;
614 GLboolean IsVertexArrayOES(GLuint array) override;
615 void BindVertexArrayOES(GLuint array) override;
616 void SwapBuffers() override;
617 GLuint GetMaxValueInBufferCHROMIUM(GLuint buffer_id,
618 GLsizei count,
619 GLenum type,
620 GLuint offset) override;
621 GLboolean EnableFeatureCHROMIUM(const char* feature) override;
622 void* MapBufferCHROMIUM(GLuint target, GLenum access) override;
623 GLboolean UnmapBufferCHROMIUM(GLuint target) override;
624 void* MapBufferSubDataCHROMIUM(GLuint target,
625 GLintptr offset,
626 GLsizeiptr size,
627 GLenum access) override;
628 void UnmapBufferSubDataCHROMIUM(const void* mem) override;
629 void* MapBufferRange(GLenum target,
630 GLintptr offset,
631 GLsizeiptr size,
632 GLbitfield access) override;
633 GLboolean UnmapBuffer(GLenum target) override;
634 void* MapTexSubImage2DCHROMIUM(GLenum target,
635 GLint level,
636 GLint xoffset,
637 GLint yoffset,
638 GLsizei width,
639 GLsizei height,
640 GLenum format,
641 GLenum type,
642 GLenum access) override;
643 void UnmapTexSubImage2DCHROMIUM(const void* mem) override;
644 void ResizeCHROMIUM(GLuint width,
645 GLuint height,
646 GLfloat scale_factor) override;
647 const GLchar* GetRequestableExtensionsCHROMIUM() override;
648 void RequestExtensionCHROMIUM(const char* extension) override;
649 void RateLimitOffscreenContextCHROMIUM() override;
650 void GetProgramInfoCHROMIUM(GLuint program,
651 GLsizei bufsize,
652 GLsizei* size,
653 void* info) override;
654 void GetUniformBlocksCHROMIUM(GLuint program,
655 GLsizei bufsize,
656 GLsizei* size,
657 void* info) override;
658 void GetTransformFeedbackVaryingsCHROMIUM(GLuint program,
659 GLsizei bufsize,
660 GLsizei* size,
661 void* info) override;
662 void GetUniformsES3CHROMIUM(GLuint program,
663 GLsizei bufsize,
664 GLsizei* size,
665 void* info) override;
666 GLuint CreateStreamTextureCHROMIUM(GLuint texture) override;
667 GLuint CreateImageCHROMIUM(ClientBuffer buffer,
668 GLsizei width,
669 GLsizei height,
670 GLenum internalformat) override;
671 void DestroyImageCHROMIUM(GLuint image_id) override;
672 GLuint CreateGpuMemoryBufferImageCHROMIUM(GLsizei width,
673 GLsizei height,
674 GLenum internalformat,
675 GLenum usage) override;
676 void GetTranslatedShaderSourceANGLE(GLuint shader,
677 GLsizei bufsize,
678 GLsizei* length,
679 char* source) override;
680 void PostSubBufferCHROMIUM(GLint x,
681 GLint y,
682 GLint width,
683 GLint height) override;
684 void TexImageIOSurface2DCHROMIUM(GLenum target,
685 GLsizei width,
686 GLsizei height,
687 GLuint ioSurfaceId,
688 GLuint plane) override;
689 void CopyTextureCHROMIUM(GLenum target,
690 GLenum source_id,
691 GLenum dest_id,
692 GLint internalformat,
693 GLenum dest_type,
694 GLboolean unpack_flip_y,
695 GLboolean unpack_premultiply_alpha,
696 GLboolean unpack_unmultiply_alpha) override;
697 void CopySubTextureCHROMIUM(GLenum target,
698 GLenum source_id,
699 GLenum dest_id,
700 GLint xoffset,
701 GLint yoffset,
702 GLint x,
703 GLint y,
704 GLsizei width,
705 GLsizei height,
706 GLboolean unpack_flip_y,
707 GLboolean unpack_premultiply_alpha,
708 GLboolean unpack_unmultiply_alpha) override;
709 void CompressedCopyTextureCHROMIUM(GLenum target,
710 GLenum source_id,
711 GLenum dest_id) override;
712 void DrawArraysInstancedANGLE(GLenum mode,
713 GLint first,
714 GLsizei count,
715 GLsizei primcount) override;
716 void DrawElementsInstancedANGLE(GLenum mode,
717 GLsizei count,
718 GLenum type,
719 const void* indices,
720 GLsizei primcount) override;
721 void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) override;
722 void GenMailboxCHROMIUM(GLbyte* mailbox) override;
723 void ProduceTextureCHROMIUM(GLenum target, const GLbyte* mailbox) override;
724 void ProduceTextureDirectCHROMIUM(GLuint texture,
725 GLenum target,
726 const GLbyte* mailbox) override;
727 void ConsumeTextureCHROMIUM(GLenum target, const GLbyte* mailbox) override;
728 GLuint CreateAndConsumeTextureCHROMIUM(GLenum target,
729 const GLbyte* mailbox) override;
730 void BindUniformLocationCHROMIUM(GLuint program,
731 GLint location,
732 const char* name) override;
733 void GenValuebuffersCHROMIUM(GLsizei n, GLuint* buffers) override;
734 void DeleteValuebuffersCHROMIUM(GLsizei n,
735 const GLuint* valuebuffers) override;
736 GLboolean IsValuebufferCHROMIUM(GLuint valuebuffer) override;
737 void BindValuebufferCHROMIUM(GLenum target, GLuint valuebuffer) override;
738 void SubscribeValueCHROMIUM(GLenum target, GLenum subscription) override;
739 void PopulateSubscribedValuesCHROMIUM(GLenum target) override;
740 void UniformValuebufferCHROMIUM(GLint location,
741 GLenum target,
742 GLenum subscription) override;
743 void BindTexImage2DCHROMIUM(GLenum target, GLint imageId) override;
744 void ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) override;
745 void TraceBeginCHROMIUM(const char* category_name,
746 const char* trace_name) override;
747 void TraceEndCHROMIUM() override;
748 void AsyncTexSubImage2DCHROMIUM(GLenum target,
749 GLint level,
750 GLint xoffset,
751 GLint yoffset,
752 GLsizei width,
753 GLsizei height,
754 GLenum format,
755 GLenum type,
756 const void* data) override;
757 void AsyncTexImage2DCHROMIUM(GLenum target,
758 GLint level,
759 GLenum internalformat,
760 GLsizei width,
761 GLsizei height,
762 GLint border,
763 GLenum format,
764 GLenum type,
765 const void* pixels) override;
766 void WaitAsyncTexImage2DCHROMIUM(GLenum target) override;
767 void WaitAllAsyncTexImage2DCHROMIUM() override;
768 void DiscardFramebufferEXT(GLenum target,
769 GLsizei count,
770 const GLenum* attachments) override;
771 void LoseContextCHROMIUM(GLenum current, GLenum other) override;
772 GLuint InsertSyncPointCHROMIUM() override;
773 void WaitSyncPointCHROMIUM(GLuint sync_point) override;
774 void DrawBuffersEXT(GLsizei count, const GLenum* bufs) override;
775 void DiscardBackbufferCHROMIUM() override;
776 void ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order,
777 GLenum plane_transform,
778 GLuint overlay_texture_id,
779 GLint bounds_x,
780 GLint bounds_y,
781 GLint bounds_width,
782 GLint bounds_height,
783 GLfloat uv_x,
784 GLfloat uv_y,
785 GLfloat uv_width,
786 GLfloat uv_height) override;
787 void SwapInterval(GLint interval) override;
788 void FlushDriverCachesCHROMIUM() override;
789 void MatrixLoadfCHROMIUM(GLenum matrixMode, const GLfloat* m) override;
790 void MatrixLoadIdentityCHROMIUM(GLenum matrixMode) override;
791 GLuint GenPathsCHROMIUM(GLsizei range) override;
792 void DeletePathsCHROMIUM(GLuint path, GLsizei range) override;
793 GLboolean IsPathCHROMIUM(GLuint path) override;
794 void PathCommandsCHROMIUM(GLuint path,
795 GLsizei numCommands,
796 const GLubyte* commands,
797 GLsizei numCoords,
798 GLenum coordType,
799 const GLvoid* coords) override;
800 void PathParameterfCHROMIUM(GLuint path,
801 GLenum pname,
802 GLfloat value) override;
803 void PathParameteriCHROMIUM(GLuint path, GLenum pname, GLint value) override;
804 void PathStencilFuncCHROMIUM(GLenum func, GLint ref, GLuint mask) override;
805 void StencilFillPathCHROMIUM(GLuint path,
806 GLenum fillMode,
807 GLuint mask) override;
808 void StencilStrokePathCHROMIUM(GLuint path,
809 GLint reference,
810 GLuint mask) override;
811 void CoverFillPathCHROMIUM(GLuint path, GLenum coverMode) override;
812 void CoverStrokePathCHROMIUM(GLuint path, GLenum coverMode) override;
813 void StencilThenCoverFillPathCHROMIUM(GLuint path,
814 GLenum fillMode,
815 GLuint mask,
816 GLenum coverMode) override;
817 void StencilThenCoverStrokePathCHROMIUM(GLuint path,
818 GLint reference,
819 GLuint mask,
820 GLenum coverMode) override;
821 GLenum GetGraphicsResetStatusKHR() override;
822 void BlendBarrierKHR() override;
824 private:
825 MojoGLES2Context context_;
828 } // namespace mojo
829 #endif // MOJO_GPU_MOJO_GLES2_IMPL_AUTOGEN_H_