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_trace_implementation.h
12 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_AUTOGEN_H_
13 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_AUTOGEN_H_
15 void ActiveTexture(GLenum texture
) override
;
16 void AttachShader(GLuint program
, GLuint shader
) override
;
17 void BindAttribLocation(GLuint program
,
19 const char* name
) override
;
20 void BindBuffer(GLenum target
, GLuint buffer
) override
;
21 void BindFramebuffer(GLenum target
, GLuint framebuffer
) override
;
22 void BindRenderbuffer(GLenum target
, GLuint renderbuffer
) override
;
23 void BindTexture(GLenum target
, GLuint texture
) override
;
24 void BlendColor(GLclampf red
,
27 GLclampf alpha
) override
;
28 void BlendEquation(GLenum mode
) override
;
29 void BlendEquationSeparate(GLenum modeRGB
, GLenum modeAlpha
) override
;
30 void BlendFunc(GLenum sfactor
, GLenum dfactor
) override
;
31 void BlendFuncSeparate(GLenum srcRGB
,
34 GLenum dstAlpha
) override
;
35 void BufferData(GLenum target
,
38 GLenum usage
) override
;
39 void BufferSubData(GLenum target
,
42 const void* data
) override
;
43 GLenum
CheckFramebufferStatus(GLenum target
) override
;
44 void Clear(GLbitfield mask
) override
;
45 void ClearColor(GLclampf red
,
48 GLclampf alpha
) override
;
49 void ClearDepthf(GLclampf depth
) override
;
50 void ClearStencil(GLint s
) override
;
51 void ColorMask(GLboolean red
,
54 GLboolean alpha
) override
;
55 void CompileShader(GLuint shader
) override
;
56 void CompressedTexImage2D(GLenum target
,
58 GLenum internalformat
,
63 const void* data
) override
;
64 void CompressedTexSubImage2D(GLenum target
,
72 const void* data
) override
;
73 void CopyTexImage2D(GLenum target
,
75 GLenum internalformat
,
80 GLint border
) override
;
81 void CopyTexSubImage2D(GLenum target
,
88 GLsizei height
) override
;
89 GLuint
CreateProgram() override
;
90 GLuint
CreateShader(GLenum type
) override
;
91 void CullFace(GLenum mode
) override
;
92 void DeleteBuffers(GLsizei n
, const GLuint
* buffers
) override
;
93 void DeleteFramebuffers(GLsizei n
, const GLuint
* framebuffers
) override
;
94 void DeleteProgram(GLuint program
) override
;
95 void DeleteRenderbuffers(GLsizei n
, const GLuint
* renderbuffers
) override
;
96 void DeleteShader(GLuint shader
) override
;
97 void DeleteTextures(GLsizei n
, const GLuint
* textures
) override
;
98 void DepthFunc(GLenum func
) override
;
99 void DepthMask(GLboolean flag
) override
;
100 void DepthRangef(GLclampf zNear
, GLclampf zFar
) override
;
101 void DetachShader(GLuint program
, GLuint shader
) override
;
102 void Disable(GLenum cap
) override
;
103 void DisableVertexAttribArray(GLuint index
) override
;
104 void DrawArrays(GLenum mode
, GLint first
, GLsizei count
) override
;
105 void DrawElements(GLenum mode
,
108 const void* indices
) override
;
109 void Enable(GLenum cap
) override
;
110 void EnableVertexAttribArray(GLuint index
) override
;
111 void Finish() override
;
112 void Flush() override
;
113 void FramebufferRenderbuffer(GLenum target
,
115 GLenum renderbuffertarget
,
116 GLuint renderbuffer
) override
;
117 void FramebufferTexture2D(GLenum target
,
121 GLint level
) override
;
122 void FrontFace(GLenum mode
) override
;
123 void GenBuffers(GLsizei n
, GLuint
* buffers
) override
;
124 void GenerateMipmap(GLenum target
) override
;
125 void GenFramebuffers(GLsizei n
, GLuint
* framebuffers
) override
;
126 void GenRenderbuffers(GLsizei n
, GLuint
* renderbuffers
) override
;
127 void GenTextures(GLsizei n
, GLuint
* textures
) override
;
128 void GetActiveAttrib(GLuint program
,
134 char* name
) override
;
135 void GetActiveUniform(GLuint program
,
141 char* name
) override
;
142 void GetAttachedShaders(GLuint program
,
145 GLuint
* shaders
) override
;
146 GLint
GetAttribLocation(GLuint program
, const char* name
) override
;
147 void GetBooleanv(GLenum pname
, GLboolean
* params
) override
;
148 void GetBufferParameteriv(GLenum target
, GLenum pname
, GLint
* params
) override
;
149 GLenum
GetError() override
;
150 void GetFloatv(GLenum pname
, GLfloat
* params
) override
;
151 void GetFramebufferAttachmentParameteriv(GLenum target
,
154 GLint
* params
) override
;
155 void GetIntegerv(GLenum pname
, GLint
* params
) override
;
156 void GetProgramiv(GLuint program
, GLenum pname
, GLint
* params
) override
;
157 void GetProgramInfoLog(GLuint program
,
160 char* infolog
) override
;
161 void GetRenderbufferParameteriv(GLenum target
,
163 GLint
* params
) override
;
164 void GetShaderiv(GLuint shader
, GLenum pname
, GLint
* params
) override
;
165 void GetShaderInfoLog(GLuint shader
,
168 char* infolog
) override
;
169 void GetShaderPrecisionFormat(GLenum shadertype
,
170 GLenum precisiontype
,
172 GLint
* precision
) override
;
173 void GetShaderSource(GLuint shader
,
176 char* source
) override
;
177 const GLubyte
* GetString(GLenum name
) override
;
178 void GetTexParameterfv(GLenum target
, GLenum pname
, GLfloat
* params
) override
;
179 void GetTexParameteriv(GLenum target
, GLenum pname
, GLint
* params
) override
;
180 void GetUniformfv(GLuint program
, GLint location
, GLfloat
* params
) override
;
181 void GetUniformiv(GLuint program
, GLint location
, GLint
* params
) override
;
182 GLint
GetUniformLocation(GLuint program
, const char* name
) override
;
183 void GetVertexAttribfv(GLuint index
, GLenum pname
, GLfloat
* params
) override
;
184 void GetVertexAttribiv(GLuint index
, GLenum pname
, GLint
* params
) override
;
185 void GetVertexAttribPointerv(GLuint index
,
187 void** pointer
) override
;
188 void Hint(GLenum target
, GLenum mode
) override
;
189 GLboolean
IsBuffer(GLuint buffer
) override
;
190 GLboolean
IsEnabled(GLenum cap
) override
;
191 GLboolean
IsFramebuffer(GLuint framebuffer
) override
;
192 GLboolean
IsProgram(GLuint program
) override
;
193 GLboolean
IsRenderbuffer(GLuint renderbuffer
) override
;
194 GLboolean
IsShader(GLuint shader
) override
;
195 GLboolean
IsTexture(GLuint texture
) override
;
196 void LineWidth(GLfloat width
) override
;
197 void LinkProgram(GLuint program
) override
;
198 void PixelStorei(GLenum pname
, GLint param
) override
;
199 void PolygonOffset(GLfloat factor
, GLfloat units
) override
;
200 void ReadPixels(GLint x
,
206 void* pixels
) override
;
207 void ReleaseShaderCompiler() override
;
208 void RenderbufferStorage(GLenum target
,
209 GLenum internalformat
,
211 GLsizei height
) override
;
212 void SampleCoverage(GLclampf value
, GLboolean invert
) override
;
213 void Scissor(GLint x
, GLint y
, GLsizei width
, GLsizei height
) override
;
214 void ShaderBinary(GLsizei n
,
215 const GLuint
* shaders
,
218 GLsizei length
) override
;
219 void ShaderSource(GLuint shader
,
221 const GLchar
* const* str
,
222 const GLint
* length
) override
;
223 void ShallowFinishCHROMIUM() override
;
224 void ShallowFlushCHROMIUM() override
;
225 void StencilFunc(GLenum func
, GLint ref
, GLuint mask
) override
;
226 void StencilFuncSeparate(GLenum face
,
229 GLuint mask
) override
;
230 void StencilMask(GLuint mask
) override
;
231 void StencilMaskSeparate(GLenum face
, GLuint mask
) override
;
232 void StencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
) override
;
233 void StencilOpSeparate(GLenum face
,
236 GLenum zpass
) override
;
237 void TexImage2D(GLenum target
,
239 GLint internalformat
,
245 const void* pixels
) override
;
246 void TexParameterf(GLenum target
, GLenum pname
, GLfloat param
) override
;
247 void TexParameterfv(GLenum target
,
249 const GLfloat
* params
) override
;
250 void TexParameteri(GLenum target
, GLenum pname
, GLint param
) override
;
251 void TexParameteriv(GLenum target
, GLenum pname
, const GLint
* params
) override
;
252 void TexSubImage2D(GLenum target
,
260 const void* pixels
) override
;
261 void Uniform1f(GLint location
, GLfloat x
) override
;
262 void Uniform1fv(GLint location
, GLsizei count
, const GLfloat
* v
) override
;
263 void Uniform1i(GLint location
, GLint x
) override
;
264 void Uniform1iv(GLint location
, GLsizei count
, const GLint
* v
) override
;
265 void Uniform2f(GLint location
, GLfloat x
, GLfloat y
) override
;
266 void Uniform2fv(GLint location
, GLsizei count
, const GLfloat
* v
) override
;
267 void Uniform2i(GLint location
, GLint x
, GLint y
) override
;
268 void Uniform2iv(GLint location
, GLsizei count
, const GLint
* v
) override
;
269 void Uniform3f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
) override
;
270 void Uniform3fv(GLint location
, GLsizei count
, const GLfloat
* v
) override
;
271 void Uniform3i(GLint location
, GLint x
, GLint y
, GLint z
) override
;
272 void Uniform3iv(GLint location
, GLsizei count
, const GLint
* v
) override
;
273 void Uniform4f(GLint location
,
278 void Uniform4fv(GLint location
, GLsizei count
, const GLfloat
* v
) override
;
279 void Uniform4i(GLint location
, GLint x
, GLint y
, GLint z
, GLint w
) override
;
280 void Uniform4iv(GLint location
, GLsizei count
, const GLint
* v
) override
;
281 void UniformMatrix2fv(GLint location
,
284 const GLfloat
* value
) override
;
285 void UniformMatrix3fv(GLint location
,
288 const GLfloat
* value
) override
;
289 void UniformMatrix4fv(GLint location
,
292 const GLfloat
* value
) override
;
293 void UseProgram(GLuint program
) override
;
294 void ValidateProgram(GLuint program
) override
;
295 void VertexAttrib1f(GLuint indx
, GLfloat x
) override
;
296 void VertexAttrib1fv(GLuint indx
, const GLfloat
* values
) override
;
297 void VertexAttrib2f(GLuint indx
, GLfloat x
, GLfloat y
) override
;
298 void VertexAttrib2fv(GLuint indx
, const GLfloat
* values
) override
;
299 void VertexAttrib3f(GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
) override
;
300 void VertexAttrib3fv(GLuint indx
, const GLfloat
* values
) override
;
301 void VertexAttrib4f(GLuint indx
,
306 void VertexAttrib4fv(GLuint indx
, const GLfloat
* values
) override
;
307 void VertexAttribPointer(GLuint indx
,
310 GLboolean normalized
,
312 const void* ptr
) override
;
313 void Viewport(GLint x
, GLint y
, GLsizei width
, GLsizei height
) override
;
314 void BlitFramebufferCHROMIUM(GLint srcX0
,
323 GLenum filter
) override
;
324 void RenderbufferStorageMultisampleCHROMIUM(GLenum target
,
326 GLenum internalformat
,
328 GLsizei height
) override
;
329 void RenderbufferStorageMultisampleEXT(GLenum target
,
331 GLenum internalformat
,
333 GLsizei height
) override
;
334 void FramebufferTexture2DMultisampleEXT(GLenum target
,
339 GLsizei samples
) override
;
340 void TexStorage2DEXT(GLenum target
,
342 GLenum internalFormat
,
344 GLsizei height
) override
;
345 void GenQueriesEXT(GLsizei n
, GLuint
* queries
) override
;
346 void DeleteQueriesEXT(GLsizei n
, const GLuint
* queries
) override
;
347 GLboolean
IsQueryEXT(GLuint id
) override
;
348 void BeginQueryEXT(GLenum target
, GLuint id
) override
;
349 void EndQueryEXT(GLenum target
) override
;
350 void GetQueryivEXT(GLenum target
, GLenum pname
, GLint
* params
) override
;
351 void GetQueryObjectuivEXT(GLuint id
, GLenum pname
, GLuint
* params
) override
;
352 void InsertEventMarkerEXT(GLsizei length
, const GLchar
* marker
) override
;
353 void PushGroupMarkerEXT(GLsizei length
, const GLchar
* marker
) override
;
354 void PopGroupMarkerEXT() override
;
355 void GenVertexArraysOES(GLsizei n
, GLuint
* arrays
) override
;
356 void DeleteVertexArraysOES(GLsizei n
, const GLuint
* arrays
) override
;
357 GLboolean
IsVertexArrayOES(GLuint array
) override
;
358 void BindVertexArrayOES(GLuint array
) override
;
359 void SwapBuffers() override
;
360 GLuint
GetMaxValueInBufferCHROMIUM(GLuint buffer_id
,
363 GLuint offset
) override
;
364 GLboolean
EnableFeatureCHROMIUM(const char* feature
) override
;
365 void* MapBufferCHROMIUM(GLuint target
, GLenum access
) override
;
366 GLboolean
UnmapBufferCHROMIUM(GLuint target
) override
;
367 void* MapBufferSubDataCHROMIUM(GLuint target
,
370 GLenum access
) override
;
371 void UnmapBufferSubDataCHROMIUM(const void* mem
) override
;
372 void* MapTexSubImage2DCHROMIUM(GLenum target
,
380 GLenum access
) override
;
381 void UnmapTexSubImage2DCHROMIUM(const void* mem
) override
;
382 void ResizeCHROMIUM(GLuint width
, GLuint height
, GLfloat scale_factor
) override
;
383 const GLchar
* GetRequestableExtensionsCHROMIUM() override
;
384 void RequestExtensionCHROMIUM(const char* extension
) override
;
385 void RateLimitOffscreenContextCHROMIUM() override
;
386 void GetProgramInfoCHROMIUM(GLuint program
,
389 void* info
) override
;
390 GLuint
CreateStreamTextureCHROMIUM(GLuint texture
) override
;
391 GLuint
CreateImageCHROMIUM(ClientBuffer buffer
,
394 GLenum internalformat
) override
;
395 void DestroyImageCHROMIUM(GLuint image_id
) override
;
396 GLuint
CreateGpuMemoryBufferImageCHROMIUM(GLsizei width
,
398 GLenum internalformat
,
399 GLenum usage
) override
;
400 void GetTranslatedShaderSourceANGLE(GLuint shader
,
403 char* source
) override
;
404 void PostSubBufferCHROMIUM(GLint x
,
407 GLint height
) override
;
408 void TexImageIOSurface2DCHROMIUM(GLenum target
,
412 GLuint plane
) override
;
413 void CopyTextureCHROMIUM(GLenum target
,
417 GLint internalformat
,
418 GLenum dest_type
) override
;
419 void DrawArraysInstancedANGLE(GLenum mode
,
422 GLsizei primcount
) override
;
423 void DrawElementsInstancedANGLE(GLenum mode
,
427 GLsizei primcount
) override
;
428 void VertexAttribDivisorANGLE(GLuint index
, GLuint divisor
) override
;
429 void GenMailboxCHROMIUM(GLbyte
* mailbox
) override
;
430 void ProduceTextureCHROMIUM(GLenum target
, const GLbyte
* mailbox
) override
;
431 void ProduceTextureDirectCHROMIUM(GLuint texture
,
433 const GLbyte
* mailbox
) override
;
434 void ConsumeTextureCHROMIUM(GLenum target
, const GLbyte
* mailbox
) override
;
435 GLuint
CreateAndConsumeTextureCHROMIUM(GLenum target
,
436 const GLbyte
* mailbox
) override
;
437 void BindUniformLocationCHROMIUM(GLuint program
,
439 const char* name
) override
;
440 void GenValuebuffersCHROMIUM(GLsizei n
, GLuint
* buffers
) override
;
441 void DeleteValuebuffersCHROMIUM(GLsizei n
, const GLuint
* valuebuffers
) override
;
442 GLboolean
IsValuebufferCHROMIUM(GLuint valuebuffer
) override
;
443 void BindValuebufferCHROMIUM(GLenum target
, GLuint valuebuffer
) override
;
444 void SubscribeValueCHROMIUM(GLenum target
, GLenum subscription
) override
;
445 void PopulateSubscribedValuesCHROMIUM(GLenum target
) override
;
446 void UniformValuebufferCHROMIUM(GLint location
,
448 GLenum subscription
) override
;
449 void BindTexImage2DCHROMIUM(GLenum target
, GLint imageId
) override
;
450 void ReleaseTexImage2DCHROMIUM(GLenum target
, GLint imageId
) override
;
451 void TraceBeginCHROMIUM(const char* name
) override
;
452 void TraceEndCHROMIUM() override
;
453 void AsyncTexSubImage2DCHROMIUM(GLenum target
,
461 const void* data
) override
;
462 void AsyncTexImage2DCHROMIUM(GLenum target
,
464 GLenum internalformat
,
470 const void* pixels
) override
;
471 void WaitAsyncTexImage2DCHROMIUM(GLenum target
) override
;
472 void WaitAllAsyncTexImage2DCHROMIUM() override
;
473 void DiscardFramebufferEXT(GLenum target
,
475 const GLenum
* attachments
) override
;
476 void LoseContextCHROMIUM(GLenum current
, GLenum other
) override
;
477 GLuint
InsertSyncPointCHROMIUM() override
;
478 void WaitSyncPointCHROMIUM(GLuint sync_point
) override
;
479 void DrawBuffersEXT(GLsizei count
, const GLenum
* bufs
) override
;
480 void DiscardBackbufferCHROMIUM() override
;
481 void ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order
,
482 GLenum plane_transform
,
483 GLuint overlay_texture_id
,
491 GLfloat uv_height
) override
;
492 void MatrixLoadfCHROMIUM(GLenum matrixMode
, const GLfloat
* m
) override
;
493 void MatrixLoadIdentityCHROMIUM(GLenum matrixMode
) override
;
494 void BlendBarrierKHR() override
;
495 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_AUTOGEN_H_