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. 4 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! 10 11 // This file is included by gles2_interface.h to declare the 12 // GL api functions. 13 #ifndef MOJO_GPU_MOJO_GLES2_IMPL_AUTOGEN_H_ 14 #define MOJO_GPU_MOJO_GLES2_IMPL_AUTOGEN_H_ 15 16 #include <memory> 17 18 #include "gpu/command_buffer/client/gles2_interface.h" 19 #include "mojo/public/c/gles2/gles2.h" 20 21 namespace mojo { 22 23 class MojoGLES2Impl : public gpu::gles2::GLES2Interface { 24 public: MojoGLES2Impl(MojoGLES2Context context)25 explicit MojoGLES2Impl(MojoGLES2Context context) { context_ = context; } ~MojoGLES2Impl()26 ~MojoGLES2Impl() override {} 27 void ActiveTexture(GLenum texture) override; 28 void AttachShader(GLuint program, GLuint shader) override; 29 void BindAttribLocation(GLuint program, 30 GLuint index, 31 const char* name) override; 32 void BindBuffer(GLenum target, GLuint buffer) override; 33 void BindBufferBase(GLenum target, GLuint index, GLuint buffer) override; 34 void BindBufferRange(GLenum target, 35 GLuint index, 36 GLuint buffer, 37 GLintptr offset, 38 GLsizeiptr size) override; 39 void BindFramebuffer(GLenum target, GLuint framebuffer) override; 40 void BindRenderbuffer(GLenum target, GLuint renderbuffer) override; 41 void BindSampler(GLuint unit, GLuint sampler) override; 42 void BindTexture(GLenum target, GLuint texture) override; 43 void BindTransformFeedback(GLenum target, GLuint transformfeedback) override; 44 void BlendColor(GLclampf red, 45 GLclampf green, 46 GLclampf blue, 47 GLclampf alpha) override; 48 void BlendEquation(GLenum mode) override; 49 void BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) override; 50 void BlendFunc(GLenum sfactor, GLenum dfactor) override; 51 void BlendFuncSeparate(GLenum srcRGB, 52 GLenum dstRGB, 53 GLenum srcAlpha, 54 GLenum dstAlpha) override; 55 void BufferData(GLenum target, 56 GLsizeiptr size, 57 const void* data, 58 GLenum usage) override; 59 void BufferSubData(GLenum target, 60 GLintptr offset, 61 GLsizeiptr size, 62 const void* data) override; 63 GLenum CheckFramebufferStatus(GLenum target) override; 64 void Clear(GLbitfield mask) override; 65 void ClearBufferfi(GLenum buffer, 66 GLint drawbuffers, 67 GLfloat depth, 68 GLint stencil) override; 69 void ClearBufferfv(GLenum buffer, 70 GLint drawbuffers, 71 const GLfloat* value) override; 72 void ClearBufferiv(GLenum buffer, 73 GLint drawbuffers, 74 const GLint* value) override; 75 void ClearBufferuiv(GLenum buffer, 76 GLint drawbuffers, 77 const GLuint* value) override; 78 void ClearColor(GLclampf red, 79 GLclampf green, 80 GLclampf blue, 81 GLclampf alpha) override; 82 void ClearDepthf(GLclampf depth) override; 83 void ClearStencil(GLint s) override; 84 GLenum ClientWaitSync(GLsync sync, 85 GLbitfield flags, 86 GLuint64 timeout) override; 87 void ColorMask(GLboolean red, 88 GLboolean green, 89 GLboolean blue, 90 GLboolean alpha) override; 91 void CompileShader(GLuint shader) override; 92 void CompressedTexImage2D(GLenum target, 93 GLint level, 94 GLenum internalformat, 95 GLsizei width, 96 GLsizei height, 97 GLint border, 98 GLsizei imageSize, 99 const void* data) override; 100 void CompressedTexSubImage2D(GLenum target, 101 GLint level, 102 GLint xoffset, 103 GLint yoffset, 104 GLsizei width, 105 GLsizei height, 106 GLenum format, 107 GLsizei imageSize, 108 const void* data) override; 109 void CompressedTexImage3D(GLenum target, 110 GLint level, 111 GLenum internalformat, 112 GLsizei width, 113 GLsizei height, 114 GLsizei depth, 115 GLint border, 116 GLsizei imageSize, 117 const void* data) override; 118 void CompressedTexSubImage3D(GLenum target, 119 GLint level, 120 GLint xoffset, 121 GLint yoffset, 122 GLint zoffset, 123 GLsizei width, 124 GLsizei height, 125 GLsizei depth, 126 GLenum format, 127 GLsizei imageSize, 128 const void* data) override; 129 void CopyBufferSubData(GLenum readtarget, 130 GLenum writetarget, 131 GLintptr readoffset, 132 GLintptr writeoffset, 133 GLsizeiptr size) override; 134 void CopyTexImage2D(GLenum target, 135 GLint level, 136 GLenum internalformat, 137 GLint x, 138 GLint y, 139 GLsizei width, 140 GLsizei height, 141 GLint border) override; 142 void CopyTexSubImage2D(GLenum target, 143 GLint level, 144 GLint xoffset, 145 GLint yoffset, 146 GLint x, 147 GLint y, 148 GLsizei width, 149 GLsizei height) override; 150 void CopyTexSubImage3D(GLenum target, 151 GLint level, 152 GLint xoffset, 153 GLint yoffset, 154 GLint zoffset, 155 GLint x, 156 GLint y, 157 GLsizei width, 158 GLsizei height) override; 159 GLuint CreateProgram() override; 160 GLuint CreateShader(GLenum type) override; 161 void CullFace(GLenum mode) override; 162 void DeleteBuffers(GLsizei n, const GLuint* buffers) override; 163 void DeleteFramebuffers(GLsizei n, const GLuint* framebuffers) override; 164 void DeleteProgram(GLuint program) override; 165 void DeleteRenderbuffers(GLsizei n, const GLuint* renderbuffers) override; 166 void DeleteSamplers(GLsizei n, const GLuint* samplers) override; 167 void DeleteSync(GLsync sync) override; 168 void DeleteShader(GLuint shader) override; 169 void DeleteTextures(GLsizei n, const GLuint* textures) override; 170 void DeleteTransformFeedbacks(GLsizei n, const GLuint* ids) override; 171 void DepthFunc(GLenum func) override; 172 void DepthMask(GLboolean flag) override; 173 void DepthRangef(GLclampf zNear, GLclampf zFar) override; 174 void DetachShader(GLuint program, GLuint shader) override; 175 void Disable(GLenum cap) override; 176 void DisableVertexAttribArray(GLuint index) override; 177 void DrawArrays(GLenum mode, GLint first, GLsizei count) override; 178 void DrawElements(GLenum mode, 179 GLsizei count, 180 GLenum type, 181 const void* indices) override; 182 void DrawRangeElements(GLenum mode, 183 GLuint start, 184 GLuint end, 185 GLsizei count, 186 GLenum type, 187 const void* indices) override; 188 void Enable(GLenum cap) override; 189 void EnableVertexAttribArray(GLuint index) override; 190 GLsync FenceSync(GLenum condition, GLbitfield flags) override; 191 void Finish() override; 192 void Flush() override; 193 void FramebufferRenderbuffer(GLenum target, 194 GLenum attachment, 195 GLenum renderbuffertarget, 196 GLuint renderbuffer) override; 197 void FramebufferTexture2D(GLenum target, 198 GLenum attachment, 199 GLenum textarget, 200 GLuint texture, 201 GLint level) override; 202 void FramebufferTextureLayer(GLenum target, 203 GLenum attachment, 204 GLuint texture, 205 GLint level, 206 GLint layer) override; 207 void FrontFace(GLenum mode) override; 208 void GenBuffers(GLsizei n, GLuint* buffers) override; 209 void GenerateMipmap(GLenum target) override; 210 void GenFramebuffers(GLsizei n, GLuint* framebuffers) override; 211 void GenRenderbuffers(GLsizei n, GLuint* renderbuffers) override; 212 void GenSamplers(GLsizei n, GLuint* samplers) override; 213 void GenTextures(GLsizei n, GLuint* textures) override; 214 void GenTransformFeedbacks(GLsizei n, GLuint* ids) override; 215 void GetActiveAttrib(GLuint program, 216 GLuint index, 217 GLsizei bufsize, 218 GLsizei* length, 219 GLint* size, 220 GLenum* type, 221 char* name) override; 222 void GetActiveUniform(GLuint program, 223 GLuint index, 224 GLsizei bufsize, 225 GLsizei* length, 226 GLint* size, 227 GLenum* type, 228 char* name) override; 229 void GetActiveUniformBlockiv(GLuint program, 230 GLuint index, 231 GLenum pname, 232 GLint* params) override; 233 void GetActiveUniformBlockName(GLuint program, 234 GLuint index, 235 GLsizei bufsize, 236 GLsizei* length, 237 char* name) override; 238 void GetActiveUniformsiv(GLuint program, 239 GLsizei count, 240 const GLuint* indices, 241 GLenum pname, 242 GLint* params) override; 243 void GetAttachedShaders(GLuint program, 244 GLsizei maxcount, 245 GLsizei* count, 246 GLuint* shaders) override; 247 GLint GetAttribLocation(GLuint program, const char* name) override; 248 void GetBooleanv(GLenum pname, GLboolean* params) override; 249 void GetBufferParameteri64v(GLenum target, 250 GLenum pname, 251 GLint64* params) override; 252 void GetBufferParameteriv(GLenum target, 253 GLenum pname, 254 GLint* params) override; 255 GLenum GetError() override; 256 void GetFloatv(GLenum pname, GLfloat* params) override; 257 GLint GetFragDataLocation(GLuint program, const char* name) override; 258 void GetFramebufferAttachmentParameteriv(GLenum target, 259 GLenum attachment, 260 GLenum pname, 261 GLint* params) override; 262 void GetInteger64v(GLenum pname, GLint64* params) override; 263 void GetIntegeri_v(GLenum pname, GLuint index, GLint* data) override; 264 void GetInteger64i_v(GLenum pname, GLuint index, GLint64* data) override; 265 void GetIntegerv(GLenum pname, GLint* params) override; 266 void GetInternalformativ(GLenum target, 267 GLenum format, 268 GLenum pname, 269 GLsizei bufSize, 270 GLint* params) override; 271 void GetProgramiv(GLuint program, GLenum pname, GLint* params) override; 272 void GetProgramInfoLog(GLuint program, 273 GLsizei bufsize, 274 GLsizei* length, 275 char* infolog) override; 276 void GetRenderbufferParameteriv(GLenum target, 277 GLenum pname, 278 GLint* params) override; 279 void GetSamplerParameterfv(GLuint sampler, 280 GLenum pname, 281 GLfloat* params) override; 282 void GetSamplerParameteriv(GLuint sampler, 283 GLenum pname, 284 GLint* params) override; 285 void GetShaderiv(GLuint shader, GLenum pname, GLint* params) override; 286 void GetShaderInfoLog(GLuint shader, 287 GLsizei bufsize, 288 GLsizei* length, 289 char* infolog) override; 290 void GetShaderPrecisionFormat(GLenum shadertype, 291 GLenum precisiontype, 292 GLint* range, 293 GLint* precision) override; 294 void GetShaderSource(GLuint shader, 295 GLsizei bufsize, 296 GLsizei* length, 297 char* source) override; 298 const GLubyte* GetString(GLenum name) override; 299 const GLubyte* GetStringi(GLenum name, GLuint index) override; 300 void GetSynciv(GLsync sync, 301 GLenum pname, 302 GLsizei bufsize, 303 GLsizei* length, 304 GLint* values) override; 305 void GetTexParameterfv(GLenum target, GLenum pname, GLfloat* params) override; 306 void GetTexParameteriv(GLenum target, GLenum pname, GLint* params) override; 307 void GetTransformFeedbackVarying(GLuint program, 308 GLuint index, 309 GLsizei bufsize, 310 GLsizei* length, 311 GLsizei* size, 312 GLenum* type, 313 char* name) override; 314 GLuint GetUniformBlockIndex(GLuint program, const char* name) override; 315 void GetUniformfv(GLuint program, GLint location, GLfloat* params) override; 316 void GetUniformiv(GLuint program, GLint location, GLint* params) override; 317 void GetUniformuiv(GLuint program, GLint location, GLuint* params) override; 318 void GetUniformIndices(GLuint program, 319 GLsizei count, 320 const char* const* names, 321 GLuint* indices) override; 322 GLint GetUniformLocation(GLuint program, const char* name) override; 323 void GetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params) override; 324 void GetVertexAttribiv(GLuint index, GLenum pname, GLint* params) override; 325 void GetVertexAttribIiv(GLuint index, GLenum pname, GLint* params) override; 326 void GetVertexAttribIuiv(GLuint index, GLenum pname, GLuint* params) override; 327 void GetVertexAttribPointerv(GLuint index, 328 GLenum pname, 329 void** pointer) override; 330 void Hint(GLenum target, GLenum mode) override; 331 void InvalidateFramebuffer(GLenum target, 332 GLsizei count, 333 const GLenum* attachments) override; 334 void InvalidateSubFramebuffer(GLenum target, 335 GLsizei count, 336 const GLenum* attachments, 337 GLint x, 338 GLint y, 339 GLsizei width, 340 GLsizei height) override; 341 GLboolean IsBuffer(GLuint buffer) override; 342 GLboolean IsEnabled(GLenum cap) override; 343 GLboolean IsFramebuffer(GLuint framebuffer) override; 344 GLboolean IsProgram(GLuint program) override; 345 GLboolean IsRenderbuffer(GLuint renderbuffer) override; 346 GLboolean IsSampler(GLuint sampler) override; 347 GLboolean IsShader(GLuint shader) override; 348 GLboolean IsSync(GLsync sync) override; 349 GLboolean IsTexture(GLuint texture) override; 350 GLboolean IsTransformFeedback(GLuint transformfeedback) override; 351 void LineWidth(GLfloat width) override; 352 void LinkProgram(GLuint program) override; 353 void PauseTransformFeedback() override; 354 void PixelStorei(GLenum pname, GLint param) override; 355 void PolygonOffset(GLfloat factor, GLfloat units) override; 356 void ReadBuffer(GLenum src) override; 357 void ReadPixels(GLint x, 358 GLint y, 359 GLsizei width, 360 GLsizei height, 361 GLenum format, 362 GLenum type, 363 void* pixels) override; 364 void ReleaseShaderCompiler() override; 365 void RenderbufferStorage(GLenum target, 366 GLenum internalformat, 367 GLsizei width, 368 GLsizei height) override; 369 void ResumeTransformFeedback() override; 370 void SampleCoverage(GLclampf value, GLboolean invert) override; 371 void SamplerParameterf(GLuint sampler, GLenum pname, GLfloat param) override; 372 void SamplerParameterfv(GLuint sampler, 373 GLenum pname, 374 const GLfloat* params) override; 375 void SamplerParameteri(GLuint sampler, GLenum pname, GLint param) override; 376 void SamplerParameteriv(GLuint sampler, 377 GLenum pname, 378 const GLint* params) override; 379 void Scissor(GLint x, GLint y, GLsizei width, GLsizei height) override; 380 void ShaderBinary(GLsizei n, 381 const GLuint* shaders, 382 GLenum binaryformat, 383 const void* binary, 384 GLsizei length) override; 385 void ShaderSource(GLuint shader, 386 GLsizei count, 387 const GLchar* const* str, 388 const GLint* length) override; 389 void ShallowFinishCHROMIUM() override; 390 void ShallowFlushCHROMIUM() override; 391 void OrderingBarrierCHROMIUM() override; 392 void StencilFunc(GLenum func, GLint ref, GLuint mask) override; 393 void StencilFuncSeparate(GLenum face, 394 GLenum func, 395 GLint ref, 396 GLuint mask) override; 397 void StencilMask(GLuint mask) override; 398 void StencilMaskSeparate(GLenum face, GLuint mask) override; 399 void StencilOp(GLenum fail, GLenum zfail, GLenum zpass) override; 400 void StencilOpSeparate(GLenum face, 401 GLenum fail, 402 GLenum zfail, 403 GLenum zpass) override; 404 void TexImage2D(GLenum target, 405 GLint level, 406 GLint internalformat, 407 GLsizei width, 408 GLsizei height, 409 GLint border, 410 GLenum format, 411 GLenum type, 412 const void* pixels) override; 413 void TexImage3D(GLenum target, 414 GLint level, 415 GLint internalformat, 416 GLsizei width, 417 GLsizei height, 418 GLsizei depth, 419 GLint border, 420 GLenum format, 421 GLenum type, 422 const void* pixels) override; 423 void TexParameterf(GLenum target, GLenum pname, GLfloat param) override; 424 void TexParameterfv(GLenum target, 425 GLenum pname, 426 const GLfloat* params) override; 427 void TexParameteri(GLenum target, GLenum pname, GLint param) override; 428 void TexParameteriv(GLenum target, 429 GLenum pname, 430 const GLint* params) override; 431 void TexStorage3D(GLenum target, 432 GLsizei levels, 433 GLenum internalFormat, 434 GLsizei width, 435 GLsizei height, 436 GLsizei depth) override; 437 void TexSubImage2D(GLenum target, 438 GLint level, 439 GLint xoffset, 440 GLint yoffset, 441 GLsizei width, 442 GLsizei height, 443 GLenum format, 444 GLenum type, 445 const void* pixels) override; 446 void TexSubImage3D(GLenum target, 447 GLint level, 448 GLint xoffset, 449 GLint yoffset, 450 GLint zoffset, 451 GLsizei width, 452 GLsizei height, 453 GLsizei depth, 454 GLenum format, 455 GLenum type, 456 const void* pixels) override; 457 void TransformFeedbackVaryings(GLuint program, 458 GLsizei count, 459 const char* const* varyings, 460 GLenum buffermode) override; 461 void Uniform1f(GLint location, GLfloat x) override; 462 void Uniform1fv(GLint location, GLsizei count, const GLfloat* v) override; 463 void Uniform1i(GLint location, GLint x) override; 464 void Uniform1iv(GLint location, GLsizei count, const GLint* v) override; 465 void Uniform1ui(GLint location, GLuint x) override; 466 void Uniform1uiv(GLint location, GLsizei count, const GLuint* v) override; 467 void Uniform2f(GLint location, GLfloat x, GLfloat y) override; 468 void Uniform2fv(GLint location, GLsizei count, const GLfloat* v) override; 469 void Uniform2i(GLint location, GLint x, GLint y) override; 470 void Uniform2iv(GLint location, GLsizei count, const GLint* v) override; 471 void Uniform2ui(GLint location, GLuint x, GLuint y) override; 472 void Uniform2uiv(GLint location, GLsizei count, const GLuint* v) override; 473 void Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) override; 474 void Uniform3fv(GLint location, GLsizei count, const GLfloat* v) override; 475 void Uniform3i(GLint location, GLint x, GLint y, GLint z) override; 476 void Uniform3iv(GLint location, GLsizei count, const GLint* v) override; 477 void Uniform3ui(GLint location, GLuint x, GLuint y, GLuint z) override; 478 void Uniform3uiv(GLint location, GLsizei count, const GLuint* v) override; 479 void Uniform4f(GLint location, 480 GLfloat x, 481 GLfloat y, 482 GLfloat z, 483 GLfloat w) override; 484 void Uniform4fv(GLint location, GLsizei count, const GLfloat* v) override; 485 void Uniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) override; 486 void Uniform4iv(GLint location, GLsizei count, const GLint* v) override; 487 void Uniform4ui(GLint location, 488 GLuint x, 489 GLuint y, 490 GLuint z, 491 GLuint w) override; 492 void Uniform4uiv(GLint location, GLsizei count, const GLuint* v) override; 493 void UniformBlockBinding(GLuint program, 494 GLuint index, 495 GLuint binding) override; 496 void UniformMatrix2fv(GLint location, 497 GLsizei count, 498 GLboolean transpose, 499 const GLfloat* value) override; 500 void UniformMatrix2x3fv(GLint location, 501 GLsizei count, 502 GLboolean transpose, 503 const GLfloat* value) override; 504 void UniformMatrix2x4fv(GLint location, 505 GLsizei count, 506 GLboolean transpose, 507 const GLfloat* value) override; 508 void UniformMatrix3fv(GLint location, 509 GLsizei count, 510 GLboolean transpose, 511 const GLfloat* value) override; 512 void UniformMatrix3x2fv(GLint location, 513 GLsizei count, 514 GLboolean transpose, 515 const GLfloat* value) override; 516 void UniformMatrix3x4fv(GLint location, 517 GLsizei count, 518 GLboolean transpose, 519 const GLfloat* value) override; 520 void UniformMatrix4fv(GLint location, 521 GLsizei count, 522 GLboolean transpose, 523 const GLfloat* value) override; 524 void UniformMatrix4x2fv(GLint location, 525 GLsizei count, 526 GLboolean transpose, 527 const GLfloat* value) override; 528 void UniformMatrix4x3fv(GLint location, 529 GLsizei count, 530 GLboolean transpose, 531 const GLfloat* value) override; 532 void UseProgram(GLuint program) override; 533 void ValidateProgram(GLuint program) override; 534 void VertexAttrib1f(GLuint indx, GLfloat x) override; 535 void VertexAttrib1fv(GLuint indx, const GLfloat* values) override; 536 void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) override; 537 void VertexAttrib2fv(GLuint indx, const GLfloat* values) override; 538 void VertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) override; 539 void VertexAttrib3fv(GLuint indx, const GLfloat* values) override; 540 void VertexAttrib4f(GLuint indx, 541 GLfloat x, 542 GLfloat y, 543 GLfloat z, 544 GLfloat w) override; 545 void VertexAttrib4fv(GLuint indx, const GLfloat* values) override; 546 void VertexAttribI4i(GLuint indx, 547 GLint x, 548 GLint y, 549 GLint z, 550 GLint w) override; 551 void VertexAttribI4iv(GLuint indx, const GLint* values) override; 552 void VertexAttribI4ui(GLuint indx, 553 GLuint x, 554 GLuint y, 555 GLuint z, 556 GLuint w) override; 557 void VertexAttribI4uiv(GLuint indx, const GLuint* values) override; 558 void VertexAttribIPointer(GLuint indx, 559 GLint size, 560 GLenum type, 561 GLsizei stride, 562 const void* ptr) override; 563 void VertexAttribPointer(GLuint indx, 564 GLint size, 565 GLenum type, 566 GLboolean normalized, 567 GLsizei stride, 568 const void* ptr) override; 569 void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) override; 570 void WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) override; 571 void BlitFramebufferCHROMIUM(GLint srcX0, 572 GLint srcY0, 573 GLint srcX1, 574 GLint srcY1, 575 GLint dstX0, 576 GLint dstY0, 577 GLint dstX1, 578 GLint dstY1, 579 GLbitfield mask, 580 GLenum filter) override; 581 void RenderbufferStorageMultisampleCHROMIUM(GLenum target, 582 GLsizei samples, 583 GLenum internalformat, 584 GLsizei width, 585 GLsizei height) override; 586 void RenderbufferStorageMultisampleEXT(GLenum target, 587 GLsizei samples, 588 GLenum internalformat, 589 GLsizei width, 590 GLsizei height) override; 591 void FramebufferTexture2DMultisampleEXT(GLenum target, 592 GLenum attachment, 593 GLenum textarget, 594 GLuint texture, 595 GLint level, 596 GLsizei samples) override; 597 void TexStorage2DEXT(GLenum target, 598 GLsizei levels, 599 GLenum internalFormat, 600 GLsizei width, 601 GLsizei height) override; 602 void GenQueriesEXT(GLsizei n, GLuint* queries) override; 603 void DeleteQueriesEXT(GLsizei n, const GLuint* queries) override; 604 void QueryCounterEXT(GLuint id, GLenum target) override; 605 GLboolean IsQueryEXT(GLuint id) override; 606 void BeginQueryEXT(GLenum target, GLuint id) override; 607 void BeginTransformFeedback(GLenum primitivemode) override; 608 void EndQueryEXT(GLenum target) override; 609 void EndTransformFeedback() override; 610 void GetQueryivEXT(GLenum target, GLenum pname, GLint* params) override; 611 void GetQueryObjectivEXT(GLuint id, GLenum pname, GLint* params) override; 612 void GetQueryObjectuivEXT(GLuint id, GLenum pname, GLuint* params) override; 613 void GetQueryObjecti64vEXT(GLuint id, GLenum pname, GLint64* params) override; 614 void GetQueryObjectui64vEXT(GLuint id, 615 GLenum pname, 616 GLuint64* params) override; 617 void SetDisjointValueSyncCHROMIUM() override; 618 void InsertEventMarkerEXT(GLsizei length, const GLchar* marker) override; 619 void PushGroupMarkerEXT(GLsizei length, const GLchar* marker) override; 620 void PopGroupMarkerEXT() override; 621 void GenVertexArraysOES(GLsizei n, GLuint* arrays) override; 622 void DeleteVertexArraysOES(GLsizei n, const GLuint* arrays) override; 623 GLboolean IsVertexArrayOES(GLuint array) override; 624 void BindVertexArrayOES(GLuint array) override; 625 void SwapBuffers() override; 626 GLuint GetMaxValueInBufferCHROMIUM(GLuint buffer_id, 627 GLsizei count, 628 GLenum type, 629 GLuint offset) override; 630 GLboolean EnableFeatureCHROMIUM(const char* feature) override; 631 void* MapBufferCHROMIUM(GLuint target, GLenum access) override; 632 GLboolean UnmapBufferCHROMIUM(GLuint target) override; 633 void* MapBufferSubDataCHROMIUM(GLuint target, 634 GLintptr offset, 635 GLsizeiptr size, 636 GLenum access) override; 637 void UnmapBufferSubDataCHROMIUM(const void* mem) override; 638 void* MapBufferRange(GLenum target, 639 GLintptr offset, 640 GLsizeiptr size, 641 GLbitfield access) override; 642 GLboolean UnmapBuffer(GLenum target) override; 643 void* MapTexSubImage2DCHROMIUM(GLenum target, 644 GLint level, 645 GLint xoffset, 646 GLint yoffset, 647 GLsizei width, 648 GLsizei height, 649 GLenum format, 650 GLenum type, 651 GLenum access) override; 652 void UnmapTexSubImage2DCHROMIUM(const void* mem) override; 653 void ResizeCHROMIUM(GLuint width, 654 GLuint height, 655 GLfloat scale_factor, 656 GLboolean alpha) override; 657 const GLchar* GetRequestableExtensionsCHROMIUM() override; 658 void RequestExtensionCHROMIUM(const char* extension) override; 659 void GetProgramInfoCHROMIUM(GLuint program, 660 GLsizei bufsize, 661 GLsizei* size, 662 void* info) override; 663 void GetUniformBlocksCHROMIUM(GLuint program, 664 GLsizei bufsize, 665 GLsizei* size, 666 void* info) override; 667 void GetTransformFeedbackVaryingsCHROMIUM(GLuint program, 668 GLsizei bufsize, 669 GLsizei* size, 670 void* info) override; 671 void GetUniformsES3CHROMIUM(GLuint program, 672 GLsizei bufsize, 673 GLsizei* size, 674 void* info) override; 675 GLuint CreateImageCHROMIUM(ClientBuffer buffer, 676 GLsizei width, 677 GLsizei height, 678 GLenum internalformat) override; 679 void DestroyImageCHROMIUM(GLuint image_id) override; 680 GLuint CreateGpuMemoryBufferImageCHROMIUM(GLsizei width, 681 GLsizei height, 682 GLenum internalformat, 683 GLenum usage) override; 684 void GetTranslatedShaderSourceANGLE(GLuint shader, 685 GLsizei bufsize, 686 GLsizei* length, 687 char* source) override; 688 void PostSubBufferCHROMIUM(GLint x, 689 GLint y, 690 GLint width, 691 GLint height) override; 692 void CopyTextureCHROMIUM(GLenum source_id, 693 GLenum dest_id, 694 GLint internalformat, 695 GLenum dest_type, 696 GLboolean unpack_flip_y, 697 GLboolean unpack_premultiply_alpha, 698 GLboolean unpack_unmultiply_alpha) override; 699 void CopySubTextureCHROMIUM(GLenum source_id, 700 GLenum dest_id, 701 GLint xoffset, 702 GLint yoffset, 703 GLint x, 704 GLint y, 705 GLsizei width, 706 GLsizei height, 707 GLboolean unpack_flip_y, 708 GLboolean unpack_premultiply_alpha, 709 GLboolean unpack_unmultiply_alpha) override; 710 void CompressedCopyTextureCHROMIUM(GLenum source_id, GLenum dest_id) override; 711 void DrawArraysInstancedANGLE(GLenum mode, 712 GLint first, 713 GLsizei count, 714 GLsizei primcount) override; 715 void DrawElementsInstancedANGLE(GLenum mode, 716 GLsizei count, 717 GLenum type, 718 const void* indices, 719 GLsizei primcount) override; 720 void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) override; 721 void GenMailboxCHROMIUM(GLbyte* mailbox) override; 722 void ProduceTextureCHROMIUM(GLenum target, const GLbyte* mailbox) override; 723 void ProduceTextureDirectCHROMIUM(GLuint texture, 724 GLenum target, 725 const GLbyte* mailbox) override; 726 void ConsumeTextureCHROMIUM(GLenum target, const GLbyte* mailbox) override; 727 GLuint CreateAndConsumeTextureCHROMIUM(GLenum target, 728 const GLbyte* mailbox) override; 729 void BindUniformLocationCHROMIUM(GLuint program, 730 GLint location, 731 const char* name) override; 732 void BindTexImage2DCHROMIUM(GLenum target, GLint imageId) override; 733 void ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) override; 734 void TraceBeginCHROMIUM(const char* category_name, 735 const char* trace_name) override; 736 void TraceEndCHROMIUM() override; 737 void DiscardFramebufferEXT(GLenum target, 738 GLsizei count, 739 const GLenum* attachments) override; 740 void LoseContextCHROMIUM(GLenum current, GLenum other) override; 741 GLuint64 InsertFenceSyncCHROMIUM() override; 742 void GenSyncTokenCHROMIUM(GLuint64 fence_sync, GLbyte* sync_token) override; 743 void GenUnverifiedSyncTokenCHROMIUM(GLuint64 fence_sync, 744 GLbyte* sync_token) override; 745 void VerifySyncTokensCHROMIUM(GLbyte** sync_tokens, GLsizei count) override; 746 void WaitSyncTokenCHROMIUM(const GLbyte* sync_token) override; 747 void DrawBuffersEXT(GLsizei count, const GLenum* bufs) override; 748 void DiscardBackbufferCHROMIUM() override; 749 void ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order, 750 GLenum plane_transform, 751 GLuint overlay_texture_id, 752 GLint bounds_x, 753 GLint bounds_y, 754 GLint bounds_width, 755 GLint bounds_height, 756 GLfloat uv_x, 757 GLfloat uv_y, 758 GLfloat uv_width, 759 GLfloat uv_height) override; 760 void ScheduleCALayerCHROMIUM(GLuint contents_texture_id, 761 const GLfloat* contents_rect, 762 GLfloat opacity, 763 GLuint background_color, 764 GLuint edge_aa_mask, 765 const GLfloat* bounds_rect, 766 GLboolean is_clipped, 767 const GLfloat* clip_rect, 768 GLint sorting_context_id, 769 const GLfloat* transform, 770 GLuint filter) override; 771 void CommitOverlayPlanesCHROMIUM() override; 772 void SwapInterval(GLint interval) override; 773 void FlushDriverCachesCHROMIUM() override; 774 GLuint GetLastFlushIdCHROMIUM() override; 775 void MatrixLoadfCHROMIUM(GLenum matrixMode, const GLfloat* m) override; 776 void MatrixLoadIdentityCHROMIUM(GLenum matrixMode) override; 777 GLuint GenPathsCHROMIUM(GLsizei range) override; 778 void DeletePathsCHROMIUM(GLuint path, GLsizei range) override; 779 GLboolean IsPathCHROMIUM(GLuint path) override; 780 void PathCommandsCHROMIUM(GLuint path, 781 GLsizei numCommands, 782 const GLubyte* commands, 783 GLsizei numCoords, 784 GLenum coordType, 785 const GLvoid* coords) override; 786 void PathParameterfCHROMIUM(GLuint path, 787 GLenum pname, 788 GLfloat value) override; 789 void PathParameteriCHROMIUM(GLuint path, GLenum pname, GLint value) override; 790 void PathStencilFuncCHROMIUM(GLenum func, GLint ref, GLuint mask) override; 791 void StencilFillPathCHROMIUM(GLuint path, 792 GLenum fillMode, 793 GLuint mask) override; 794 void StencilStrokePathCHROMIUM(GLuint path, 795 GLint reference, 796 GLuint mask) override; 797 void CoverFillPathCHROMIUM(GLuint path, GLenum coverMode) override; 798 void CoverStrokePathCHROMIUM(GLuint path, GLenum coverMode) override; 799 void StencilThenCoverFillPathCHROMIUM(GLuint path, 800 GLenum fillMode, 801 GLuint mask, 802 GLenum coverMode) override; 803 void StencilThenCoverStrokePathCHROMIUM(GLuint path, 804 GLint reference, 805 GLuint mask, 806 GLenum coverMode) override; 807 void StencilFillPathInstancedCHROMIUM( 808 GLsizei numPaths, 809 GLenum pathNameType, 810 const GLvoid* paths, 811 GLuint pathBase, 812 GLenum fillMode, 813 GLuint mask, 814 GLenum transformType, 815 const GLfloat* transformValues) override; 816 void StencilStrokePathInstancedCHROMIUM( 817 GLsizei numPaths, 818 GLenum pathNameType, 819 const GLvoid* paths, 820 GLuint pathBase, 821 GLint reference, 822 GLuint mask, 823 GLenum transformType, 824 const GLfloat* transformValues) override; 825 void CoverFillPathInstancedCHROMIUM(GLsizei numPaths, 826 GLenum pathNameType, 827 const GLvoid* paths, 828 GLuint pathBase, 829 GLenum coverMode, 830 GLenum transformType, 831 const GLfloat* transformValues) override; 832 void CoverStrokePathInstancedCHROMIUM( 833 GLsizei numPaths, 834 GLenum pathNameType, 835 const GLvoid* paths, 836 GLuint pathBase, 837 GLenum coverMode, 838 GLenum transformType, 839 const GLfloat* transformValues) override; 840 void StencilThenCoverFillPathInstancedCHROMIUM( 841 GLsizei numPaths, 842 GLenum pathNameType, 843 const GLvoid* paths, 844 GLuint pathBase, 845 GLenum fillMode, 846 GLuint mask, 847 GLenum coverMode, 848 GLenum transformType, 849 const GLfloat* transformValues) override; 850 void StencilThenCoverStrokePathInstancedCHROMIUM( 851 GLsizei numPaths, 852 GLenum pathNameType, 853 const GLvoid* paths, 854 GLuint pathBase, 855 GLint reference, 856 GLuint mask, 857 GLenum coverMode, 858 GLenum transformType, 859 const GLfloat* transformValues) override; 860 void BindFragmentInputLocationCHROMIUM(GLuint program, 861 GLint location, 862 const char* name) override; 863 void ProgramPathFragmentInputGenCHROMIUM(GLuint program, 864 GLint location, 865 GLenum genMode, 866 GLint components, 867 const GLfloat* coeffs) override; 868 void CoverageModulationCHROMIUM(GLenum components) override; 869 GLenum GetGraphicsResetStatusKHR() override; 870 void BlendBarrierKHR() override; 871 void ApplyScreenSpaceAntialiasingCHROMIUM() override; 872 void BindFragDataLocationIndexedEXT(GLuint program, 873 GLuint colorNumber, 874 GLuint index, 875 const char* name) override; 876 void BindFragDataLocationEXT(GLuint program, 877 GLuint colorNumber, 878 const char* name) override; 879 GLint GetFragDataIndexEXT(GLuint program, const char* name) override; 880 void UniformMatrix4fvStreamTextureMatrixCHROMIUM( 881 GLint location, 882 GLboolean transpose, 883 const GLfloat* default_value) override; 884 885 private: 886 MojoGLES2Context context_; 887 }; 888 889 } // namespace mojo 890 #endif // MOJO_GPU_MOJO_GLES2_IMPL_AUTOGEN_H_ 891