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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 void GLES2WaitAsyncTexImage2DCHROMIUM(GLenum target) { | 715 void GLES2WaitAsyncTexImage2DCHROMIUM(GLenum target) { |
716 gles2::GetGLContext()->WaitAsyncTexImage2DCHROMIUM(target); | 716 gles2::GetGLContext()->WaitAsyncTexImage2DCHROMIUM(target); |
717 } | 717 } |
718 void GLES2DiscardFramebufferEXT( | 718 void GLES2DiscardFramebufferEXT( |
719 GLenum target, GLsizei count, const GLenum* attachments) { | 719 GLenum target, GLsizei count, const GLenum* attachments) { |
720 gles2::GetGLContext()->DiscardFramebufferEXT(target, count, attachments); | 720 gles2::GetGLContext()->DiscardFramebufferEXT(target, count, attachments); |
721 } | 721 } |
722 void GLES2LoseContextCHROMIUM(GLenum current, GLenum other) { | 722 void GLES2LoseContextCHROMIUM(GLenum current, GLenum other) { |
723 gles2::GetGLContext()->LoseContextCHROMIUM(current, other); | 723 gles2::GetGLContext()->LoseContextCHROMIUM(current, other); |
724 } | 724 } |
| 725 GLuint GLES2InsertSyncPointCHROMIUM() { |
| 726 return gles2::GetGLContext()->InsertSyncPointCHROMIUM(); |
| 727 } |
725 void GLES2WaitSyncPointCHROMIUM(GLuint sync_point) { | 728 void GLES2WaitSyncPointCHROMIUM(GLuint sync_point) { |
726 gles2::GetGLContext()->WaitSyncPointCHROMIUM(sync_point); | 729 gles2::GetGLContext()->WaitSyncPointCHROMIUM(sync_point); |
727 } | 730 } |
728 | 731 |
729 namespace gles2 { | 732 namespace gles2 { |
730 | 733 |
731 NameToFunc g_gles2_function_table[] = { | 734 NameToFunc g_gles2_function_table[] = { |
732 { "glActiveTexture", reinterpret_cast<GLES2FunctionPointer>( | 735 { "glActiveTexture", reinterpret_cast<GLES2FunctionPointer>( |
733 glActiveTexture), }, | 736 glActiveTexture), }, |
734 { "glAttachShader", reinterpret_cast<GLES2FunctionPointer>( | 737 { "glAttachShader", reinterpret_cast<GLES2FunctionPointer>( |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1055 { "glAsyncTexSubImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1058 { "glAsyncTexSubImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
1056 glAsyncTexSubImage2DCHROMIUM), }, | 1059 glAsyncTexSubImage2DCHROMIUM), }, |
1057 { "glAsyncTexImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1060 { "glAsyncTexImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
1058 glAsyncTexImage2DCHROMIUM), }, | 1061 glAsyncTexImage2DCHROMIUM), }, |
1059 { "glWaitAsyncTexImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1062 { "glWaitAsyncTexImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
1060 glWaitAsyncTexImage2DCHROMIUM), }, | 1063 glWaitAsyncTexImage2DCHROMIUM), }, |
1061 { "glDiscardFramebufferEXT", reinterpret_cast<GLES2FunctionPointer>( | 1064 { "glDiscardFramebufferEXT", reinterpret_cast<GLES2FunctionPointer>( |
1062 glDiscardFramebufferEXT), }, | 1065 glDiscardFramebufferEXT), }, |
1063 { "glLoseContextCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1066 { "glLoseContextCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
1064 glLoseContextCHROMIUM), }, | 1067 glLoseContextCHROMIUM), }, |
| 1068 { "glInsertSyncPointCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
| 1069 glInsertSyncPointCHROMIUM), }, |
1065 { "glWaitSyncPointCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( | 1070 { "glWaitSyncPointCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( |
1066 glWaitSyncPointCHROMIUM), }, | 1071 glWaitSyncPointCHROMIUM), }, |
1067 { NULL, NULL, }, | 1072 { NULL, NULL, }, |
1068 }; | 1073 }; |
1069 | 1074 |
1070 } // namespace gles2 | 1075 } // namespace gles2 |
1071 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ | 1076 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ |
1072 | 1077 |
OLD | NEW |