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

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

Issue 397183002: Add PPAPI interface for OpenGL ES 2.0 Vertex Array Objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/shared_impl/ppb_opengles2_shared.h ('k') | ppapi/tests/test_graphics_3d.cc » ('j') | 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 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after
1469 void GetQueryObjectuivEXT(PP_Resource context_id, 1469 void GetQueryObjectuivEXT(PP_Resource context_id,
1470 GLuint id, 1470 GLuint id,
1471 GLenum pname, 1471 GLenum pname,
1472 GLuint* params) { 1472 GLuint* params) {
1473 Enter3D enter(context_id, true); 1473 Enter3D enter(context_id, true);
1474 if (enter.succeeded()) { 1474 if (enter.succeeded()) {
1475 ToGles2Impl(&enter)->GetQueryObjectuivEXT(id, pname, params); 1475 ToGles2Impl(&enter)->GetQueryObjectuivEXT(id, pname, params);
1476 } 1476 }
1477 } 1477 }
1478 1478
1479 void GenVertexArraysOES(PP_Resource context_id, GLsizei n, GLuint* arrays) {
1480 Enter3D enter(context_id, true);
1481 if (enter.succeeded()) {
1482 ToGles2Impl(&enter)->GenVertexArraysOES(n, arrays);
1483 }
1484 }
1485
1486 void DeleteVertexArraysOES(PP_Resource context_id,
1487 GLsizei n,
1488 const GLuint* arrays) {
1489 Enter3D enter(context_id, true);
1490 if (enter.succeeded()) {
1491 ToGles2Impl(&enter)->DeleteVertexArraysOES(n, arrays);
1492 }
1493 }
1494
1495 GLboolean IsVertexArrayOES(PP_Resource context_id, GLuint array) {
1496 Enter3D enter(context_id, true);
1497 if (enter.succeeded()) {
1498 return ToGles2Impl(&enter)->IsVertexArrayOES(array);
1499 } else {
1500 return GL_FALSE;
1501 }
1502 }
1503
1504 void BindVertexArrayOES(PP_Resource context_id, GLuint array) {
1505 Enter3D enter(context_id, true);
1506 if (enter.succeeded()) {
1507 ToGles2Impl(&enter)->BindVertexArrayOES(array);
1508 }
1509 }
1510
1479 GLboolean EnableFeatureCHROMIUM(PP_Resource context_id, const char* feature) { 1511 GLboolean EnableFeatureCHROMIUM(PP_Resource context_id, const char* feature) {
1480 Enter3D enter(context_id, true); 1512 Enter3D enter(context_id, true);
1481 if (enter.succeeded()) { 1513 if (enter.succeeded()) {
1482 return ToGles2Impl(&enter)->EnableFeatureCHROMIUM(feature); 1514 return ToGles2Impl(&enter)->EnableFeatureCHROMIUM(feature);
1483 } else { 1515 } else {
1484 return GL_FALSE; 1516 return GL_FALSE;
1485 } 1517 }
1486 } 1518 }
1487 1519
1488 void* MapBufferSubDataCHROMIUM(PP_Resource context_id, 1520 void* MapBufferSubDataCHROMIUM(PP_Resource context_id,
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1680 &MapBufferSubDataCHROMIUM, &UnmapBufferSubDataCHROMIUM, 1712 &MapBufferSubDataCHROMIUM, &UnmapBufferSubDataCHROMIUM,
1681 &MapTexSubImage2DCHROMIUM, &UnmapTexSubImage2DCHROMIUM}; 1713 &MapTexSubImage2DCHROMIUM, &UnmapTexSubImage2DCHROMIUM};
1682 return &ppb_opengles2; 1714 return &ppb_opengles2;
1683 } 1715 }
1684 const PPB_OpenGLES2Query* PPB_OpenGLES2_Shared::GetQueryInterface() { 1716 const PPB_OpenGLES2Query* PPB_OpenGLES2_Shared::GetQueryInterface() {
1685 static const struct PPB_OpenGLES2Query ppb_opengles2 = { 1717 static const struct PPB_OpenGLES2Query ppb_opengles2 = {
1686 &GenQueriesEXT, &DeleteQueriesEXT, &IsQueryEXT, &BeginQueryEXT, 1718 &GenQueriesEXT, &DeleteQueriesEXT, &IsQueryEXT, &BeginQueryEXT,
1687 &EndQueryEXT, &GetQueryivEXT, &GetQueryObjectuivEXT}; 1719 &EndQueryEXT, &GetQueryivEXT, &GetQueryObjectuivEXT};
1688 return &ppb_opengles2; 1720 return &ppb_opengles2;
1689 } 1721 }
1722 const PPB_OpenGLES2VertexArrayObject*
1723 PPB_OpenGLES2_Shared::GetVertexArrayObjectInterface() {
1724 static const struct PPB_OpenGLES2VertexArrayObject ppb_opengles2 = {
1725 &GenVertexArraysOES, &DeleteVertexArraysOES, &IsVertexArrayOES,
1726 &BindVertexArrayOES};
1727 return &ppb_opengles2;
1728 }
1690 const PPB_OpenGLES2DrawBuffers_Dev* 1729 const PPB_OpenGLES2DrawBuffers_Dev*
1691 PPB_OpenGLES2_Shared::GetDrawBuffersInterface() { 1730 PPB_OpenGLES2_Shared::GetDrawBuffersInterface() {
1692 static const struct PPB_OpenGLES2DrawBuffers_Dev ppb_opengles2 = { 1731 static const struct PPB_OpenGLES2DrawBuffers_Dev ppb_opengles2 = {
1693 &DrawBuffersEXT}; 1732 &DrawBuffersEXT};
1694 return &ppb_opengles2; 1733 return &ppb_opengles2;
1695 } 1734 }
1696 } // namespace ppapi 1735 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/shared_impl/ppb_opengles2_shared.h ('k') | ppapi/tests/test_graphics_3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698