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 // These functions emulate GLES2 over command buffers. | 9 // These functions emulate GLES2 over command buffers. |
10 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ | 10 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ |
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 } | 588 } |
589 GLboolean GLES2EnableFeatureCHROMIUM(const char* feature) { | 589 GLboolean GLES2EnableFeatureCHROMIUM(const char* feature) { |
590 return gles2::GetGLContext()->EnableFeatureCHROMIUM(feature); | 590 return gles2::GetGLContext()->EnableFeatureCHROMIUM(feature); |
591 } | 591 } |
592 void* GLES2MapBufferCHROMIUM(GLuint target, GLenum access) { | 592 void* GLES2MapBufferCHROMIUM(GLuint target, GLenum access) { |
593 return gles2::GetGLContext()->MapBufferCHROMIUM(target, access); | 593 return gles2::GetGLContext()->MapBufferCHROMIUM(target, access); |
594 } | 594 } |
595 GLboolean GLES2UnmapBufferCHROMIUM(GLuint target) { | 595 GLboolean GLES2UnmapBufferCHROMIUM(GLuint target) { |
596 return gles2::GetGLContext()->UnmapBufferCHROMIUM(target); | 596 return gles2::GetGLContext()->UnmapBufferCHROMIUM(target); |
597 } | 597 } |
| 598 void* GLES2MapImageCHROMIUM(GLuint image_id, GLenum access) { |
| 599 return gles2::GetGLContext()->MapImageCHROMIUM(image_id, access); |
| 600 } |
| 601 GLboolean GLES2UnmapImageCHROMIUM(GLuint image_id) { |
| 602 return gles2::GetGLContext()->UnmapImageCHROMIUM(image_id); |
| 603 } |
598 void* GLES2MapBufferSubDataCHROMIUM( | 604 void* GLES2MapBufferSubDataCHROMIUM( |
599 GLuint target, GLintptr offset, GLsizeiptr size, GLenum access) { | 605 GLuint target, GLintptr offset, GLsizeiptr size, GLenum access) { |
600 return gles2::GetGLContext()->MapBufferSubDataCHROMIUM( | 606 return gles2::GetGLContext()->MapBufferSubDataCHROMIUM( |
601 target, offset, size, access); | 607 target, offset, size, access); |
602 } | 608 } |
603 void GLES2UnmapBufferSubDataCHROMIUM(const void* mem) { | 609 void GLES2UnmapBufferSubDataCHROMIUM(const void* mem) { |
604 gles2::GetGLContext()->UnmapBufferSubDataCHROMIUM(mem); | 610 gles2::GetGLContext()->UnmapBufferSubDataCHROMIUM(mem); |
605 } | 611 } |
606 void* GLES2MapTexSubImage2DCHROMIUM( | 612 void* GLES2MapTexSubImage2DCHROMIUM( |
607 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, | 613 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, |
(...skipping 24 matching lines...) Expand all Loading... |
632 void GLES2GetProgramInfoCHROMIUM( | 638 void GLES2GetProgramInfoCHROMIUM( |
633 GLuint program, GLsizei bufsize, GLsizei* size, void* info) { | 639 GLuint program, GLsizei bufsize, GLsizei* size, void* info) { |
634 gles2::GetGLContext()->GetProgramInfoCHROMIUM(program, bufsize, size, info); | 640 gles2::GetGLContext()->GetProgramInfoCHROMIUM(program, bufsize, size, info); |
635 } | 641 } |
636 GLuint GLES2CreateStreamTextureCHROMIUM(GLuint texture) { | 642 GLuint GLES2CreateStreamTextureCHROMIUM(GLuint texture) { |
637 return gles2::GetGLContext()->CreateStreamTextureCHROMIUM(texture); | 643 return gles2::GetGLContext()->CreateStreamTextureCHROMIUM(texture); |
638 } | 644 } |
639 void GLES2DestroyStreamTextureCHROMIUM(GLuint texture) { | 645 void GLES2DestroyStreamTextureCHROMIUM(GLuint texture) { |
640 gles2::GetGLContext()->DestroyStreamTextureCHROMIUM(texture); | 646 gles2::GetGLContext()->DestroyStreamTextureCHROMIUM(texture); |
641 } | 647 } |
| 648 GLuint GLES2CreateImageCHROMIUM(GLsizei width, GLsizei height) { |
| 649 return gles2::GetGLContext()->CreateImageCHROMIUM(width, height); |
| 650 } |
| 651 void GLES2DestroyImageCHROMIUM(GLuint image_id) { |
| 652 gles2::GetGLContext()->DestroyImageCHROMIUM(image_id); |
| 653 } |
| 654 void GLES2GetImageParameterivCHROMIUM( |
| 655 GLuint image_id, GLenum pname, GLint* params) { |
| 656 gles2::GetGLContext()->GetImageParameterivCHROMIUM(image_id, pname, params); |
| 657 } |
642 void GLES2GetTranslatedShaderSourceANGLE( | 658 void GLES2GetTranslatedShaderSourceANGLE( |
643 GLuint shader, GLsizei bufsize, GLsizei* length, char* source) { | 659 GLuint shader, GLsizei bufsize, GLsizei* length, char* source) { |
644 gles2::GetGLContext()->GetTranslatedShaderSourceANGLE( | 660 gles2::GetGLContext()->GetTranslatedShaderSourceANGLE( |
645 shader, bufsize, length, source); | 661 shader, bufsize, length, source); |
646 } | 662 } |
647 void GLES2PostSubBufferCHROMIUM(GLint x, GLint y, GLint width, GLint height) { | 663 void GLES2PostSubBufferCHROMIUM(GLint x, GLint y, GLint width, GLint height) { |
648 gles2::GetGLContext()->PostSubBufferCHROMIUM(x, y, width, height); | 664 gles2::GetGLContext()->PostSubBufferCHROMIUM(x, y, width, height); |
649 } | 665 } |
650 void GLES2TexImageIOSurface2DCHROMIUM( | 666 void GLES2TexImageIOSurface2DCHROMIUM( |
651 GLenum target, GLsizei width, GLsizei height, GLuint ioSurfaceId, | 667 GLenum target, GLsizei width, GLsizei height, GLuint ioSurfaceId, |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
999 { "glDeleteSharedIdsCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1015 { "glDeleteSharedIdsCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
1000 glDeleteSharedIdsCHROMIUM), }, | 1016 glDeleteSharedIdsCHROMIUM), }, |
1001 { "glRegisterSharedIdsCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1017 { "glRegisterSharedIdsCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
1002 glRegisterSharedIdsCHROMIUM), }, | 1018 glRegisterSharedIdsCHROMIUM), }, |
1003 { "glEnableFeatureCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1019 { "glEnableFeatureCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
1004 glEnableFeatureCHROMIUM), }, | 1020 glEnableFeatureCHROMIUM), }, |
1005 { "glMapBufferCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1021 { "glMapBufferCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
1006 glMapBufferCHROMIUM), }, | 1022 glMapBufferCHROMIUM), }, |
1007 { "glUnmapBufferCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1023 { "glUnmapBufferCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
1008 glUnmapBufferCHROMIUM), }, | 1024 glUnmapBufferCHROMIUM), }, |
| 1025 { "glMapImageCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
| 1026 glMapImageCHROMIUM), }, |
| 1027 { "glUnmapImageCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
| 1028 glUnmapImageCHROMIUM), }, |
1009 { "glMapBufferSubDataCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1029 { "glMapBufferSubDataCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
1010 glMapBufferSubDataCHROMIUM), }, | 1030 glMapBufferSubDataCHROMIUM), }, |
1011 { "glUnmapBufferSubDataCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1031 { "glUnmapBufferSubDataCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
1012 glUnmapBufferSubDataCHROMIUM), }, | 1032 glUnmapBufferSubDataCHROMIUM), }, |
1013 { "glMapTexSubImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1033 { "glMapTexSubImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
1014 glMapTexSubImage2DCHROMIUM), }, | 1034 glMapTexSubImage2DCHROMIUM), }, |
1015 { "glUnmapTexSubImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1035 { "glUnmapTexSubImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
1016 glUnmapTexSubImage2DCHROMIUM), }, | 1036 glUnmapTexSubImage2DCHROMIUM), }, |
1017 { "glResizeCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1037 { "glResizeCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
1018 glResizeCHROMIUM), }, | 1038 glResizeCHROMIUM), }, |
1019 { "glGetRequestableExtensionsCHROMIUM", reinterpret_cast<GLES2FunctionPointer>
(glGetRequestableExtensionsCHROMIUM), }, // NOLINT | 1039 { "glGetRequestableExtensionsCHROMIUM", reinterpret_cast<GLES2FunctionPointer>
(glGetRequestableExtensionsCHROMIUM), }, // NOLINT |
1020 { "glRequestExtensionCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1040 { "glRequestExtensionCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
1021 glRequestExtensionCHROMIUM), }, | 1041 glRequestExtensionCHROMIUM), }, |
1022 { "glRateLimitOffscreenContextCHROMIUM", reinterpret_cast<GLES2FunctionPointer
>(glRateLimitOffscreenContextCHROMIUM), }, // NOLINT | 1042 { "glRateLimitOffscreenContextCHROMIUM", reinterpret_cast<GLES2FunctionPointer
>(glRateLimitOffscreenContextCHROMIUM), }, // NOLINT |
1023 { "glGetMultipleIntegervCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1043 { "glGetMultipleIntegervCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
1024 glGetMultipleIntegervCHROMIUM), }, | 1044 glGetMultipleIntegervCHROMIUM), }, |
1025 { "glGetProgramInfoCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1045 { "glGetProgramInfoCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
1026 glGetProgramInfoCHROMIUM), }, | 1046 glGetProgramInfoCHROMIUM), }, |
1027 { "glCreateStreamTextureCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1047 { "glCreateStreamTextureCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
1028 glCreateStreamTextureCHROMIUM), }, | 1048 glCreateStreamTextureCHROMIUM), }, |
1029 { "glDestroyStreamTextureCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1049 { "glDestroyStreamTextureCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
1030 glDestroyStreamTextureCHROMIUM), }, | 1050 glDestroyStreamTextureCHROMIUM), }, |
| 1051 { "glCreateImageCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
| 1052 glCreateImageCHROMIUM), }, |
| 1053 { "glDestroyImageCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
| 1054 glDestroyImageCHROMIUM), }, |
| 1055 { "glGetImageParameterivCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
| 1056 glGetImageParameterivCHROMIUM), }, |
1031 { "glGetTranslatedShaderSourceANGLE", reinterpret_cast<GLES2FunctionPointer>( | 1057 { "glGetTranslatedShaderSourceANGLE", reinterpret_cast<GLES2FunctionPointer>( |
1032 glGetTranslatedShaderSourceANGLE), }, | 1058 glGetTranslatedShaderSourceANGLE), }, |
1033 { "glPostSubBufferCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1059 { "glPostSubBufferCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
1034 glPostSubBufferCHROMIUM), }, | 1060 glPostSubBufferCHROMIUM), }, |
1035 { "glTexImageIOSurface2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1061 { "glTexImageIOSurface2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
1036 glTexImageIOSurface2DCHROMIUM), }, | 1062 glTexImageIOSurface2DCHROMIUM), }, |
1037 { "glCopyTextureCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1063 { "glCopyTextureCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
1038 glCopyTextureCHROMIUM), }, | 1064 glCopyTextureCHROMIUM), }, |
1039 { "glDrawArraysInstancedANGLE", reinterpret_cast<GLES2FunctionPointer>( | 1065 { "glDrawArraysInstancedANGLE", reinterpret_cast<GLES2FunctionPointer>( |
1040 glDrawArraysInstancedANGLE), }, | 1066 glDrawArraysInstancedANGLE), }, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1073 { "glWaitSyncPointCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1099 { "glWaitSyncPointCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
1074 glWaitSyncPointCHROMIUM), }, | 1100 glWaitSyncPointCHROMIUM), }, |
1075 { "glDrawBuffersEXT", reinterpret_cast<GLES2FunctionPointer>( | 1101 { "glDrawBuffersEXT", reinterpret_cast<GLES2FunctionPointer>( |
1076 glDrawBuffersEXT), }, | 1102 glDrawBuffersEXT), }, |
1077 { NULL, NULL, }, | 1103 { NULL, NULL, }, |
1078 }; | 1104 }; |
1079 | 1105 |
1080 } // namespace gles2 | 1106 } // namespace gles2 |
1081 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ | 1107 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ |
1082 | 1108 |
OLD | NEW |