| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file is auto-generated from | 5 // This file is auto-generated from |
| 6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
| 7 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
| 8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
| 9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
| 10 | 10 |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 } | 371 } |
| 372 void GLES2GetVertexAttribiv(GLuint index, GLenum pname, GLint* params) { | 372 void GLES2GetVertexAttribiv(GLuint index, GLenum pname, GLint* params) { |
| 373 gles2::GetGLContext()->GetVertexAttribiv(index, pname, params); | 373 gles2::GetGLContext()->GetVertexAttribiv(index, pname, params); |
| 374 } | 374 } |
| 375 void GLES2GetVertexAttribPointerv(GLuint index, GLenum pname, void** pointer) { | 375 void GLES2GetVertexAttribPointerv(GLuint index, GLenum pname, void** pointer) { |
| 376 gles2::GetGLContext()->GetVertexAttribPointerv(index, pname, pointer); | 376 gles2::GetGLContext()->GetVertexAttribPointerv(index, pname, pointer); |
| 377 } | 377 } |
| 378 void GLES2Hint(GLenum target, GLenum mode) { | 378 void GLES2Hint(GLenum target, GLenum mode) { |
| 379 gles2::GetGLContext()->Hint(target, mode); | 379 gles2::GetGLContext()->Hint(target, mode); |
| 380 } | 380 } |
| 381 void GLES2InvalidateFramebuffer(GLenum target, |
| 382 GLsizei count, |
| 383 const GLenum* attachments) { |
| 384 gles2::GetGLContext()->InvalidateFramebuffer(target, count, attachments); |
| 385 } |
| 386 void GLES2InvalidateSubFramebuffer(GLenum target, |
| 387 GLsizei count, |
| 388 const GLenum* attachments, |
| 389 GLint x, |
| 390 GLint y, |
| 391 GLsizei width, |
| 392 GLsizei height) { |
| 393 gles2::GetGLContext()->InvalidateSubFramebuffer(target, count, attachments, x, |
| 394 y, width, height); |
| 395 } |
| 381 GLboolean GLES2IsBuffer(GLuint buffer) { | 396 GLboolean GLES2IsBuffer(GLuint buffer) { |
| 382 return gles2::GetGLContext()->IsBuffer(buffer); | 397 return gles2::GetGLContext()->IsBuffer(buffer); |
| 383 } | 398 } |
| 384 GLboolean GLES2IsEnabled(GLenum cap) { | 399 GLboolean GLES2IsEnabled(GLenum cap) { |
| 385 return gles2::GetGLContext()->IsEnabled(cap); | 400 return gles2::GetGLContext()->IsEnabled(cap); |
| 386 } | 401 } |
| 387 GLboolean GLES2IsFramebuffer(GLuint framebuffer) { | 402 GLboolean GLES2IsFramebuffer(GLuint framebuffer) { |
| 388 return gles2::GetGLContext()->IsFramebuffer(framebuffer); | 403 return gles2::GetGLContext()->IsFramebuffer(framebuffer); |
| 389 } | 404 } |
| 390 GLboolean GLES2IsProgram(GLuint program) { | 405 GLboolean GLES2IsProgram(GLuint program) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 404 } | 419 } |
| 405 void GLES2LinkProgram(GLuint program) { | 420 void GLES2LinkProgram(GLuint program) { |
| 406 gles2::GetGLContext()->LinkProgram(program); | 421 gles2::GetGLContext()->LinkProgram(program); |
| 407 } | 422 } |
| 408 void GLES2PixelStorei(GLenum pname, GLint param) { | 423 void GLES2PixelStorei(GLenum pname, GLint param) { |
| 409 gles2::GetGLContext()->PixelStorei(pname, param); | 424 gles2::GetGLContext()->PixelStorei(pname, param); |
| 410 } | 425 } |
| 411 void GLES2PolygonOffset(GLfloat factor, GLfloat units) { | 426 void GLES2PolygonOffset(GLfloat factor, GLfloat units) { |
| 412 gles2::GetGLContext()->PolygonOffset(factor, units); | 427 gles2::GetGLContext()->PolygonOffset(factor, units); |
| 413 } | 428 } |
| 429 void GLES2ReadBuffer(GLenum src) { |
| 430 gles2::GetGLContext()->ReadBuffer(src); |
| 431 } |
| 414 void GLES2ReadPixels(GLint x, | 432 void GLES2ReadPixels(GLint x, |
| 415 GLint y, | 433 GLint y, |
| 416 GLsizei width, | 434 GLsizei width, |
| 417 GLsizei height, | 435 GLsizei height, |
| 418 GLenum format, | 436 GLenum format, |
| 419 GLenum type, | 437 GLenum type, |
| 420 void* pixels) { | 438 void* pixels) { |
| 421 gles2::GetGLContext()->ReadPixels(x, y, width, height, format, type, pixels); | 439 gles2::GetGLContext()->ReadPixels(x, y, width, height, format, type, pixels); |
| 422 } | 440 } |
| 423 void GLES2ReleaseShaderCompiler() { | 441 void GLES2ReleaseShaderCompiler() { |
| (...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1437 }, | 1455 }, |
| 1438 { | 1456 { |
| 1439 "glGetVertexAttribPointerv", | 1457 "glGetVertexAttribPointerv", |
| 1440 reinterpret_cast<GLES2FunctionPointer>(glGetVertexAttribPointerv), | 1458 reinterpret_cast<GLES2FunctionPointer>(glGetVertexAttribPointerv), |
| 1441 }, | 1459 }, |
| 1442 { | 1460 { |
| 1443 "glHint", | 1461 "glHint", |
| 1444 reinterpret_cast<GLES2FunctionPointer>(glHint), | 1462 reinterpret_cast<GLES2FunctionPointer>(glHint), |
| 1445 }, | 1463 }, |
| 1446 { | 1464 { |
| 1465 "glInvalidateFramebuffer", |
| 1466 reinterpret_cast<GLES2FunctionPointer>(glInvalidateFramebuffer), |
| 1467 }, |
| 1468 { |
| 1469 "glInvalidateSubFramebuffer", |
| 1470 reinterpret_cast<GLES2FunctionPointer>(glInvalidateSubFramebuffer), |
| 1471 }, |
| 1472 { |
| 1447 "glIsBuffer", | 1473 "glIsBuffer", |
| 1448 reinterpret_cast<GLES2FunctionPointer>(glIsBuffer), | 1474 reinterpret_cast<GLES2FunctionPointer>(glIsBuffer), |
| 1449 }, | 1475 }, |
| 1450 { | 1476 { |
| 1451 "glIsEnabled", | 1477 "glIsEnabled", |
| 1452 reinterpret_cast<GLES2FunctionPointer>(glIsEnabled), | 1478 reinterpret_cast<GLES2FunctionPointer>(glIsEnabled), |
| 1453 }, | 1479 }, |
| 1454 { | 1480 { |
| 1455 "glIsFramebuffer", | 1481 "glIsFramebuffer", |
| 1456 reinterpret_cast<GLES2FunctionPointer>(glIsFramebuffer), | 1482 reinterpret_cast<GLES2FunctionPointer>(glIsFramebuffer), |
| (...skipping 24 matching lines...) Expand all Loading... |
| 1481 }, | 1507 }, |
| 1482 { | 1508 { |
| 1483 "glPixelStorei", | 1509 "glPixelStorei", |
| 1484 reinterpret_cast<GLES2FunctionPointer>(glPixelStorei), | 1510 reinterpret_cast<GLES2FunctionPointer>(glPixelStorei), |
| 1485 }, | 1511 }, |
| 1486 { | 1512 { |
| 1487 "glPolygonOffset", | 1513 "glPolygonOffset", |
| 1488 reinterpret_cast<GLES2FunctionPointer>(glPolygonOffset), | 1514 reinterpret_cast<GLES2FunctionPointer>(glPolygonOffset), |
| 1489 }, | 1515 }, |
| 1490 { | 1516 { |
| 1517 "glReadBuffer", |
| 1518 reinterpret_cast<GLES2FunctionPointer>(glReadBuffer), |
| 1519 }, |
| 1520 { |
| 1491 "glReadPixels", | 1521 "glReadPixels", |
| 1492 reinterpret_cast<GLES2FunctionPointer>(glReadPixels), | 1522 reinterpret_cast<GLES2FunctionPointer>(glReadPixels), |
| 1493 }, | 1523 }, |
| 1494 { | 1524 { |
| 1495 "glReleaseShaderCompiler", | 1525 "glReleaseShaderCompiler", |
| 1496 reinterpret_cast<GLES2FunctionPointer>(glReleaseShaderCompiler), | 1526 reinterpret_cast<GLES2FunctionPointer>(glReleaseShaderCompiler), |
| 1497 }, | 1527 }, |
| 1498 { | 1528 { |
| 1499 "glRenderbufferStorage", | 1529 "glRenderbufferStorage", |
| 1500 reinterpret_cast<GLES2FunctionPointer>(glRenderbufferStorage), | 1530 reinterpret_cast<GLES2FunctionPointer>(glRenderbufferStorage), |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2089 reinterpret_cast<GLES2FunctionPointer>(glBlendBarrierKHR), | 2119 reinterpret_cast<GLES2FunctionPointer>(glBlendBarrierKHR), |
| 2090 }, | 2120 }, |
| 2091 { | 2121 { |
| 2092 NULL, | 2122 NULL, |
| 2093 NULL, | 2123 NULL, |
| 2094 }, | 2124 }, |
| 2095 }; | 2125 }; |
| 2096 | 2126 |
| 2097 } // namespace gles2 | 2127 } // namespace gles2 |
| 2098 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ | 2128 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ |
| OLD | NEW |