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

Side by Side Diff: gpu/command_buffer/client/gles2_c_lib_autogen.h

Issue 11568029: Add a command to lose the context (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add docs, lose parent and children, fix typo Created 8 years 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
OLDNEW
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 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 GLsizei height, GLint border, GLenum format, GLenum type, 708 GLsizei height, GLint border, GLenum format, GLenum type,
709 const void* pixels) { 709 const void* pixels) {
710 gles2::GetGLContext()->AsyncTexImage2DCHROMIUM( 710 gles2::GetGLContext()->AsyncTexImage2DCHROMIUM(
711 target, level, internalformat, width, height, border, format, type, 711 target, level, internalformat, width, height, border, format, type,
712 pixels); 712 pixels);
713 } 713 }
714 void GLES2DiscardFramebufferEXT( 714 void GLES2DiscardFramebufferEXT(
715 GLenum target, GLsizei count, const GLenum* attachments) { 715 GLenum target, GLsizei count, const GLenum* attachments) {
716 gles2::GetGLContext()->DiscardFramebufferEXT(target, count, attachments); 716 gles2::GetGLContext()->DiscardFramebufferEXT(target, count, attachments);
717 } 717 }
718 void GLES2LoseContextCHROMIUM(GLenum current, GLenum other) {
719 gles2::GetGLContext()->LoseContextCHROMIUM(current, other);
720 }
718 721
719 namespace gles2 { 722 namespace gles2 {
720 723
721 NameToFunc g_gles2_function_table[] = { 724 NameToFunc g_gles2_function_table[] = {
722 { "glActiveTexture", reinterpret_cast<GLES2FunctionPointer>( 725 { "glActiveTexture", reinterpret_cast<GLES2FunctionPointer>(
723 glActiveTexture), }, 726 glActiveTexture), },
724 { "glAttachShader", reinterpret_cast<GLES2FunctionPointer>( 727 { "glAttachShader", reinterpret_cast<GLES2FunctionPointer>(
725 glAttachShader), }, 728 glAttachShader), },
726 { "glBindAttribLocation", reinterpret_cast<GLES2FunctionPointer>( 729 { "glBindAttribLocation", reinterpret_cast<GLES2FunctionPointer>(
727 glBindAttribLocation), }, 730 glBindAttribLocation), },
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 { "glTraceBeginCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( 1044 { "glTraceBeginCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1042 glTraceBeginCHROMIUM), }, 1045 glTraceBeginCHROMIUM), },
1043 { "glTraceEndCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( 1046 { "glTraceEndCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1044 glTraceEndCHROMIUM), }, 1047 glTraceEndCHROMIUM), },
1045 { "glAsyncTexSubImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( 1048 { "glAsyncTexSubImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1046 glAsyncTexSubImage2DCHROMIUM), }, 1049 glAsyncTexSubImage2DCHROMIUM), },
1047 { "glAsyncTexImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>( 1050 { "glAsyncTexImage2DCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1048 glAsyncTexImage2DCHROMIUM), }, 1051 glAsyncTexImage2DCHROMIUM), },
1049 { "glDiscardFramebufferEXT", reinterpret_cast<GLES2FunctionPointer>( 1052 { "glDiscardFramebufferEXT", reinterpret_cast<GLES2FunctionPointer>(
1050 glDiscardFramebufferEXT), }, 1053 glDiscardFramebufferEXT), },
1054 { "glLoseContextCHROMIUM", reinterpret_cast<GLES2FunctionPointer>(
1055 glLoseContextCHROMIUM), },
1051 { NULL, NULL, }, 1056 { NULL, NULL, },
1052 }; 1057 };
1053 1058
1054 } // namespace gles2 1059 } // namespace gles2
1055 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_ 1060 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_
1056 1061
OLDNEW
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/client/gles2_cmd_helper_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698