Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(379)

Side by Side Diff: ppapi/shared_impl/ppb_opengles2_shared.cc

Issue 1647663003: Update gpu/command_buffer auto-generated code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_format_autogen.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 } 450 }
451 451
452 void FramebufferTexture2D(PP_Resource context_id, 452 void FramebufferTexture2D(PP_Resource context_id,
453 GLenum target, 453 GLenum target,
454 GLenum attachment, 454 GLenum attachment,
455 GLenum textarget, 455 GLenum textarget,
456 GLuint texture, 456 GLuint texture,
457 GLint level) { 457 GLint level) {
458 Enter3D enter(context_id, true); 458 Enter3D enter(context_id, true);
459 if (enter.succeeded()) { 459 if (enter.succeeded()) {
460 ToGles2Impl(&enter) 460 ToGles2Impl(&enter)->FramebufferTexture2D(target, attachment, textarget,
461 ->FramebufferTexture2D(target, attachment, textarget, texture, level); 461 texture, level);
462 } 462 }
463 } 463 }
464 464
465 void FrontFace(PP_Resource context_id, GLenum mode) { 465 void FrontFace(PP_Resource context_id, GLenum mode) {
466 Enter3D enter(context_id, true); 466 Enter3D enter(context_id, true);
467 if (enter.succeeded()) { 467 if (enter.succeeded()) {
468 ToGles2Impl(&enter)->FrontFace(mode); 468 ToGles2Impl(&enter)->FrontFace(mode);
469 } 469 }
470 } 470 }
471 471
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 void GetActiveAttrib(PP_Resource context_id, 509 void GetActiveAttrib(PP_Resource context_id,
510 GLuint program, 510 GLuint program,
511 GLuint index, 511 GLuint index,
512 GLsizei bufsize, 512 GLsizei bufsize,
513 GLsizei* length, 513 GLsizei* length,
514 GLint* size, 514 GLint* size,
515 GLenum* type, 515 GLenum* type,
516 char* name) { 516 char* name) {
517 Enter3D enter(context_id, true); 517 Enter3D enter(context_id, true);
518 if (enter.succeeded()) { 518 if (enter.succeeded()) {
519 ToGles2Impl(&enter) 519 ToGles2Impl(&enter)->GetActiveAttrib(program, index, bufsize, length, size,
520 ->GetActiveAttrib(program, index, bufsize, length, size, type, name); 520 type, name);
521 } 521 }
522 } 522 }
523 523
524 void GetActiveUniform(PP_Resource context_id, 524 void GetActiveUniform(PP_Resource context_id,
525 GLuint program, 525 GLuint program,
526 GLuint index, 526 GLuint index,
527 GLsizei bufsize, 527 GLsizei bufsize,
528 GLsizei* length, 528 GLsizei* length,
529 GLint* size, 529 GLint* size,
530 GLenum* type, 530 GLenum* type,
531 char* name) { 531 char* name) {
532 Enter3D enter(context_id, true); 532 Enter3D enter(context_id, true);
533 if (enter.succeeded()) { 533 if (enter.succeeded()) {
534 ToGles2Impl(&enter) 534 ToGles2Impl(&enter)->GetActiveUniform(program, index, bufsize, length, size,
535 ->GetActiveUniform(program, index, bufsize, length, size, type, name); 535 type, name);
536 } 536 }
537 } 537 }
538 538
539 void GetAttachedShaders(PP_Resource context_id, 539 void GetAttachedShaders(PP_Resource context_id,
540 GLuint program, 540 GLuint program,
541 GLsizei maxcount, 541 GLsizei maxcount,
542 GLsizei* count, 542 GLsizei* count,
543 GLuint* shaders) { 543 GLuint* shaders) {
544 Enter3D enter(context_id, true); 544 Enter3D enter(context_id, true);
545 if (enter.succeeded()) { 545 if (enter.succeeded()) {
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 } 662 }
663 } 663 }
664 664
665 void GetShaderPrecisionFormat(PP_Resource context_id, 665 void GetShaderPrecisionFormat(PP_Resource context_id,
666 GLenum shadertype, 666 GLenum shadertype,
667 GLenum precisiontype, 667 GLenum precisiontype,
668 GLint* range, 668 GLint* range,
669 GLint* precision) { 669 GLint* precision) {
670 Enter3D enter(context_id, true); 670 Enter3D enter(context_id, true);
671 if (enter.succeeded()) { 671 if (enter.succeeded()) {
672 ToGles2Impl(&enter) 672 ToGles2Impl(&enter)->GetShaderPrecisionFormat(shadertype, precisiontype,
673 ->GetShaderPrecisionFormat(shadertype, precisiontype, range, precision); 673 range, precision);
674 } 674 }
675 } 675 }
676 676
677 void GetShaderSource(PP_Resource context_id, 677 void GetShaderSource(PP_Resource context_id,
678 GLuint shader, 678 GLuint shader,
679 GLsizei bufsize, 679 GLsizei bufsize,
680 GLsizei* length, 680 GLsizei* length,
681 char* source) { 681 char* source) {
682 Enter3D enter(context_id, true); 682 Enter3D enter(context_id, true);
683 if (enter.succeeded()) { 683 if (enter.succeeded()) {
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 } 894 }
895 } 895 }
896 896
897 void RenderbufferStorage(PP_Resource context_id, 897 void RenderbufferStorage(PP_Resource context_id,
898 GLenum target, 898 GLenum target,
899 GLenum internalformat, 899 GLenum internalformat,
900 GLsizei width, 900 GLsizei width,
901 GLsizei height) { 901 GLsizei height) {
902 Enter3D enter(context_id, true); 902 Enter3D enter(context_id, true);
903 if (enter.succeeded()) { 903 if (enter.succeeded()) {
904 ToGles2Impl(&enter) 904 ToGles2Impl(&enter)->RenderbufferStorage(target, internalformat, width,
905 ->RenderbufferStorage(target, internalformat, width, height); 905 height);
906 } 906 }
907 } 907 }
908 908
909 void SampleCoverage(PP_Resource context_id, GLclampf value, GLboolean invert) { 909 void SampleCoverage(PP_Resource context_id, GLclampf value, GLboolean invert) {
910 Enter3D enter(context_id, true); 910 Enter3D enter(context_id, true);
911 if (enter.succeeded()) { 911 if (enter.succeeded()) {
912 ToGles2Impl(&enter)->SampleCoverage(value, invert); 912 ToGles2Impl(&enter)->SampleCoverage(value, invert);
913 } 913 }
914 } 914 }
915 915
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
1350 1350
1351 void VertexAttribPointer(PP_Resource context_id, 1351 void VertexAttribPointer(PP_Resource context_id,
1352 GLuint indx, 1352 GLuint indx,
1353 GLint size, 1353 GLint size,
1354 GLenum type, 1354 GLenum type,
1355 GLboolean normalized, 1355 GLboolean normalized,
1356 GLsizei stride, 1356 GLsizei stride,
1357 const void* ptr) { 1357 const void* ptr) {
1358 Enter3D enter(context_id, true); 1358 Enter3D enter(context_id, true);
1359 if (enter.succeeded()) { 1359 if (enter.succeeded()) {
1360 ToGles2Impl(&enter) 1360 ToGles2Impl(&enter)->VertexAttribPointer(indx, size, type, normalized,
1361 ->VertexAttribPointer(indx, size, type, normalized, stride, ptr); 1361 stride, ptr);
1362 } 1362 }
1363 } 1363 }
1364 1364
1365 void Viewport(PP_Resource context_id, 1365 void Viewport(PP_Resource context_id,
1366 GLint x, 1366 GLint x,
1367 GLint y, 1367 GLint y,
1368 GLsizei width, 1368 GLsizei width,
1369 GLsizei height) { 1369 GLsizei height) {
1370 Enter3D enter(context_id, true); 1370 Enter3D enter(context_id, true);
1371 if (enter.succeeded()) { 1371 if (enter.succeeded()) {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1504 } 1504 }
1505 } 1505 }
1506 1506
1507 void* MapBufferSubDataCHROMIUM(PP_Resource context_id, 1507 void* MapBufferSubDataCHROMIUM(PP_Resource context_id,
1508 GLuint target, 1508 GLuint target,
1509 GLintptr offset, 1509 GLintptr offset,
1510 GLsizeiptr size, 1510 GLsizeiptr size,
1511 GLenum access) { 1511 GLenum access) {
1512 Enter3D enter(context_id, true); 1512 Enter3D enter(context_id, true);
1513 if (enter.succeeded()) { 1513 if (enter.succeeded()) {
1514 return ToGles2Impl(&enter) 1514 return ToGles2Impl(&enter)->MapBufferSubDataCHROMIUM(target, offset, size,
1515 ->MapBufferSubDataCHROMIUM(target, offset, size, access); 1515 access);
1516 } else { 1516 } else {
1517 return NULL; 1517 return NULL;
1518 } 1518 }
1519 } 1519 }
1520 1520
1521 void UnmapBufferSubDataCHROMIUM(PP_Resource context_id, const void* mem) { 1521 void UnmapBufferSubDataCHROMIUM(PP_Resource context_id, const void* mem) {
1522 Enter3D enter(context_id, true); 1522 Enter3D enter(context_id, true);
1523 if (enter.succeeded()) { 1523 if (enter.succeeded()) {
1524 ToGles2Impl(&enter)->UnmapBufferSubDataCHROMIUM(mem); 1524 ToGles2Impl(&enter)->UnmapBufferSubDataCHROMIUM(mem);
1525 } 1525 }
(...skipping 25 matching lines...) Expand all
1551 } 1551 }
1552 } 1552 }
1553 1553
1554 void DrawArraysInstancedANGLE(PP_Resource context_id, 1554 void DrawArraysInstancedANGLE(PP_Resource context_id,
1555 GLenum mode, 1555 GLenum mode,
1556 GLint first, 1556 GLint first,
1557 GLsizei count, 1557 GLsizei count,
1558 GLsizei primcount) { 1558 GLsizei primcount) {
1559 Enter3D enter(context_id, true); 1559 Enter3D enter(context_id, true);
1560 if (enter.succeeded()) { 1560 if (enter.succeeded()) {
1561 ToGles2Impl(&enter) 1561 ToGles2Impl(&enter)->DrawArraysInstancedANGLE(mode, first, count,
1562 ->DrawArraysInstancedANGLE(mode, first, count, primcount); 1562 primcount);
1563 } 1563 }
1564 } 1564 }
1565 1565
1566 void DrawElementsInstancedANGLE(PP_Resource context_id, 1566 void DrawElementsInstancedANGLE(PP_Resource context_id,
1567 GLenum mode, 1567 GLenum mode,
1568 GLsizei count, 1568 GLsizei count,
1569 GLenum type, 1569 GLenum type,
1570 const void* indices, 1570 const void* indices,
1571 GLsizei primcount) { 1571 GLsizei primcount) {
1572 Enter3D enter(context_id, true); 1572 Enter3D enter(context_id, true);
1573 if (enter.succeeded()) { 1573 if (enter.succeeded()) {
1574 ToGles2Impl(&enter) 1574 ToGles2Impl(&enter)->DrawElementsInstancedANGLE(mode, count, type, indices,
1575 ->DrawElementsInstancedANGLE(mode, count, type, indices, primcount); 1575 primcount);
1576 } 1576 }
1577 } 1577 }
1578 1578
1579 void VertexAttribDivisorANGLE(PP_Resource context_id, 1579 void VertexAttribDivisorANGLE(PP_Resource context_id,
1580 GLuint index, 1580 GLuint index,
1581 GLuint divisor) { 1581 GLuint divisor) {
1582 Enter3D enter(context_id, true); 1582 Enter3D enter(context_id, true);
1583 if (enter.succeeded()) { 1583 if (enter.succeeded()) {
1584 ToGles2Impl(&enter)->VertexAttribDivisorANGLE(index, divisor); 1584 ToGles2Impl(&enter)->VertexAttribDivisorANGLE(index, divisor);
1585 } 1585 }
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
1784 &BindVertexArrayOES}; 1784 &BindVertexArrayOES};
1785 return &ppb_opengles2; 1785 return &ppb_opengles2;
1786 } 1786 }
1787 const PPB_OpenGLES2DrawBuffers_Dev* 1787 const PPB_OpenGLES2DrawBuffers_Dev*
1788 PPB_OpenGLES2_Shared::GetDrawBuffersInterface() { 1788 PPB_OpenGLES2_Shared::GetDrawBuffersInterface() {
1789 static const struct PPB_OpenGLES2DrawBuffers_Dev ppb_opengles2 = { 1789 static const struct PPB_OpenGLES2DrawBuffers_Dev ppb_opengles2 = {
1790 &DrawBuffersEXT}; 1790 &DrawBuffersEXT};
1791 return &ppb_opengles2; 1791 return &ppb_opengles2;
1792 } 1792 }
1793 } // namespace ppapi 1793 } // namespace ppapi
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_format_autogen.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698