Roll leveldb 3f7758:803d69 (v1.17 -> v1.18)
[chromium-blink-merge.git] / gpu / command_buffer / client / gles2_trace_implementation_autogen.h
blobb4349aedefdf406bc86c9749a0c85e7a2c362637
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_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,
18 GLuint index,
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,
25 GLclampf green,
26 GLclampf blue,
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,
32 GLenum dstRGB,
33 GLenum srcAlpha,
34 GLenum dstAlpha) override;
35 void BufferData(GLenum target,
36 GLsizeiptr size,
37 const void* data,
38 GLenum usage) override;
39 void BufferSubData(GLenum target,
40 GLintptr offset,
41 GLsizeiptr size,
42 const void* data) override;
43 GLenum CheckFramebufferStatus(GLenum target) override;
44 void Clear(GLbitfield mask) override;
45 void ClearColor(GLclampf red,
46 GLclampf green,
47 GLclampf blue,
48 GLclampf alpha) override;
49 void ClearDepthf(GLclampf depth) override;
50 void ClearStencil(GLint s) override;
51 void ColorMask(GLboolean red,
52 GLboolean green,
53 GLboolean blue,
54 GLboolean alpha) override;
55 void CompileShader(GLuint shader) override;
56 void CompressedTexImage2D(GLenum target,
57 GLint level,
58 GLenum internalformat,
59 GLsizei width,
60 GLsizei height,
61 GLint border,
62 GLsizei imageSize,
63 const void* data) override;
64 void CompressedTexSubImage2D(GLenum target,
65 GLint level,
66 GLint xoffset,
67 GLint yoffset,
68 GLsizei width,
69 GLsizei height,
70 GLenum format,
71 GLsizei imageSize,
72 const void* data) override;
73 void CopyTexImage2D(GLenum target,
74 GLint level,
75 GLenum internalformat,
76 GLint x,
77 GLint y,
78 GLsizei width,
79 GLsizei height,
80 GLint border) override;
81 void CopyTexSubImage2D(GLenum target,
82 GLint level,
83 GLint xoffset,
84 GLint yoffset,
85 GLint x,
86 GLint y,
87 GLsizei width,
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,
106 GLsizei count,
107 GLenum type,
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,
114 GLenum attachment,
115 GLenum renderbuffertarget,
116 GLuint renderbuffer) override;
117 void FramebufferTexture2D(GLenum target,
118 GLenum attachment,
119 GLenum textarget,
120 GLuint texture,
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,
129 GLuint index,
130 GLsizei bufsize,
131 GLsizei* length,
132 GLint* size,
133 GLenum* type,
134 char* name) override;
135 void GetActiveUniform(GLuint program,
136 GLuint index,
137 GLsizei bufsize,
138 GLsizei* length,
139 GLint* size,
140 GLenum* type,
141 char* name) override;
142 void GetAttachedShaders(GLuint program,
143 GLsizei maxcount,
144 GLsizei* count,
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,
152 GLenum attachment,
153 GLenum pname,
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,
158 GLsizei bufsize,
159 GLsizei* length,
160 char* infolog) override;
161 void GetRenderbufferParameteriv(GLenum target,
162 GLenum pname,
163 GLint* params) override;
164 void GetShaderiv(GLuint shader, GLenum pname, GLint* params) override;
165 void GetShaderInfoLog(GLuint shader,
166 GLsizei bufsize,
167 GLsizei* length,
168 char* infolog) override;
169 void GetShaderPrecisionFormat(GLenum shadertype,
170 GLenum precisiontype,
171 GLint* range,
172 GLint* precision) override;
173 void GetShaderSource(GLuint shader,
174 GLsizei bufsize,
175 GLsizei* length,
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,
186 GLenum pname,
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,
201 GLint y,
202 GLsizei width,
203 GLsizei height,
204 GLenum format,
205 GLenum type,
206 void* pixels) override;
207 void ReleaseShaderCompiler() override;
208 void RenderbufferStorage(GLenum target,
209 GLenum internalformat,
210 GLsizei width,
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,
216 GLenum binaryformat,
217 const void* binary,
218 GLsizei length) override;
219 void ShaderSource(GLuint shader,
220 GLsizei count,
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,
227 GLenum func,
228 GLint ref,
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,
234 GLenum fail,
235 GLenum zfail,
236 GLenum zpass) override;
237 void TexImage2D(GLenum target,
238 GLint level,
239 GLint internalformat,
240 GLsizei width,
241 GLsizei height,
242 GLint border,
243 GLenum format,
244 GLenum type,
245 const void* pixels) override;
246 void TexParameterf(GLenum target, GLenum pname, GLfloat param) override;
247 void TexParameterfv(GLenum target,
248 GLenum pname,
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,
253 GLint level,
254 GLint xoffset,
255 GLint yoffset,
256 GLsizei width,
257 GLsizei height,
258 GLenum format,
259 GLenum type,
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,
274 GLfloat x,
275 GLfloat y,
276 GLfloat z,
277 GLfloat w) override;
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,
282 GLsizei count,
283 GLboolean transpose,
284 const GLfloat* value) override;
285 void UniformMatrix3fv(GLint location,
286 GLsizei count,
287 GLboolean transpose,
288 const GLfloat* value) override;
289 void UniformMatrix4fv(GLint location,
290 GLsizei count,
291 GLboolean transpose,
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,
302 GLfloat x,
303 GLfloat y,
304 GLfloat z,
305 GLfloat w) override;
306 void VertexAttrib4fv(GLuint indx, const GLfloat* values) override;
307 void VertexAttribPointer(GLuint indx,
308 GLint size,
309 GLenum type,
310 GLboolean normalized,
311 GLsizei stride,
312 const void* ptr) override;
313 void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) override;
314 void BlitFramebufferCHROMIUM(GLint srcX0,
315 GLint srcY0,
316 GLint srcX1,
317 GLint srcY1,
318 GLint dstX0,
319 GLint dstY0,
320 GLint dstX1,
321 GLint dstY1,
322 GLbitfield mask,
323 GLenum filter) override;
324 void RenderbufferStorageMultisampleCHROMIUM(GLenum target,
325 GLsizei samples,
326 GLenum internalformat,
327 GLsizei width,
328 GLsizei height) override;
329 void RenderbufferStorageMultisampleEXT(GLenum target,
330 GLsizei samples,
331 GLenum internalformat,
332 GLsizei width,
333 GLsizei height) override;
334 void FramebufferTexture2DMultisampleEXT(GLenum target,
335 GLenum attachment,
336 GLenum textarget,
337 GLuint texture,
338 GLint level,
339 GLsizei samples) override;
340 void TexStorage2DEXT(GLenum target,
341 GLsizei levels,
342 GLenum internalFormat,
343 GLsizei width,
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,
361 GLsizei count,
362 GLenum type,
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,
368 GLintptr offset,
369 GLsizeiptr size,
370 GLenum access) override;
371 void UnmapBufferSubDataCHROMIUM(const void* mem) override;
372 void* MapTexSubImage2DCHROMIUM(GLenum target,
373 GLint level,
374 GLint xoffset,
375 GLint yoffset,
376 GLsizei width,
377 GLsizei height,
378 GLenum format,
379 GLenum type,
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,
387 GLsizei bufsize,
388 GLsizei* size,
389 void* info) override;
390 GLuint CreateStreamTextureCHROMIUM(GLuint texture) override;
391 GLuint CreateImageCHROMIUM(ClientBuffer buffer,
392 GLsizei width,
393 GLsizei height,
394 GLenum internalformat) override;
395 void DestroyImageCHROMIUM(GLuint image_id) override;
396 GLuint CreateGpuMemoryBufferImageCHROMIUM(GLsizei width,
397 GLsizei height,
398 GLenum internalformat,
399 GLenum usage) override;
400 void GetTranslatedShaderSourceANGLE(GLuint shader,
401 GLsizei bufsize,
402 GLsizei* length,
403 char* source) override;
404 void PostSubBufferCHROMIUM(GLint x,
405 GLint y,
406 GLint width,
407 GLint height) override;
408 void TexImageIOSurface2DCHROMIUM(GLenum target,
409 GLsizei width,
410 GLsizei height,
411 GLuint ioSurfaceId,
412 GLuint plane) override;
413 void CopyTextureCHROMIUM(GLenum target,
414 GLenum source_id,
415 GLenum dest_id,
416 GLint level,
417 GLint internalformat,
418 GLenum dest_type) override;
419 void DrawArraysInstancedANGLE(GLenum mode,
420 GLint first,
421 GLsizei count,
422 GLsizei primcount) override;
423 void DrawElementsInstancedANGLE(GLenum mode,
424 GLsizei count,
425 GLenum type,
426 const void* indices,
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,
432 GLenum target,
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,
438 GLint location,
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,
447 GLenum target,
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,
454 GLint level,
455 GLint xoffset,
456 GLint yoffset,
457 GLsizei width,
458 GLsizei height,
459 GLenum format,
460 GLenum type,
461 const void* data) override;
462 void AsyncTexImage2DCHROMIUM(GLenum target,
463 GLint level,
464 GLenum internalformat,
465 GLsizei width,
466 GLsizei height,
467 GLint border,
468 GLenum format,
469 GLenum type,
470 const void* pixels) override;
471 void WaitAsyncTexImage2DCHROMIUM(GLenum target) override;
472 void WaitAllAsyncTexImage2DCHROMIUM() override;
473 void DiscardFramebufferEXT(GLenum target,
474 GLsizei count,
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,
484 GLint bounds_x,
485 GLint bounds_y,
486 GLint bounds_width,
487 GLint bounds_height,
488 GLfloat uv_x,
489 GLfloat uv_y,
490 GLfloat uv_width,
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_