| 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 984 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1408 }, | 1426 }, |
| 1409 { | 1427 { |
| 1410 "glGetVertexAttribPointerv", | 1428 "glGetVertexAttribPointerv", |
| 1411 reinterpret_cast<GLES2FunctionPointer>(glGetVertexAttribPointerv), | 1429 reinterpret_cast<GLES2FunctionPointer>(glGetVertexAttribPointerv), |
| 1412 }, | 1430 }, |
| 1413 { | 1431 { |
| 1414 "glHint", | 1432 "glHint", |
| 1415 reinterpret_cast<GLES2FunctionPointer>(glHint), | 1433 reinterpret_cast<GLES2FunctionPointer>(glHint), |
| 1416 }, | 1434 }, |
| 1417 { | 1435 { |
| 1436 "glInvalidateFramebuffer", |
| 1437 reinterpret_cast<GLES2FunctionPointer>(glInvalidateFramebuffer), |
| 1438 }, |
| 1439 { |
| 1440 "glInvalidateSubFramebuffer", |
| 1441 reinterpret_cast<GLES2FunctionPointer>(glInvalidateSubFramebuffer), |
| 1442 }, |
| 1443 { |
| 1418 "glIsBuffer", | 1444 "glIsBuffer", |
| 1419 reinterpret_cast<GLES2FunctionPointer>(glIsBuffer), | 1445 reinterpret_cast<GLES2FunctionPointer>(glIsBuffer), |
| 1420 }, | 1446 }, |
| 1421 { | 1447 { |
| 1422 "glIsEnabled", | 1448 "glIsEnabled", |
| 1423 reinterpret_cast<GLES2FunctionPointer>(glIsEnabled), | 1449 reinterpret_cast<GLES2FunctionPointer>(glIsEnabled), |
| 1424 }, | 1450 }, |
| 1425 { | 1451 { |
| 1426 "glIsFramebuffer", | 1452 "glIsFramebuffer", |
| 1427 reinterpret_cast<GLES2FunctionPointer>(glIsFramebuffer), | 1453 reinterpret_cast<GLES2FunctionPointer>(glIsFramebuffer), |
| (...skipping 24 matching lines...) Expand all Loading... |
| 1452 }, | 1478 }, |
| 1453 { | 1479 { |
| 1454 "glPixelStorei", | 1480 "glPixelStorei", |
| 1455 reinterpret_cast<GLES2FunctionPointer>(glPixelStorei), | 1481 reinterpret_cast<GLES2FunctionPointer>(glPixelStorei), |
| 1456 }, | 1482 }, |
| 1457 { | 1483 { |
| 1458 "glPolygonOffset", | 1484 "glPolygonOffset", |
| 1459 reinterpret_cast<GLES2FunctionPointer>(glPolygonOffset), | 1485 reinterpret_cast<GLES2FunctionPointer>(glPolygonOffset), |
| 1460 }, | 1486 }, |
| 1461 { | 1487 { |
| 1488 "glReadBuffer", |
| 1489 reinterpret_cast<GLES2FunctionPointer>(glReadBuffer), |
| 1490 }, |
| 1491 { |
| 1462 "glReadPixels", | 1492 "glReadPixels", |
| 1463 reinterpret_cast<GLES2FunctionPointer>(glReadPixels), | 1493 reinterpret_cast<GLES2FunctionPointer>(glReadPixels), |
| 1464 }, | 1494 }, |
| 1465 { | 1495 { |
| 1466 "glReleaseShaderCompiler", | 1496 "glReleaseShaderCompiler", |
| 1467 reinterpret_cast<GLES2FunctionPointer>(glReleaseShaderCompiler), | 1497 reinterpret_cast<GLES2FunctionPointer>(glReleaseShaderCompiler), |
| 1468 }, | 1498 }, |
| 1469 { | 1499 { |
| 1470 "glRenderbufferStorage", | 1500 "glRenderbufferStorage", |
| 1471 reinterpret_cast<GLES2FunctionPointer>(glRenderbufferStorage), | 1501 reinterpret_cast<GLES2FunctionPointer>(glRenderbufferStorage), |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2052 reinterpret_cast<GLES2FunctionPointer>(glBlendBarrierKHR), | 2082 reinterpret_cast<GLES2FunctionPointer>(glBlendBarrierKHR), |
| 2053 }, | 2083 }, |
| 2054 { | 2084 { |
| 2055 NULL, | 2085 NULL, |
| 2056 NULL, | 2086 NULL, |
| 2057 }, | 2087 }, |
| 2058 }; | 2088 }; |
| 2059 | 2089 |
| 2060 } // namespace gles2 | 2090 } // namespace gles2 |
| 2061 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ | 2091 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ |
| OLD | NEW |