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
11 // This file is included by gles2_implementation.h to declare the
13 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_AUTOGEN_H_
14 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_AUTOGEN_H_
16 virtual void ActiveTexture(GLenum texture
) OVERRIDE
;
18 virtual void AttachShader(GLuint program
, GLuint shader
) OVERRIDE
;
20 virtual void BindAttribLocation(GLuint program
,
22 const char* name
) OVERRIDE
;
24 virtual void BindBuffer(GLenum target
, GLuint buffer
) OVERRIDE
;
26 virtual void BindFramebuffer(GLenum target
, GLuint framebuffer
) OVERRIDE
;
28 virtual void BindRenderbuffer(GLenum target
, GLuint renderbuffer
) OVERRIDE
;
30 virtual void BindTexture(GLenum target
, GLuint texture
) OVERRIDE
;
32 virtual void BlendColor(GLclampf red
,
35 GLclampf alpha
) OVERRIDE
;
37 virtual void BlendEquation(GLenum mode
) OVERRIDE
;
39 virtual void BlendEquationSeparate(GLenum modeRGB
, GLenum modeAlpha
) OVERRIDE
;
41 virtual void BlendFunc(GLenum sfactor
, GLenum dfactor
) OVERRIDE
;
43 virtual void BlendFuncSeparate(GLenum srcRGB
,
46 GLenum dstAlpha
) OVERRIDE
;
48 virtual void BufferData(GLenum target
,
51 GLenum usage
) OVERRIDE
;
53 virtual void BufferSubData(GLenum target
,
56 const void* data
) OVERRIDE
;
58 virtual GLenum
CheckFramebufferStatus(GLenum target
) OVERRIDE
;
60 virtual void Clear(GLbitfield mask
) OVERRIDE
;
62 virtual void ClearColor(GLclampf red
,
65 GLclampf alpha
) OVERRIDE
;
67 virtual void ClearDepthf(GLclampf depth
) OVERRIDE
;
69 virtual void ClearStencil(GLint s
) OVERRIDE
;
71 virtual void ColorMask(GLboolean red
,
74 GLboolean alpha
) OVERRIDE
;
76 virtual void CompileShader(GLuint shader
) OVERRIDE
;
78 virtual void CompressedTexImage2D(GLenum target
,
80 GLenum internalformat
,
85 const void* data
) OVERRIDE
;
87 virtual void CompressedTexSubImage2D(GLenum target
,
95 const void* data
) OVERRIDE
;
97 virtual void CopyTexImage2D(GLenum target
,
99 GLenum internalformat
,
104 GLint border
) OVERRIDE
;
106 virtual void CopyTexSubImage2D(GLenum target
,
113 GLsizei height
) OVERRIDE
;
115 virtual GLuint
CreateProgram() OVERRIDE
;
117 virtual GLuint
CreateShader(GLenum type
) OVERRIDE
;
119 virtual void CullFace(GLenum mode
) OVERRIDE
;
121 virtual void DeleteBuffers(GLsizei n
, const GLuint
* buffers
) OVERRIDE
;
123 virtual void DeleteFramebuffers(GLsizei n
, const GLuint
* framebuffers
) OVERRIDE
;
125 virtual void DeleteProgram(GLuint program
) OVERRIDE
;
127 virtual void DeleteRenderbuffers(GLsizei n
,
128 const GLuint
* renderbuffers
) OVERRIDE
;
130 virtual void DeleteShader(GLuint shader
) OVERRIDE
;
132 virtual void DeleteTextures(GLsizei n
, const GLuint
* textures
) OVERRIDE
;
134 virtual void DepthFunc(GLenum func
) OVERRIDE
;
136 virtual void DepthMask(GLboolean flag
) OVERRIDE
;
138 virtual void DepthRangef(GLclampf zNear
, GLclampf zFar
) OVERRIDE
;
140 virtual void DetachShader(GLuint program
, GLuint shader
) OVERRIDE
;
142 virtual void Disable(GLenum cap
) OVERRIDE
;
144 virtual void DrawArrays(GLenum mode
, GLint first
, GLsizei count
) OVERRIDE
;
146 virtual void DrawElements(GLenum mode
,
149 const void* indices
) OVERRIDE
;
151 virtual void Enable(GLenum cap
) OVERRIDE
;
153 virtual void Finish() OVERRIDE
;
155 virtual void Flush() OVERRIDE
;
157 virtual void FramebufferRenderbuffer(GLenum target
,
159 GLenum renderbuffertarget
,
160 GLuint renderbuffer
) OVERRIDE
;
162 virtual void FramebufferTexture2D(GLenum target
,
166 GLint level
) OVERRIDE
;
168 virtual void FrontFace(GLenum mode
) OVERRIDE
;
170 virtual void GenBuffers(GLsizei n
, GLuint
* buffers
) OVERRIDE
;
172 virtual void GenerateMipmap(GLenum target
) OVERRIDE
;
174 virtual void GenFramebuffers(GLsizei n
, GLuint
* framebuffers
) OVERRIDE
;
176 virtual void GenRenderbuffers(GLsizei n
, GLuint
* renderbuffers
) OVERRIDE
;
178 virtual void GenTextures(GLsizei n
, GLuint
* textures
) OVERRIDE
;
180 virtual void GetActiveAttrib(GLuint program
,
186 char* name
) OVERRIDE
;
188 virtual void GetActiveUniform(GLuint program
,
194 char* name
) OVERRIDE
;
196 virtual void GetAttachedShaders(GLuint program
,
199 GLuint
* shaders
) OVERRIDE
;
201 virtual GLint
GetAttribLocation(GLuint program
, const char* name
) OVERRIDE
;
203 virtual void GetBooleanv(GLenum pname
, GLboolean
* params
) OVERRIDE
;
205 virtual void GetBufferParameteriv(GLenum target
,
207 GLint
* params
) OVERRIDE
;
209 virtual GLenum
GetError() OVERRIDE
;
211 virtual void GetFloatv(GLenum pname
, GLfloat
* params
) OVERRIDE
;
213 virtual void GetFramebufferAttachmentParameteriv(GLenum target
,
216 GLint
* params
) OVERRIDE
;
218 virtual void GetIntegerv(GLenum pname
, GLint
* params
) OVERRIDE
;
220 virtual void GetProgramiv(GLuint program
, GLenum pname
, GLint
* params
) OVERRIDE
;
222 virtual void GetProgramInfoLog(GLuint program
,
225 char* infolog
) OVERRIDE
;
227 virtual void GetRenderbufferParameteriv(GLenum target
,
229 GLint
* params
) OVERRIDE
;
231 virtual void GetShaderiv(GLuint shader
, GLenum pname
, GLint
* params
) OVERRIDE
;
233 virtual void GetShaderInfoLog(GLuint shader
,
236 char* infolog
) OVERRIDE
;
238 virtual void GetShaderPrecisionFormat(GLenum shadertype
,
239 GLenum precisiontype
,
241 GLint
* precision
) OVERRIDE
;
243 virtual void GetShaderSource(GLuint shader
,
246 char* source
) OVERRIDE
;
248 virtual const GLubyte
* GetString(GLenum name
) OVERRIDE
;
250 virtual void GetTexParameterfv(GLenum target
,
252 GLfloat
* params
) OVERRIDE
;
254 virtual void GetTexParameteriv(GLenum target
,
256 GLint
* params
) OVERRIDE
;
258 virtual void GetUniformfv(GLuint program
,
260 GLfloat
* params
) OVERRIDE
;
262 virtual void GetUniformiv(GLuint program
,
264 GLint
* params
) OVERRIDE
;
266 virtual GLint
GetUniformLocation(GLuint program
, const char* name
) OVERRIDE
;
268 virtual void GetVertexAttribPointerv(GLuint index
,
270 void** pointer
) OVERRIDE
;
272 virtual void Hint(GLenum target
, GLenum mode
) OVERRIDE
;
274 virtual GLboolean
IsBuffer(GLuint buffer
) OVERRIDE
;
276 virtual GLboolean
IsEnabled(GLenum cap
) OVERRIDE
;
278 virtual GLboolean
IsFramebuffer(GLuint framebuffer
) OVERRIDE
;
280 virtual GLboolean
IsProgram(GLuint program
) OVERRIDE
;
282 virtual GLboolean
IsRenderbuffer(GLuint renderbuffer
) OVERRIDE
;
284 virtual GLboolean
IsShader(GLuint shader
) OVERRIDE
;
286 virtual GLboolean
IsTexture(GLuint texture
) OVERRIDE
;
288 virtual void LineWidth(GLfloat width
) OVERRIDE
;
290 virtual void LinkProgram(GLuint program
) OVERRIDE
;
292 virtual void PixelStorei(GLenum pname
, GLint param
) OVERRIDE
;
294 virtual void PolygonOffset(GLfloat factor
, GLfloat units
) OVERRIDE
;
296 virtual void ReadPixels(GLint x
,
302 void* pixels
) OVERRIDE
;
304 virtual void ReleaseShaderCompiler() OVERRIDE
;
306 virtual void RenderbufferStorage(GLenum target
,
307 GLenum internalformat
,
309 GLsizei height
) OVERRIDE
;
311 virtual void SampleCoverage(GLclampf value
, GLboolean invert
) OVERRIDE
;
313 virtual void Scissor(GLint x
, GLint y
, GLsizei width
, GLsizei height
) OVERRIDE
;
315 virtual void ShaderBinary(GLsizei n
,
316 const GLuint
* shaders
,
319 GLsizei length
) OVERRIDE
;
321 virtual void ShaderSource(GLuint shader
,
323 const GLchar
* const* str
,
324 const GLint
* length
) OVERRIDE
;
326 virtual void ShallowFinishCHROMIUM() OVERRIDE
;
328 virtual void ShallowFlushCHROMIUM() OVERRIDE
;
330 virtual void StencilFunc(GLenum func
, GLint ref
, GLuint mask
) OVERRIDE
;
332 virtual void StencilFuncSeparate(GLenum face
,
335 GLuint mask
) OVERRIDE
;
337 virtual void StencilMask(GLuint mask
) OVERRIDE
;
339 virtual void StencilMaskSeparate(GLenum face
, GLuint mask
) OVERRIDE
;
341 virtual void StencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
) OVERRIDE
;
343 virtual void StencilOpSeparate(GLenum face
,
346 GLenum zpass
) OVERRIDE
;
348 virtual void TexImage2D(GLenum target
,
350 GLint internalformat
,
356 const void* pixels
) OVERRIDE
;
358 virtual void TexParameterf(GLenum target
, GLenum pname
, GLfloat param
) OVERRIDE
;
360 virtual void TexParameterfv(GLenum target
,
362 const GLfloat
* params
) OVERRIDE
;
364 virtual void TexParameteri(GLenum target
, GLenum pname
, GLint param
) OVERRIDE
;
366 virtual void TexParameteriv(GLenum target
,
368 const GLint
* params
) OVERRIDE
;
370 virtual void TexSubImage2D(GLenum target
,
378 const void* pixels
) OVERRIDE
;
380 virtual void Uniform1f(GLint location
, GLfloat x
) OVERRIDE
;
382 virtual void Uniform1fv(GLint location
,
384 const GLfloat
* v
) OVERRIDE
;
386 virtual void Uniform1i(GLint location
, GLint x
) OVERRIDE
;
388 virtual void Uniform1iv(GLint location
, GLsizei count
, const GLint
* v
) OVERRIDE
;
390 virtual void Uniform2f(GLint location
, GLfloat x
, GLfloat y
) OVERRIDE
;
392 virtual void Uniform2fv(GLint location
,
394 const GLfloat
* v
) OVERRIDE
;
396 virtual void Uniform2i(GLint location
, GLint x
, GLint y
) OVERRIDE
;
398 virtual void Uniform2iv(GLint location
, GLsizei count
, const GLint
* v
) OVERRIDE
;
400 virtual void Uniform3f(GLint location
,
405 virtual void Uniform3fv(GLint location
,
407 const GLfloat
* v
) OVERRIDE
;
409 virtual void Uniform3i(GLint location
, GLint x
, GLint y
, GLint z
) OVERRIDE
;
411 virtual void Uniform3iv(GLint location
, GLsizei count
, const GLint
* v
) OVERRIDE
;
413 virtual void Uniform4f(GLint location
,
419 virtual void Uniform4fv(GLint location
,
421 const GLfloat
* v
) OVERRIDE
;
423 virtual void Uniform4i(GLint location
,
429 virtual void Uniform4iv(GLint location
, GLsizei count
, const GLint
* v
) OVERRIDE
;
431 virtual void UniformMatrix2fv(GLint location
,
434 const GLfloat
* value
) OVERRIDE
;
436 virtual void UniformMatrix3fv(GLint location
,
439 const GLfloat
* value
) OVERRIDE
;
441 virtual void UniformMatrix4fv(GLint location
,
444 const GLfloat
* value
) OVERRIDE
;
446 virtual void UseProgram(GLuint program
) OVERRIDE
;
448 virtual void ValidateProgram(GLuint program
) OVERRIDE
;
450 virtual void VertexAttrib1f(GLuint indx
, GLfloat x
) OVERRIDE
;
452 virtual void VertexAttrib1fv(GLuint indx
, const GLfloat
* values
) OVERRIDE
;
454 virtual void VertexAttrib2f(GLuint indx
, GLfloat x
, GLfloat y
) OVERRIDE
;
456 virtual void VertexAttrib2fv(GLuint indx
, const GLfloat
* values
) OVERRIDE
;
458 virtual void VertexAttrib3f(GLuint indx
,
463 virtual void VertexAttrib3fv(GLuint indx
, const GLfloat
* values
) OVERRIDE
;
465 virtual void VertexAttrib4f(GLuint indx
,
471 virtual void VertexAttrib4fv(GLuint indx
, const GLfloat
* values
) OVERRIDE
;
473 virtual void VertexAttribPointer(GLuint indx
,
476 GLboolean normalized
,
478 const void* ptr
) OVERRIDE
;
480 virtual void Viewport(GLint x
, GLint y
, GLsizei width
, GLsizei height
) OVERRIDE
;
482 virtual void BlitFramebufferCHROMIUM(GLint srcX0
,
491 GLenum filter
) OVERRIDE
;
493 virtual void RenderbufferStorageMultisampleCHROMIUM(GLenum target
,
495 GLenum internalformat
,
497 GLsizei height
) OVERRIDE
;
499 virtual void RenderbufferStorageMultisampleEXT(GLenum target
,
501 GLenum internalformat
,
503 GLsizei height
) OVERRIDE
;
505 virtual void FramebufferTexture2DMultisampleEXT(GLenum target
,
510 GLsizei samples
) OVERRIDE
;
512 virtual void TexStorage2DEXT(GLenum target
,
514 GLenum internalFormat
,
516 GLsizei height
) OVERRIDE
;
518 virtual void GenQueriesEXT(GLsizei n
, GLuint
* queries
) OVERRIDE
;
520 virtual void DeleteQueriesEXT(GLsizei n
, const GLuint
* queries
) OVERRIDE
;
522 virtual GLboolean
IsQueryEXT(GLuint id
) OVERRIDE
;
524 virtual void BeginQueryEXT(GLenum target
, GLuint id
) OVERRIDE
;
526 virtual void EndQueryEXT(GLenum target
) OVERRIDE
;
528 virtual void GetQueryivEXT(GLenum target
, GLenum pname
, GLint
* params
) OVERRIDE
;
530 virtual void GetQueryObjectuivEXT(GLuint id
,
532 GLuint
* params
) OVERRIDE
;
534 virtual void InsertEventMarkerEXT(GLsizei length
,
535 const GLchar
* marker
) OVERRIDE
;
537 virtual void PushGroupMarkerEXT(GLsizei length
, const GLchar
* marker
) OVERRIDE
;
539 virtual void PopGroupMarkerEXT() OVERRIDE
;
541 virtual void GenVertexArraysOES(GLsizei n
, GLuint
* arrays
) OVERRIDE
;
543 virtual void DeleteVertexArraysOES(GLsizei n
, const GLuint
* arrays
) OVERRIDE
;
545 virtual GLboolean
IsVertexArrayOES(GLuint array
) OVERRIDE
;
547 virtual void BindVertexArrayOES(GLuint array
) OVERRIDE
;
549 virtual void SwapBuffers() OVERRIDE
;
551 virtual GLuint
GetMaxValueInBufferCHROMIUM(GLuint buffer_id
,
554 GLuint offset
) OVERRIDE
;
556 virtual void GenSharedIdsCHROMIUM(GLuint namespace_id
,
559 GLuint
* ids
) OVERRIDE
;
561 virtual void DeleteSharedIdsCHROMIUM(GLuint namespace_id
,
563 const GLuint
* ids
) OVERRIDE
;
565 virtual void RegisterSharedIdsCHROMIUM(GLuint namespace_id
,
567 const GLuint
* ids
) OVERRIDE
;
569 virtual GLboolean
EnableFeatureCHROMIUM(const char* feature
) OVERRIDE
;
571 virtual void* MapBufferCHROMIUM(GLuint target
, GLenum access
) OVERRIDE
;
573 virtual GLboolean
UnmapBufferCHROMIUM(GLuint target
) OVERRIDE
;
575 virtual void* MapImageCHROMIUM(GLuint image_id
) OVERRIDE
;
577 virtual void UnmapImageCHROMIUM(GLuint image_id
) OVERRIDE
;
579 virtual void* MapBufferSubDataCHROMIUM(GLuint target
,
582 GLenum access
) OVERRIDE
;
584 virtual void UnmapBufferSubDataCHROMIUM(const void* mem
) OVERRIDE
;
586 virtual void* MapTexSubImage2DCHROMIUM(GLenum target
,
594 GLenum access
) OVERRIDE
;
596 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem
) OVERRIDE
;
598 virtual void ResizeCHROMIUM(GLuint width
,
600 GLfloat scale_factor
) OVERRIDE
;
602 virtual const GLchar
* GetRequestableExtensionsCHROMIUM() OVERRIDE
;
604 virtual void RequestExtensionCHROMIUM(const char* extension
) OVERRIDE
;
606 virtual void RateLimitOffscreenContextCHROMIUM() OVERRIDE
;
608 virtual void GetMultipleIntegervCHROMIUM(const GLenum
* pnames
,
611 GLsizeiptr size
) OVERRIDE
;
613 virtual void GetProgramInfoCHROMIUM(GLuint program
,
616 void* info
) OVERRIDE
;
618 virtual GLuint
CreateStreamTextureCHROMIUM(GLuint texture
) OVERRIDE
;
620 virtual GLuint
CreateImageCHROMIUM(GLsizei width
,
622 GLenum internalformat
,
623 GLenum usage
) OVERRIDE
;
625 virtual void DestroyImageCHROMIUM(GLuint image_id
) OVERRIDE
;
627 virtual void GetImageParameterivCHROMIUM(GLuint image_id
,
629 GLint
* params
) OVERRIDE
;
631 virtual void GetTranslatedShaderSourceANGLE(GLuint shader
,
634 char* source
) OVERRIDE
;
636 virtual void PostSubBufferCHROMIUM(GLint x
,
639 GLint height
) OVERRIDE
;
641 virtual void TexImageIOSurface2DCHROMIUM(GLenum target
,
645 GLuint plane
) OVERRIDE
;
647 virtual void CopyTextureCHROMIUM(GLenum target
,
651 GLint internalformat
,
652 GLenum dest_type
) OVERRIDE
;
654 virtual void DrawArraysInstancedANGLE(GLenum mode
,
657 GLsizei primcount
) OVERRIDE
;
659 virtual void DrawElementsInstancedANGLE(GLenum mode
,
663 GLsizei primcount
) OVERRIDE
;
665 virtual void VertexAttribDivisorANGLE(GLuint index
, GLuint divisor
) OVERRIDE
;
667 virtual void GenMailboxCHROMIUM(GLbyte
* mailbox
) OVERRIDE
;
669 virtual void ProduceTextureCHROMIUM(GLenum target
,
670 const GLbyte
* mailbox
) OVERRIDE
;
672 virtual void ProduceTextureDirectCHROMIUM(GLuint texture
,
674 const GLbyte
* mailbox
) OVERRIDE
;
676 virtual void ConsumeTextureCHROMIUM(GLenum target
,
677 const GLbyte
* mailbox
) OVERRIDE
;
679 virtual GLuint
CreateAndConsumeTextureCHROMIUM(GLenum target
,
680 const GLbyte
* mailbox
) OVERRIDE
;
682 virtual void BindUniformLocationCHROMIUM(GLuint program
,
684 const char* name
) OVERRIDE
;
686 virtual void BindTexImage2DCHROMIUM(GLenum target
, GLint imageId
) OVERRIDE
;
688 virtual void ReleaseTexImage2DCHROMIUM(GLenum target
, GLint imageId
) OVERRIDE
;
690 virtual void TraceBeginCHROMIUM(const char* name
) OVERRIDE
;
692 virtual void TraceEndCHROMIUM() OVERRIDE
;
694 virtual void AsyncTexSubImage2DCHROMIUM(GLenum target
,
702 const void* data
) OVERRIDE
;
704 virtual void AsyncTexImage2DCHROMIUM(GLenum target
,
706 GLenum internalformat
,
712 const void* pixels
) OVERRIDE
;
714 virtual void WaitAsyncTexImage2DCHROMIUM(GLenum target
) OVERRIDE
;
716 virtual void WaitAllAsyncTexImage2DCHROMIUM() OVERRIDE
;
718 virtual void DiscardFramebufferEXT(GLenum target
,
720 const GLenum
* attachments
) OVERRIDE
;
722 virtual void LoseContextCHROMIUM(GLenum current
, GLenum other
) OVERRIDE
;
724 virtual GLuint
InsertSyncPointCHROMIUM() OVERRIDE
;
726 virtual void WaitSyncPointCHROMIUM(GLuint sync_point
) OVERRIDE
;
728 virtual void DrawBuffersEXT(GLsizei count
, const GLenum
* bufs
) OVERRIDE
;
730 virtual void DiscardBackbufferCHROMIUM() OVERRIDE
;
732 virtual void ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order
,
733 GLenum plane_transform
,
734 GLuint overlay_texture_id
,
742 GLfloat uv_height
) OVERRIDE
;
744 virtual void MatrixLoadfCHROMIUM(GLenum matrixMode
, const GLfloat
* m
) OVERRIDE
;
746 virtual void MatrixLoadIdentityCHROMIUM(GLenum matrixMode
) OVERRIDE
;
748 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_AUTOGEN_H_