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