Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // DO NOT EDIT! | 7 // DO NOT EDIT! |
| 8 | 8 |
| 9 #include "ppapi/shared_impl/ppb_opengles2_shared.h" | 9 #include "ppapi/shared_impl/ppb_opengles2_shared.h" |
| 10 | 10 |
| (...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 754 } | 754 } |
| 755 | 755 |
| 756 void RenderbufferStorageMultisampleEXT( | 756 void RenderbufferStorageMultisampleEXT( |
| 757 PP_Resource context_id, GLenum target, GLsizei samples, | 757 PP_Resource context_id, GLenum target, GLsizei samples, |
| 758 GLenum internalformat, GLsizei width, GLsizei height) { | 758 GLenum internalformat, GLsizei width, GLsizei height) { |
| 759 GetGLES( | 759 GetGLES( |
| 760 context_id)->RenderbufferStorageMultisampleEXT( | 760 context_id)->RenderbufferStorageMultisampleEXT( |
| 761 target, samples, internalformat, width, height); | 761 target, samples, internalformat, width, height); |
| 762 } | 762 } |
| 763 | 763 |
| 764 void GenQueriesEXT(PP_Resource context_id, GLsizei n, GLuint* queries) { | |
| 765 GetGLES(context_id)->GenQueriesEXT(n, queries); | |
| 766 } | |
| 767 | |
| 768 void DeleteQueriesEXT( | |
| 769 PP_Resource context_id, GLsizei n, const GLuint* queries) { | |
| 770 GetGLES(context_id)->DeleteQueriesEXT(n, queries); | |
| 771 } | |
| 772 | |
| 773 GLboolean IsQueryEXT(PP_Resource context_id, GLuint id) { | |
| 774 return GetGLES(context_id)->IsQueryEXT(id); | |
| 775 } | |
| 776 | |
| 777 void BeginQueryEXT(PP_Resource context_id, GLenum target, GLuint id) { | |
| 778 GetGLES(context_id)->BeginQueryEXT(target, id); | |
| 779 } | |
| 780 | |
| 781 void EndQueryEXT(PP_Resource context_id, GLenum target) { | |
| 782 GetGLES(context_id)->EndQueryEXT(target); | |
| 783 } | |
| 784 | |
| 785 void GetQueryivEXT( | |
| 786 PP_Resource context_id, GLenum target, GLenum pname, GLint* params) { | |
| 787 GetGLES(context_id)->GetQueryivEXT(target, pname, params); | |
| 788 } | |
| 789 | |
| 790 void GetQueryObjectuivEXT( | |
| 791 PP_Resource context_id, GLuint id, GLenum pname, GLuint* params) { | |
| 792 GetGLES(context_id)->GetQueryObjectuivEXT(id, pname, params); | |
| 793 } | |
| 794 | |
| 764 GLboolean EnableFeatureCHROMIUM(PP_Resource context_id, const char* feature) { | 795 GLboolean EnableFeatureCHROMIUM(PP_Resource context_id, const char* feature) { |
| 765 return GetGLES(context_id)->EnableFeatureCHROMIUM(feature); | 796 return GetGLES(context_id)->EnableFeatureCHROMIUM(feature); |
| 766 } | 797 } |
| 767 | 798 |
| 768 void* MapBufferSubDataCHROMIUM( | 799 void* MapBufferSubDataCHROMIUM( |
| 769 PP_Resource context_id, GLuint target, GLintptr offset, GLsizeiptr size, | 800 PP_Resource context_id, GLuint target, GLintptr offset, GLsizeiptr size, |
| 770 GLenum access) { | 801 GLenum access) { |
| 771 return GetGLES( | 802 return GetGLES( |
| 772 context_id)->MapBufferSubDataCHROMIUM(target, offset, size, access); | 803 context_id)->MapBufferSubDataCHROMIUM(target, offset, size, access); |
| 773 } | 804 } |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 950 &VertexAttrib2fv, | 981 &VertexAttrib2fv, |
| 951 &VertexAttrib3f, | 982 &VertexAttrib3f, |
| 952 &VertexAttrib3fv, | 983 &VertexAttrib3fv, |
| 953 &VertexAttrib4f, | 984 &VertexAttrib4f, |
| 954 &VertexAttrib4fv, | 985 &VertexAttrib4fv, |
| 955 &VertexAttribPointer, | 986 &VertexAttribPointer, |
| 956 &Viewport | 987 &Viewport |
| 957 }; | 988 }; |
| 958 return &ppb_opengles2; | 989 return &ppb_opengles2; |
| 959 } | 990 } |
| 960 const PPB_OpenGLES2InstancedArrays_Dev* | 991 const PPB_OpenGLES2InstancedArrays_Dev* PPB_OpenGLES2_Shared::GetInstancedArrays Interface() { // NOLINT |
|
dmichael (off chromium)
2012/03/16 22:15:53
NOLINT is a big hammer; I think it would be better
| |
| 961 PPB_OpenGLES2_Shared::GetInstancedArraysInterface() { | |
| 962 static const struct PPB_OpenGLES2InstancedArrays_Dev ppb_opengles2 = { | 992 static const struct PPB_OpenGLES2InstancedArrays_Dev ppb_opengles2 = { |
| 963 &DrawArraysInstancedANGLE, | 993 &DrawArraysInstancedANGLE, |
| 964 &DrawElementsInstancedANGLE, | 994 &DrawElementsInstancedANGLE, |
| 965 &VertexAttribDivisorANGLE | 995 &VertexAttribDivisorANGLE |
| 966 }; | 996 }; |
| 967 return &ppb_opengles2; | 997 return &ppb_opengles2; |
| 968 } | 998 } |
| 969 const PPB_OpenGLES2FramebufferBlit_Dev* | 999 const PPB_OpenGLES2FramebufferBlit_Dev* PPB_OpenGLES2_Shared::GetFramebufferBlit Interface() { // NOLINT |
| 970 PPB_OpenGLES2_Shared::GetFramebufferBlitInterface() { | |
| 971 static const struct PPB_OpenGLES2FramebufferBlit_Dev ppb_opengles2 = { | 1000 static const struct PPB_OpenGLES2FramebufferBlit_Dev ppb_opengles2 = { |
| 972 &BlitFramebufferEXT | 1001 &BlitFramebufferEXT |
| 973 }; | 1002 }; |
| 974 return &ppb_opengles2; | 1003 return &ppb_opengles2; |
| 975 } | 1004 } |
| 976 const PPB_OpenGLES2FramebufferMultisample_Dev* | 1005 const PPB_OpenGLES2FramebufferMultisample_Dev* PPB_OpenGLES2_Shared::GetFramebuf ferMultisampleInterface() { // NOLINT |
| 977 PPB_OpenGLES2_Shared::GetFramebufferMultisampleInterface() { | |
| 978 static const struct PPB_OpenGLES2FramebufferMultisample_Dev ppb_opengles2 = { | 1006 static const struct PPB_OpenGLES2FramebufferMultisample_Dev ppb_opengles2 = { |
| 979 &RenderbufferStorageMultisampleEXT | 1007 &RenderbufferStorageMultisampleEXT |
| 980 }; | 1008 }; |
| 981 return &ppb_opengles2; | 1009 return &ppb_opengles2; |
| 982 } | 1010 } |
| 983 const PPB_OpenGLES2ChromiumEnableFeature_Dev* | 1011 const PPB_OpenGLES2ChromiumEnableFeature_Dev* PPB_OpenGLES2_Shared::GetChromiumE nableFeatureInterface() { // NOLINT |
| 984 PPB_OpenGLES2_Shared::GetChromiumEnableFeatureInterface() { | |
| 985 static const struct PPB_OpenGLES2ChromiumEnableFeature_Dev ppb_opengles2 = { | 1012 static const struct PPB_OpenGLES2ChromiumEnableFeature_Dev ppb_opengles2 = { |
| 986 &EnableFeatureCHROMIUM | 1013 &EnableFeatureCHROMIUM |
| 987 }; | 1014 }; |
| 988 return &ppb_opengles2; | 1015 return &ppb_opengles2; |
| 989 } | 1016 } |
| 990 const PPB_OpenGLES2ChromiumMapSub_Dev* | 1017 const PPB_OpenGLES2ChromiumMapSub_Dev* PPB_OpenGLES2_Shared::GetChromiumMapSubIn terface() { // NOLINT |
| 991 PPB_OpenGLES2_Shared::GetChromiumMapSubInterface() { | |
| 992 static const struct PPB_OpenGLES2ChromiumMapSub_Dev ppb_opengles2 = { | 1018 static const struct PPB_OpenGLES2ChromiumMapSub_Dev ppb_opengles2 = { |
| 993 &MapBufferSubDataCHROMIUM, | 1019 &MapBufferSubDataCHROMIUM, |
| 994 &UnmapBufferSubDataCHROMIUM, | 1020 &UnmapBufferSubDataCHROMIUM, |
| 995 &MapTexSubImage2DCHROMIUM, | 1021 &MapTexSubImage2DCHROMIUM, |
| 996 &UnmapTexSubImage2DCHROMIUM | 1022 &UnmapTexSubImage2DCHROMIUM |
| 997 }; | 1023 }; |
| 998 return &ppb_opengles2; | 1024 return &ppb_opengles2; |
| 999 } | 1025 } |
| 1026 const PPB_OpenGLES2Query_Dev* PPB_OpenGLES2_Shared::GetQueryInterface() { | |
| 1027 static const struct PPB_OpenGLES2Query_Dev ppb_opengles2 = { | |
| 1028 &GenQueriesEXT, | |
| 1029 &DeleteQueriesEXT, | |
| 1030 &IsQueryEXT, | |
| 1031 &BeginQueryEXT, | |
| 1032 &EndQueryEXT, | |
| 1033 &GetQueryivEXT, | |
| 1034 &GetQueryObjectuivEXT | |
| 1035 }; | |
| 1036 return &ppb_opengles2; | |
| 1037 } | |
| 1000 } // namespace ppapi | 1038 } // namespace ppapi |
| OLD | NEW |