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_interface_stub.h.
12 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_STUB_AUTOGEN_H_
13 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_STUB_AUTOGEN_H_
15 virtual void ActiveTexture(GLenum texture
) OVERRIDE
;
16 virtual void AttachShader(GLuint program
, GLuint shader
) OVERRIDE
;
17 virtual void BindAttribLocation(GLuint program
,
19 const char* name
) OVERRIDE
;
20 virtual void BindBuffer(GLenum target
, GLuint buffer
) OVERRIDE
;
21 virtual void BindFramebuffer(GLenum target
, GLuint framebuffer
) OVERRIDE
;
22 virtual void BindRenderbuffer(GLenum target
, GLuint renderbuffer
) OVERRIDE
;
23 virtual void BindTexture(GLenum target
, GLuint texture
) OVERRIDE
;
24 virtual void BlendColor(GLclampf red
,
27 GLclampf alpha
) OVERRIDE
;
28 virtual void BlendEquation(GLenum mode
) OVERRIDE
;
29 virtual void BlendEquationSeparate(GLenum modeRGB
, GLenum modeAlpha
) OVERRIDE
;
30 virtual void BlendFunc(GLenum sfactor
, GLenum dfactor
) OVERRIDE
;
31 virtual void BlendFuncSeparate(GLenum srcRGB
,
34 GLenum dstAlpha
) OVERRIDE
;
35 virtual void BufferData(GLenum target
,
38 GLenum usage
) OVERRIDE
;
39 virtual void BufferSubData(GLenum target
,
42 const void* data
) OVERRIDE
;
43 virtual GLenum
CheckFramebufferStatus(GLenum target
) OVERRIDE
;
44 virtual void Clear(GLbitfield mask
) OVERRIDE
;
45 virtual void ClearColor(GLclampf red
,
48 GLclampf alpha
) OVERRIDE
;
49 virtual void ClearDepthf(GLclampf depth
) OVERRIDE
;
50 virtual void ClearStencil(GLint s
) OVERRIDE
;
51 virtual void ColorMask(GLboolean red
,
54 GLboolean alpha
) OVERRIDE
;
55 virtual void CompileShader(GLuint shader
) OVERRIDE
;
56 virtual void CompressedTexImage2D(GLenum target
,
58 GLenum internalformat
,
63 const void* data
) OVERRIDE
;
64 virtual void CompressedTexSubImage2D(GLenum target
,
72 const void* data
) OVERRIDE
;
73 virtual void CopyTexImage2D(GLenum target
,
75 GLenum internalformat
,
80 GLint border
) OVERRIDE
;
81 virtual void CopyTexSubImage2D(GLenum target
,
88 GLsizei height
) OVERRIDE
;
89 virtual GLuint
CreateProgram() OVERRIDE
;
90 virtual GLuint
CreateShader(GLenum type
) OVERRIDE
;
91 virtual void CullFace(GLenum mode
) OVERRIDE
;
92 virtual void DeleteBuffers(GLsizei n
, const GLuint
* buffers
) OVERRIDE
;
93 virtual void DeleteFramebuffers(GLsizei n
, const GLuint
* framebuffers
) OVERRIDE
;
94 virtual void DeleteProgram(GLuint program
) OVERRIDE
;
95 virtual void DeleteRenderbuffers(GLsizei n
,
96 const GLuint
* renderbuffers
) OVERRIDE
;
97 virtual void DeleteShader(GLuint shader
) OVERRIDE
;
98 virtual void DeleteTextures(GLsizei n
, const GLuint
* textures
) OVERRIDE
;
99 virtual void DepthFunc(GLenum func
) OVERRIDE
;
100 virtual void DepthMask(GLboolean flag
) OVERRIDE
;
101 virtual void DepthRangef(GLclampf zNear
, GLclampf zFar
) OVERRIDE
;
102 virtual void DetachShader(GLuint program
, GLuint shader
) OVERRIDE
;
103 virtual void Disable(GLenum cap
) OVERRIDE
;
104 virtual void DisableVertexAttribArray(GLuint index
) OVERRIDE
;
105 virtual void DrawArrays(GLenum mode
, GLint first
, GLsizei count
) OVERRIDE
;
106 virtual void DrawElements(GLenum mode
,
109 const void* indices
) OVERRIDE
;
110 virtual void Enable(GLenum cap
) OVERRIDE
;
111 virtual void EnableVertexAttribArray(GLuint index
) OVERRIDE
;
112 virtual void Finish() OVERRIDE
;
113 virtual void Flush() OVERRIDE
;
114 virtual void FramebufferRenderbuffer(GLenum target
,
116 GLenum renderbuffertarget
,
117 GLuint renderbuffer
) OVERRIDE
;
118 virtual void FramebufferTexture2D(GLenum target
,
122 GLint level
) OVERRIDE
;
123 virtual void FrontFace(GLenum mode
) OVERRIDE
;
124 virtual void GenBuffers(GLsizei n
, GLuint
* buffers
) OVERRIDE
;
125 virtual void GenerateMipmap(GLenum target
) OVERRIDE
;
126 virtual void GenFramebuffers(GLsizei n
, GLuint
* framebuffers
) OVERRIDE
;
127 virtual void GenRenderbuffers(GLsizei n
, GLuint
* renderbuffers
) OVERRIDE
;
128 virtual void GenTextures(GLsizei n
, GLuint
* textures
) OVERRIDE
;
129 virtual void GetActiveAttrib(GLuint program
,
135 char* name
) OVERRIDE
;
136 virtual void GetActiveUniform(GLuint program
,
142 char* name
) OVERRIDE
;
143 virtual void GetAttachedShaders(GLuint program
,
146 GLuint
* shaders
) OVERRIDE
;
147 virtual GLint
GetAttribLocation(GLuint program
, const char* name
) OVERRIDE
;
148 virtual void GetBooleanv(GLenum pname
, GLboolean
* params
) OVERRIDE
;
149 virtual void GetBufferParameteriv(GLenum target
,
151 GLint
* params
) OVERRIDE
;
152 virtual GLenum
GetError() OVERRIDE
;
153 virtual void GetFloatv(GLenum pname
, GLfloat
* params
) OVERRIDE
;
154 virtual void GetFramebufferAttachmentParameteriv(GLenum target
,
157 GLint
* params
) OVERRIDE
;
158 virtual void GetIntegerv(GLenum pname
, GLint
* params
) OVERRIDE
;
159 virtual void GetProgramiv(GLuint program
, GLenum pname
, GLint
* params
) OVERRIDE
;
160 virtual void GetProgramInfoLog(GLuint program
,
163 char* infolog
) OVERRIDE
;
164 virtual void GetRenderbufferParameteriv(GLenum target
,
166 GLint
* params
) OVERRIDE
;
167 virtual void GetShaderiv(GLuint shader
, GLenum pname
, GLint
* params
) OVERRIDE
;
168 virtual void GetShaderInfoLog(GLuint shader
,
171 char* infolog
) OVERRIDE
;
172 virtual void GetShaderPrecisionFormat(GLenum shadertype
,
173 GLenum precisiontype
,
175 GLint
* precision
) OVERRIDE
;
176 virtual void GetShaderSource(GLuint shader
,
179 char* source
) OVERRIDE
;
180 virtual const GLubyte
* GetString(GLenum name
) OVERRIDE
;
181 virtual void GetTexParameterfv(GLenum target
,
183 GLfloat
* params
) OVERRIDE
;
184 virtual void GetTexParameteriv(GLenum target
,
186 GLint
* params
) OVERRIDE
;
187 virtual void GetUniformfv(GLuint program
,
189 GLfloat
* params
) OVERRIDE
;
190 virtual void GetUniformiv(GLuint program
,
192 GLint
* params
) OVERRIDE
;
193 virtual GLint
GetUniformLocation(GLuint program
, const char* name
) OVERRIDE
;
194 virtual void GetVertexAttribfv(GLuint index
,
196 GLfloat
* params
) OVERRIDE
;
197 virtual void GetVertexAttribiv(GLuint index
,
199 GLint
* params
) OVERRIDE
;
200 virtual void GetVertexAttribPointerv(GLuint index
,
202 void** pointer
) OVERRIDE
;
203 virtual void Hint(GLenum target
, GLenum mode
) OVERRIDE
;
204 virtual GLboolean
IsBuffer(GLuint buffer
) OVERRIDE
;
205 virtual GLboolean
IsEnabled(GLenum cap
) OVERRIDE
;
206 virtual GLboolean
IsFramebuffer(GLuint framebuffer
) OVERRIDE
;
207 virtual GLboolean
IsProgram(GLuint program
) OVERRIDE
;
208 virtual GLboolean
IsRenderbuffer(GLuint renderbuffer
) OVERRIDE
;
209 virtual GLboolean
IsShader(GLuint shader
) OVERRIDE
;
210 virtual GLboolean
IsTexture(GLuint texture
) OVERRIDE
;
211 virtual void LineWidth(GLfloat width
) OVERRIDE
;
212 virtual void LinkProgram(GLuint program
) OVERRIDE
;
213 virtual void PixelStorei(GLenum pname
, GLint param
) OVERRIDE
;
214 virtual void PolygonOffset(GLfloat factor
, GLfloat units
) OVERRIDE
;
215 virtual void ReadPixels(GLint x
,
221 void* pixels
) OVERRIDE
;
222 virtual void ReleaseShaderCompiler() OVERRIDE
;
223 virtual void RenderbufferStorage(GLenum target
,
224 GLenum internalformat
,
226 GLsizei height
) OVERRIDE
;
227 virtual void SampleCoverage(GLclampf value
, GLboolean invert
) OVERRIDE
;
228 virtual void Scissor(GLint x
, GLint y
, GLsizei width
, GLsizei height
) OVERRIDE
;
229 virtual void ShaderBinary(GLsizei n
,
230 const GLuint
* shaders
,
233 GLsizei length
) OVERRIDE
;
234 virtual void ShaderSource(GLuint shader
,
236 const GLchar
* const* str
,
237 const GLint
* length
) OVERRIDE
;
238 virtual void ShallowFinishCHROMIUM() OVERRIDE
;
239 virtual void ShallowFlushCHROMIUM() OVERRIDE
;
240 virtual void StencilFunc(GLenum func
, GLint ref
, GLuint mask
) OVERRIDE
;
241 virtual void StencilFuncSeparate(GLenum face
,
244 GLuint mask
) OVERRIDE
;
245 virtual void StencilMask(GLuint mask
) OVERRIDE
;
246 virtual void StencilMaskSeparate(GLenum face
, GLuint mask
) OVERRIDE
;
247 virtual void StencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
) OVERRIDE
;
248 virtual void StencilOpSeparate(GLenum face
,
251 GLenum zpass
) OVERRIDE
;
252 virtual void TexImage2D(GLenum target
,
254 GLint internalformat
,
260 const void* pixels
) OVERRIDE
;
261 virtual void TexParameterf(GLenum target
, GLenum pname
, GLfloat param
) OVERRIDE
;
262 virtual void TexParameterfv(GLenum target
,
264 const GLfloat
* params
) OVERRIDE
;
265 virtual void TexParameteri(GLenum target
, GLenum pname
, GLint param
) OVERRIDE
;
266 virtual void TexParameteriv(GLenum target
,
268 const GLint
* params
) OVERRIDE
;
269 virtual void TexSubImage2D(GLenum target
,
277 const void* pixels
) OVERRIDE
;
278 virtual void Uniform1f(GLint location
, GLfloat x
) OVERRIDE
;
279 virtual void Uniform1fv(GLint location
,
281 const GLfloat
* v
) OVERRIDE
;
282 virtual void Uniform1i(GLint location
, GLint x
) OVERRIDE
;
283 virtual void Uniform1iv(GLint location
, GLsizei count
, const GLint
* v
) OVERRIDE
;
284 virtual void Uniform2f(GLint location
, GLfloat x
, GLfloat y
) OVERRIDE
;
285 virtual void Uniform2fv(GLint location
,
287 const GLfloat
* v
) OVERRIDE
;
288 virtual void Uniform2i(GLint location
, GLint x
, GLint y
) OVERRIDE
;
289 virtual void Uniform2iv(GLint location
, GLsizei count
, const GLint
* v
) OVERRIDE
;
290 virtual void Uniform3f(GLint location
,
294 virtual void Uniform3fv(GLint location
,
296 const GLfloat
* v
) OVERRIDE
;
297 virtual void Uniform3i(GLint location
, GLint x
, GLint y
, GLint z
) OVERRIDE
;
298 virtual void Uniform3iv(GLint location
, GLsizei count
, const GLint
* v
) OVERRIDE
;
299 virtual void Uniform4f(GLint location
,
304 virtual void Uniform4fv(GLint location
,
306 const GLfloat
* v
) OVERRIDE
;
307 virtual void Uniform4i(GLint location
,
312 virtual void Uniform4iv(GLint location
, GLsizei count
, const GLint
* v
) OVERRIDE
;
313 virtual void UniformMatrix2fv(GLint location
,
316 const GLfloat
* value
) OVERRIDE
;
317 virtual void UniformMatrix3fv(GLint location
,
320 const GLfloat
* value
) OVERRIDE
;
321 virtual void UniformMatrix4fv(GLint location
,
324 const GLfloat
* value
) OVERRIDE
;
325 virtual void UseProgram(GLuint program
) OVERRIDE
;
326 virtual void ValidateProgram(GLuint program
) OVERRIDE
;
327 virtual void VertexAttrib1f(GLuint indx
, GLfloat x
) OVERRIDE
;
328 virtual void VertexAttrib1fv(GLuint indx
, const GLfloat
* values
) OVERRIDE
;
329 virtual void VertexAttrib2f(GLuint indx
, GLfloat x
, GLfloat y
) OVERRIDE
;
330 virtual void VertexAttrib2fv(GLuint indx
, const GLfloat
* values
) OVERRIDE
;
331 virtual void VertexAttrib3f(GLuint indx
,
335 virtual void VertexAttrib3fv(GLuint indx
, const GLfloat
* values
) OVERRIDE
;
336 virtual void VertexAttrib4f(GLuint indx
,
341 virtual void VertexAttrib4fv(GLuint indx
, const GLfloat
* values
) OVERRIDE
;
342 virtual void VertexAttribPointer(GLuint indx
,
345 GLboolean normalized
,
347 const void* ptr
) OVERRIDE
;
348 virtual void Viewport(GLint x
, GLint y
, GLsizei width
, GLsizei height
) OVERRIDE
;
349 virtual void BlitFramebufferCHROMIUM(GLint srcX0
,
358 GLenum filter
) OVERRIDE
;
359 virtual void RenderbufferStorageMultisampleCHROMIUM(GLenum target
,
361 GLenum internalformat
,
363 GLsizei height
) OVERRIDE
;
364 virtual void RenderbufferStorageMultisampleEXT(GLenum target
,
366 GLenum internalformat
,
368 GLsizei height
) OVERRIDE
;
369 virtual void FramebufferTexture2DMultisampleEXT(GLenum target
,
374 GLsizei samples
) OVERRIDE
;
375 virtual void TexStorage2DEXT(GLenum target
,
377 GLenum internalFormat
,
379 GLsizei height
) OVERRIDE
;
380 virtual void GenQueriesEXT(GLsizei n
, GLuint
* queries
) OVERRIDE
;
381 virtual void DeleteQueriesEXT(GLsizei n
, const GLuint
* queries
) OVERRIDE
;
382 virtual GLboolean
IsQueryEXT(GLuint id
) OVERRIDE
;
383 virtual void BeginQueryEXT(GLenum target
, GLuint id
) OVERRIDE
;
384 virtual void EndQueryEXT(GLenum target
) OVERRIDE
;
385 virtual void GetQueryivEXT(GLenum target
, GLenum pname
, GLint
* params
) OVERRIDE
;
386 virtual void GetQueryObjectuivEXT(GLuint id
,
388 GLuint
* params
) OVERRIDE
;
389 virtual void InsertEventMarkerEXT(GLsizei length
,
390 const GLchar
* marker
) OVERRIDE
;
391 virtual void PushGroupMarkerEXT(GLsizei length
, const GLchar
* marker
) OVERRIDE
;
392 virtual void PopGroupMarkerEXT() OVERRIDE
;
393 virtual void GenVertexArraysOES(GLsizei n
, GLuint
* arrays
) OVERRIDE
;
394 virtual void DeleteVertexArraysOES(GLsizei n
, const GLuint
* arrays
) OVERRIDE
;
395 virtual GLboolean
IsVertexArrayOES(GLuint array
) OVERRIDE
;
396 virtual void BindVertexArrayOES(GLuint array
) OVERRIDE
;
397 virtual void SwapBuffers() OVERRIDE
;
398 virtual GLuint
GetMaxValueInBufferCHROMIUM(GLuint buffer_id
,
401 GLuint offset
) OVERRIDE
;
402 virtual void GenSharedIdsCHROMIUM(GLuint namespace_id
,
405 GLuint
* ids
) OVERRIDE
;
406 virtual void DeleteSharedIdsCHROMIUM(GLuint namespace_id
,
408 const GLuint
* ids
) OVERRIDE
;
409 virtual void RegisterSharedIdsCHROMIUM(GLuint namespace_id
,
411 const GLuint
* ids
) OVERRIDE
;
412 virtual GLboolean
EnableFeatureCHROMIUM(const char* feature
) OVERRIDE
;
413 virtual void* MapBufferCHROMIUM(GLuint target
, GLenum access
) OVERRIDE
;
414 virtual GLboolean
UnmapBufferCHROMIUM(GLuint target
) OVERRIDE
;
415 virtual void* MapImageCHROMIUM(GLuint image_id
) OVERRIDE
;
416 virtual void UnmapImageCHROMIUM(GLuint image_id
) OVERRIDE
;
417 virtual void* MapBufferSubDataCHROMIUM(GLuint target
,
420 GLenum access
) OVERRIDE
;
421 virtual void UnmapBufferSubDataCHROMIUM(const void* mem
) OVERRIDE
;
422 virtual void* MapTexSubImage2DCHROMIUM(GLenum target
,
430 GLenum access
) OVERRIDE
;
431 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem
) OVERRIDE
;
432 virtual void ResizeCHROMIUM(GLuint width
,
434 GLfloat scale_factor
) OVERRIDE
;
435 virtual const GLchar
* GetRequestableExtensionsCHROMIUM() OVERRIDE
;
436 virtual void RequestExtensionCHROMIUM(const char* extension
) OVERRIDE
;
437 virtual void RateLimitOffscreenContextCHROMIUM() OVERRIDE
;
438 virtual void GetMultipleIntegervCHROMIUM(const GLenum
* pnames
,
441 GLsizeiptr size
) OVERRIDE
;
442 virtual void GetProgramInfoCHROMIUM(GLuint program
,
445 void* info
) OVERRIDE
;
446 virtual GLuint
CreateStreamTextureCHROMIUM(GLuint texture
) OVERRIDE
;
447 virtual GLuint
CreateImageCHROMIUM(GLsizei width
,
449 GLenum internalformat
,
450 GLenum usage
) OVERRIDE
;
451 virtual void DestroyImageCHROMIUM(GLuint image_id
) OVERRIDE
;
452 virtual void GetImageParameterivCHROMIUM(GLuint image_id
,
454 GLint
* params
) OVERRIDE
;
455 virtual void GetTranslatedShaderSourceANGLE(GLuint shader
,
458 char* source
) OVERRIDE
;
459 virtual void PostSubBufferCHROMIUM(GLint x
,
462 GLint height
) OVERRIDE
;
463 virtual void TexImageIOSurface2DCHROMIUM(GLenum target
,
467 GLuint plane
) OVERRIDE
;
468 virtual void CopyTextureCHROMIUM(GLenum target
,
472 GLint internalformat
,
473 GLenum dest_type
) OVERRIDE
;
474 virtual void DrawArraysInstancedANGLE(GLenum mode
,
477 GLsizei primcount
) OVERRIDE
;
478 virtual void DrawElementsInstancedANGLE(GLenum mode
,
482 GLsizei primcount
) OVERRIDE
;
483 virtual void VertexAttribDivisorANGLE(GLuint index
, GLuint divisor
) OVERRIDE
;
484 virtual void GenMailboxCHROMIUM(GLbyte
* mailbox
) OVERRIDE
;
485 virtual void ProduceTextureCHROMIUM(GLenum target
,
486 const GLbyte
* mailbox
) OVERRIDE
;
487 virtual void ProduceTextureDirectCHROMIUM(GLuint texture
,
489 const GLbyte
* mailbox
) OVERRIDE
;
490 virtual void ConsumeTextureCHROMIUM(GLenum target
,
491 const GLbyte
* mailbox
) OVERRIDE
;
492 virtual GLuint
CreateAndConsumeTextureCHROMIUM(GLenum target
,
493 const GLbyte
* mailbox
) OVERRIDE
;
494 virtual void BindUniformLocationCHROMIUM(GLuint program
,
496 const char* name
) OVERRIDE
;
497 virtual void BindTexImage2DCHROMIUM(GLenum target
, GLint imageId
) OVERRIDE
;
498 virtual void ReleaseTexImage2DCHROMIUM(GLenum target
, GLint imageId
) OVERRIDE
;
499 virtual void TraceBeginCHROMIUM(const char* name
) OVERRIDE
;
500 virtual void TraceEndCHROMIUM() OVERRIDE
;
501 virtual void AsyncTexSubImage2DCHROMIUM(GLenum target
,
509 const void* data
) OVERRIDE
;
510 virtual void AsyncTexImage2DCHROMIUM(GLenum target
,
512 GLenum internalformat
,
518 const void* pixels
) OVERRIDE
;
519 virtual void WaitAsyncTexImage2DCHROMIUM(GLenum target
) OVERRIDE
;
520 virtual void WaitAllAsyncTexImage2DCHROMIUM() OVERRIDE
;
521 virtual void DiscardFramebufferEXT(GLenum target
,
523 const GLenum
* attachments
) OVERRIDE
;
524 virtual void LoseContextCHROMIUM(GLenum current
, GLenum other
) OVERRIDE
;
525 virtual GLuint
InsertSyncPointCHROMIUM() OVERRIDE
;
526 virtual void WaitSyncPointCHROMIUM(GLuint sync_point
) OVERRIDE
;
527 virtual void DrawBuffersEXT(GLsizei count
, const GLenum
* bufs
) OVERRIDE
;
528 virtual void DiscardBackbufferCHROMIUM() OVERRIDE
;
529 virtual void ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order
,
530 GLenum plane_transform
,
531 GLuint overlay_texture_id
,
539 GLfloat uv_height
) OVERRIDE
;
540 virtual void MatrixLoadfCHROMIUM(GLenum matrixMode
, const GLfloat
* m
) OVERRIDE
;
541 virtual void MatrixLoadIdentityCHROMIUM(GLenum matrixMode
) OVERRIDE
;
542 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_INTERFACE_STUB_AUTOGEN_H_