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