cc: Added inline to Tile::IsReadyToDraw
[chromium-blink-merge.git] / gpu / command_buffer / client / gles2_implementation_autogen.h
blobc4ed4996dba19e2c5c88fba1c59a850ba78ca859
1 // Copyright (c) 2012 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 // DO NOT EDIT!
9 // This file is included by gles2_implementation.h to declare the
10 // GL api functions.
11 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_AUTOGEN_H_
12 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_AUTOGEN_H_
14 virtual void ActiveTexture(GLenum texture) OVERRIDE;
16 virtual void AttachShader(GLuint program, GLuint shader) OVERRIDE;
18 virtual void BindAttribLocation(
19 GLuint program, GLuint index, const char* name) OVERRIDE;
21 virtual void BindBuffer(GLenum target, GLuint buffer) OVERRIDE;
23 virtual void BindFramebuffer(GLenum target, GLuint framebuffer) OVERRIDE;
25 virtual void BindRenderbuffer(GLenum target, GLuint renderbuffer) OVERRIDE;
27 virtual void BindTexture(GLenum target, GLuint texture) OVERRIDE;
29 virtual void BlendColor(
30 GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) OVERRIDE;
32 virtual void BlendEquation(GLenum mode) OVERRIDE;
34 virtual void BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) OVERRIDE;
36 virtual void BlendFunc(GLenum sfactor, GLenum dfactor) OVERRIDE;
38 virtual void BlendFuncSeparate(
39 GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) OVERRIDE;
41 virtual void BufferData(
42 GLenum target, GLsizeiptr size, const void* data, GLenum usage) OVERRIDE;
44 virtual void BufferSubData(
45 GLenum target, GLintptr offset, GLsizeiptr size,
46 const void* data) OVERRIDE;
48 virtual GLenum CheckFramebufferStatus(GLenum target) OVERRIDE;
50 virtual void Clear(GLbitfield mask) OVERRIDE;
52 virtual void ClearColor(
53 GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) OVERRIDE;
55 virtual void ClearDepthf(GLclampf depth) OVERRIDE;
57 virtual void ClearStencil(GLint s) OVERRIDE;
59 virtual void ColorMask(
60 GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) OVERRIDE;
62 virtual void CompileShader(GLuint shader) OVERRIDE;
64 virtual void CompressedTexImage2D(
65 GLenum target, GLint level, GLenum internalformat, GLsizei width,
66 GLsizei height, GLint border, GLsizei imageSize,
67 const void* data) OVERRIDE;
69 virtual void CompressedTexSubImage2D(
70 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
71 GLsizei height, GLenum format, GLsizei imageSize,
72 const void* data) OVERRIDE;
74 virtual void CopyTexImage2D(
75 GLenum target, GLint level, GLenum internalformat, GLint x, GLint y,
76 GLsizei width, GLsizei height, GLint border) OVERRIDE;
78 virtual void CopyTexSubImage2D(
79 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y,
80 GLsizei width, GLsizei height) OVERRIDE;
82 virtual GLuint CreateProgram() OVERRIDE;
84 virtual GLuint CreateShader(GLenum type) OVERRIDE;
86 virtual void CullFace(GLenum mode) OVERRIDE;
88 virtual void DeleteBuffers(GLsizei n, const GLuint* buffers) OVERRIDE;
90 virtual void DeleteFramebuffers(
91 GLsizei n, const GLuint* framebuffers) OVERRIDE;
93 virtual void DeleteProgram(GLuint program) OVERRIDE;
95 virtual void DeleteRenderbuffers(
96 GLsizei n, const GLuint* renderbuffers) OVERRIDE;
98 virtual void DeleteShader(GLuint shader) OVERRIDE;
100 virtual void DeleteTextures(GLsizei n, const GLuint* textures) OVERRIDE;
102 virtual void DepthFunc(GLenum func) OVERRIDE;
104 virtual void DepthMask(GLboolean flag) OVERRIDE;
106 virtual void DepthRangef(GLclampf zNear, GLclampf zFar) OVERRIDE;
108 virtual void DetachShader(GLuint program, GLuint shader) OVERRIDE;
110 virtual void Disable(GLenum cap) OVERRIDE;
112 virtual void DrawArrays(GLenum mode, GLint first, GLsizei count) OVERRIDE;
114 virtual void DrawElements(
115 GLenum mode, GLsizei count, GLenum type, const void* indices) OVERRIDE;
117 virtual void Enable(GLenum cap) OVERRIDE;
119 virtual void Finish() OVERRIDE;
121 virtual void Flush() OVERRIDE;
123 virtual void FramebufferRenderbuffer(
124 GLenum target, GLenum attachment, GLenum renderbuffertarget,
125 GLuint renderbuffer) OVERRIDE;
127 virtual void FramebufferTexture2D(
128 GLenum target, GLenum attachment, GLenum textarget, GLuint texture,
129 GLint level) OVERRIDE;
131 virtual void FrontFace(GLenum mode) OVERRIDE;
133 virtual void GenBuffers(GLsizei n, GLuint* buffers) OVERRIDE;
135 virtual void GenerateMipmap(GLenum target) OVERRIDE;
137 virtual void GenFramebuffers(GLsizei n, GLuint* framebuffers) OVERRIDE;
139 virtual void GenRenderbuffers(GLsizei n, GLuint* renderbuffers) OVERRIDE;
141 virtual void GenTextures(GLsizei n, GLuint* textures) OVERRIDE;
143 virtual void GetActiveAttrib(
144 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size,
145 GLenum* type, char* name) OVERRIDE;
147 virtual void GetActiveUniform(
148 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size,
149 GLenum* type, char* name) OVERRIDE;
151 virtual void GetAttachedShaders(
152 GLuint program, GLsizei maxcount, GLsizei* count,
153 GLuint* shaders) OVERRIDE;
155 virtual GLint GetAttribLocation(GLuint program, const char* name) OVERRIDE;
157 virtual void GetBooleanv(GLenum pname, GLboolean* params) OVERRIDE;
159 virtual void GetBufferParameteriv(
160 GLenum target, GLenum pname, GLint* params) OVERRIDE;
162 virtual GLenum GetError() OVERRIDE;
164 virtual void GetFloatv(GLenum pname, GLfloat* params) OVERRIDE;
166 virtual void GetFramebufferAttachmentParameteriv(
167 GLenum target, GLenum attachment, GLenum pname, GLint* params) OVERRIDE;
169 virtual void GetIntegerv(GLenum pname, GLint* params) OVERRIDE;
171 virtual void GetProgramiv(
172 GLuint program, GLenum pname, GLint* params) OVERRIDE;
174 virtual void GetProgramInfoLog(
175 GLuint program, GLsizei bufsize, GLsizei* length, char* infolog) OVERRIDE;
177 virtual void GetRenderbufferParameteriv(
178 GLenum target, GLenum pname, GLint* params) OVERRIDE;
180 virtual void GetShaderiv(GLuint shader, GLenum pname, GLint* params) OVERRIDE;
182 virtual void GetShaderInfoLog(
183 GLuint shader, GLsizei bufsize, GLsizei* length, char* infolog) OVERRIDE;
185 virtual void GetShaderPrecisionFormat(
186 GLenum shadertype, GLenum precisiontype, GLint* range,
187 GLint* precision) OVERRIDE;
189 virtual void GetShaderSource(
190 GLuint shader, GLsizei bufsize, GLsizei* length, char* source) OVERRIDE;
192 virtual const GLubyte* GetString(GLenum name) OVERRIDE;
194 virtual void GetTexParameterfv(
195 GLenum target, GLenum pname, GLfloat* params) OVERRIDE;
197 virtual void GetTexParameteriv(
198 GLenum target, GLenum pname, GLint* params) OVERRIDE;
200 virtual void GetUniformfv(
201 GLuint program, GLint location, GLfloat* params) OVERRIDE;
203 virtual void GetUniformiv(
204 GLuint program, GLint location, GLint* params) OVERRIDE;
206 virtual GLint GetUniformLocation(GLuint program, const char* name) OVERRIDE;
208 virtual void GetVertexAttribPointerv(
209 GLuint index, GLenum pname, void** pointer) OVERRIDE;
211 virtual void Hint(GLenum target, GLenum mode) OVERRIDE;
213 virtual GLboolean IsBuffer(GLuint buffer) OVERRIDE;
215 virtual GLboolean IsEnabled(GLenum cap) OVERRIDE;
217 virtual GLboolean IsFramebuffer(GLuint framebuffer) OVERRIDE;
219 virtual GLboolean IsProgram(GLuint program) OVERRIDE;
221 virtual GLboolean IsRenderbuffer(GLuint renderbuffer) OVERRIDE;
223 virtual GLboolean IsShader(GLuint shader) OVERRIDE;
225 virtual GLboolean IsTexture(GLuint texture) OVERRIDE;
227 virtual void LineWidth(GLfloat width) OVERRIDE;
229 virtual void LinkProgram(GLuint program) OVERRIDE;
231 virtual void PixelStorei(GLenum pname, GLint param) OVERRIDE;
233 virtual void PolygonOffset(GLfloat factor, GLfloat units) OVERRIDE;
235 virtual void ReadPixels(
236 GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type,
237 void* pixels) OVERRIDE;
239 virtual void ReleaseShaderCompiler() OVERRIDE;
241 virtual void RenderbufferStorage(
242 GLenum target, GLenum internalformat, GLsizei width,
243 GLsizei height) OVERRIDE;
245 virtual void SampleCoverage(GLclampf value, GLboolean invert) OVERRIDE;
247 virtual void Scissor(GLint x, GLint y, GLsizei width, GLsizei height) OVERRIDE;
249 virtual void ShaderBinary(
250 GLsizei n, const GLuint* shaders, GLenum binaryformat, const void* binary,
251 GLsizei length) OVERRIDE;
253 virtual void ShaderSource(
254 GLuint shader, GLsizei count, const GLchar* const* str,
255 const GLint* length) OVERRIDE;
257 virtual void ShallowFinishCHROMIUM() OVERRIDE;
259 virtual void ShallowFlushCHROMIUM() OVERRIDE;
261 virtual void StencilFunc(GLenum func, GLint ref, GLuint mask) OVERRIDE;
263 virtual void StencilFuncSeparate(
264 GLenum face, GLenum func, GLint ref, GLuint mask) OVERRIDE;
266 virtual void StencilMask(GLuint mask) OVERRIDE;
268 virtual void StencilMaskSeparate(GLenum face, GLuint mask) OVERRIDE;
270 virtual void StencilOp(GLenum fail, GLenum zfail, GLenum zpass) OVERRIDE;
272 virtual void StencilOpSeparate(
273 GLenum face, GLenum fail, GLenum zfail, GLenum zpass) OVERRIDE;
275 virtual void TexImage2D(
276 GLenum target, GLint level, GLint internalformat, GLsizei width,
277 GLsizei height, GLint border, GLenum format, GLenum type,
278 const void* pixels) OVERRIDE;
280 virtual void TexParameterf(
281 GLenum target, GLenum pname, GLfloat param) OVERRIDE;
283 virtual void TexParameterfv(
284 GLenum target, GLenum pname, const GLfloat* params) OVERRIDE;
286 virtual void TexParameteri(GLenum target, GLenum pname, GLint param) OVERRIDE;
288 virtual void TexParameteriv(
289 GLenum target, GLenum pname, const GLint* params) OVERRIDE;
291 virtual void TexSubImage2D(
292 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
293 GLsizei height, GLenum format, GLenum type, const void* pixels) OVERRIDE;
295 virtual void Uniform1f(GLint location, GLfloat x) OVERRIDE;
297 virtual void Uniform1fv(
298 GLint location, GLsizei count, const GLfloat* v) OVERRIDE;
300 virtual void Uniform1i(GLint location, GLint x) OVERRIDE;
302 virtual void Uniform1iv(
303 GLint location, GLsizei count, const GLint* v) OVERRIDE;
305 virtual void Uniform2f(GLint location, GLfloat x, GLfloat y) OVERRIDE;
307 virtual void Uniform2fv(
308 GLint location, GLsizei count, const GLfloat* v) OVERRIDE;
310 virtual void Uniform2i(GLint location, GLint x, GLint y) OVERRIDE;
312 virtual void Uniform2iv(
313 GLint location, GLsizei count, const GLint* v) OVERRIDE;
315 virtual void Uniform3f(
316 GLint location, GLfloat x, GLfloat y, GLfloat z) OVERRIDE;
318 virtual void Uniform3fv(
319 GLint location, GLsizei count, const GLfloat* v) OVERRIDE;
321 virtual void Uniform3i(GLint location, GLint x, GLint y, GLint z) OVERRIDE;
323 virtual void Uniform3iv(
324 GLint location, GLsizei count, const GLint* v) OVERRIDE;
326 virtual void Uniform4f(
327 GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) OVERRIDE;
329 virtual void Uniform4fv(
330 GLint location, GLsizei count, const GLfloat* v) OVERRIDE;
332 virtual void Uniform4i(
333 GLint location, GLint x, GLint y, GLint z, GLint w) OVERRIDE;
335 virtual void Uniform4iv(
336 GLint location, GLsizei count, const GLint* v) OVERRIDE;
338 virtual void UniformMatrix2fv(
339 GLint location, GLsizei count, GLboolean transpose,
340 const GLfloat* value) OVERRIDE;
342 virtual void UniformMatrix3fv(
343 GLint location, GLsizei count, GLboolean transpose,
344 const GLfloat* value) OVERRIDE;
346 virtual void UniformMatrix4fv(
347 GLint location, GLsizei count, GLboolean transpose,
348 const GLfloat* value) OVERRIDE;
350 virtual void UseProgram(GLuint program) OVERRIDE;
352 virtual void ValidateProgram(GLuint program) OVERRIDE;
354 virtual void VertexAttrib1f(GLuint indx, GLfloat x) OVERRIDE;
356 virtual void VertexAttrib1fv(GLuint indx, const GLfloat* values) OVERRIDE;
358 virtual void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) OVERRIDE;
360 virtual void VertexAttrib2fv(GLuint indx, const GLfloat* values) OVERRIDE;
362 virtual void VertexAttrib3f(
363 GLuint indx, GLfloat x, GLfloat y, GLfloat z) OVERRIDE;
365 virtual void VertexAttrib3fv(GLuint indx, const GLfloat* values) OVERRIDE;
367 virtual void VertexAttrib4f(
368 GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) OVERRIDE;
370 virtual void VertexAttrib4fv(GLuint indx, const GLfloat* values) OVERRIDE;
372 virtual void VertexAttribPointer(
373 GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride,
374 const void* ptr) OVERRIDE;
376 virtual void Viewport(
377 GLint x, GLint y, GLsizei width, GLsizei height) OVERRIDE;
379 virtual void BlitFramebufferEXT(
380 GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0,
381 GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask,
382 GLenum filter) OVERRIDE;
384 virtual void RenderbufferStorageMultisampleEXT(
385 GLenum target, GLsizei samples, GLenum internalformat, GLsizei width,
386 GLsizei height) OVERRIDE;
388 virtual void FramebufferTexture2DMultisampleEXT(
389 GLenum target, GLenum attachment, GLenum textarget, GLuint texture,
390 GLint level, GLsizei samples) OVERRIDE;
392 virtual void TexStorage2DEXT(
393 GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width,
394 GLsizei height) OVERRIDE;
396 virtual void GenQueriesEXT(GLsizei n, GLuint* queries) OVERRIDE;
398 virtual void DeleteQueriesEXT(GLsizei n, const GLuint* queries) OVERRIDE;
400 virtual GLboolean IsQueryEXT(GLuint id) OVERRIDE;
402 virtual void BeginQueryEXT(GLenum target, GLuint id) OVERRIDE;
404 virtual void EndQueryEXT(GLenum target) OVERRIDE;
406 virtual void GetQueryivEXT(
407 GLenum target, GLenum pname, GLint* params) OVERRIDE;
409 virtual void GetQueryObjectuivEXT(
410 GLuint id, GLenum pname, GLuint* params) OVERRIDE;
412 virtual void InsertEventMarkerEXT(
413 GLsizei length, const GLchar* marker) OVERRIDE;
415 virtual void PushGroupMarkerEXT(GLsizei length, const GLchar* marker) OVERRIDE;
417 virtual void PopGroupMarkerEXT() OVERRIDE;
419 virtual void GenVertexArraysOES(GLsizei n, GLuint* arrays) OVERRIDE;
421 virtual void DeleteVertexArraysOES(GLsizei n, const GLuint* arrays) OVERRIDE;
423 virtual GLboolean IsVertexArrayOES(GLuint array) OVERRIDE;
425 virtual void BindVertexArrayOES(GLuint array) OVERRIDE;
427 virtual void SwapBuffers() OVERRIDE;
429 virtual GLuint GetMaxValueInBufferCHROMIUM(
430 GLuint buffer_id, GLsizei count, GLenum type, GLuint offset) OVERRIDE;
432 virtual void GenSharedIdsCHROMIUM(
433 GLuint namespace_id, GLuint id_offset, GLsizei n, GLuint* ids) OVERRIDE;
435 virtual void DeleteSharedIdsCHROMIUM(
436 GLuint namespace_id, GLsizei n, const GLuint* ids) OVERRIDE;
438 virtual void RegisterSharedIdsCHROMIUM(
439 GLuint namespace_id, GLsizei n, const GLuint* ids) OVERRIDE;
441 virtual GLboolean EnableFeatureCHROMIUM(const char* feature) OVERRIDE;
443 virtual void* MapBufferCHROMIUM(GLuint target, GLenum access) OVERRIDE;
445 virtual GLboolean UnmapBufferCHROMIUM(GLuint target) OVERRIDE;
447 virtual void* MapImageCHROMIUM(GLuint image_id, GLenum access) OVERRIDE;
449 virtual void UnmapImageCHROMIUM(GLuint image_id) OVERRIDE;
451 virtual void* MapBufferSubDataCHROMIUM(
452 GLuint target, GLintptr offset, GLsizeiptr size, GLenum access) OVERRIDE;
454 virtual void UnmapBufferSubDataCHROMIUM(const void* mem) OVERRIDE;
456 virtual void* MapTexSubImage2DCHROMIUM(
457 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
458 GLsizei height, GLenum format, GLenum type, GLenum access) OVERRIDE;
460 virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) OVERRIDE;
462 virtual void ResizeCHROMIUM(
463 GLuint width, GLuint height, GLfloat scale_factor) OVERRIDE;
465 virtual const GLchar* GetRequestableExtensionsCHROMIUM() OVERRIDE;
467 virtual void RequestExtensionCHROMIUM(const char* extension) OVERRIDE;
469 virtual void RateLimitOffscreenContextCHROMIUM() OVERRIDE;
471 virtual void GetMultipleIntegervCHROMIUM(
472 const GLenum* pnames, GLuint count, GLint* results,
473 GLsizeiptr size) OVERRIDE;
475 virtual void GetProgramInfoCHROMIUM(
476 GLuint program, GLsizei bufsize, GLsizei* size, void* info) OVERRIDE;
478 virtual GLuint CreateStreamTextureCHROMIUM(GLuint texture) OVERRIDE;
480 virtual void DestroyStreamTextureCHROMIUM(GLuint texture) OVERRIDE;
482 virtual GLuint CreateImageCHROMIUM(
483 GLsizei width, GLsizei height, GLenum internalformat) OVERRIDE;
485 virtual void DestroyImageCHROMIUM(GLuint image_id) OVERRIDE;
487 virtual void GetImageParameterivCHROMIUM(
488 GLuint image_id, GLenum pname, GLint* params) OVERRIDE;
490 virtual void GetTranslatedShaderSourceANGLE(
491 GLuint shader, GLsizei bufsize, GLsizei* length, char* source) OVERRIDE;
493 virtual void PostSubBufferCHROMIUM(
494 GLint x, GLint y, GLint width, GLint height) OVERRIDE;
496 virtual void TexImageIOSurface2DCHROMIUM(
497 GLenum target, GLsizei width, GLsizei height, GLuint ioSurfaceId,
498 GLuint plane) OVERRIDE;
500 virtual void CopyTextureCHROMIUM(
501 GLenum target, GLenum source_id, GLenum dest_id, GLint level,
502 GLint internalformat, GLenum dest_type) OVERRIDE;
504 virtual void DrawArraysInstancedANGLE(
505 GLenum mode, GLint first, GLsizei count, GLsizei primcount) OVERRIDE;
507 virtual void DrawElementsInstancedANGLE(
508 GLenum mode, GLsizei count, GLenum type, const void* indices,
509 GLsizei primcount) OVERRIDE;
511 virtual void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) OVERRIDE;
513 virtual void GenMailboxCHROMIUM(GLbyte* mailbox) OVERRIDE;
515 virtual void ProduceTextureCHROMIUM(
516 GLenum target, const GLbyte* mailbox) OVERRIDE;
518 virtual void ConsumeTextureCHROMIUM(
519 GLenum target, const GLbyte* mailbox) OVERRIDE;
521 virtual void BindUniformLocationCHROMIUM(
522 GLuint program, GLint location, const char* name) OVERRIDE;
524 virtual void BindTexImage2DCHROMIUM(GLenum target, GLint imageId) OVERRIDE;
526 virtual void ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) OVERRIDE;
528 virtual void TraceBeginCHROMIUM(const char* name) OVERRIDE;
530 virtual void TraceEndCHROMIUM() OVERRIDE;
532 virtual void AsyncTexSubImage2DCHROMIUM(
533 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
534 GLsizei height, GLenum format, GLenum type, const void* data) OVERRIDE;
536 virtual void AsyncTexImage2DCHROMIUM(
537 GLenum target, GLint level, GLint internalformat, GLsizei width,
538 GLsizei height, GLint border, GLenum format, GLenum type,
539 const void* pixels) OVERRIDE;
541 virtual void WaitAsyncTexImage2DCHROMIUM(GLenum target) OVERRIDE;
543 virtual void DiscardFramebufferEXT(
544 GLenum target, GLsizei count, const GLenum* attachments) OVERRIDE;
546 virtual void LoseContextCHROMIUM(GLenum current, GLenum other) OVERRIDE;
548 virtual GLuint InsertSyncPointCHROMIUM() OVERRIDE;
550 virtual void WaitSyncPointCHROMIUM(GLuint sync_point) OVERRIDE;
552 virtual void DrawBuffersEXT(GLsizei count, const GLenum* bufs) OVERRIDE;
554 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_AUTOGEN_H_