diff options
author | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-17 10:19:09 +0000 |
---|---|---|
committer | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-17 10:19:09 +0000 |
commit | c4485aad698e143020b8177d688005d1a1705223 (patch) | |
tree | e6fb0ddfda378597f540f5650851492e7b26b801 /gpu/command_buffer/build_gles2_cmd_buffer.py | |
parent | 40b2d96a694b5dcdf9883d7296c132115670e0a9 (diff) | |
download | chromium_src-c4485aad698e143020b8177d688005d1a1705223.zip chromium_src-c4485aad698e143020b8177d688005d1a1705223.tar.gz chromium_src-c4485aad698e143020b8177d688005d1a1705223.tar.bz2 |
Add a command to lose the context
BUG=166020
Review URL: https://chromiumcodereview.appspot.com/11568029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173441 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/build_gles2_cmd_buffer.py')
-rwxr-xr-x | gpu/command_buffer/build_gles2_cmd_buffer.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/gpu/command_buffer/build_gles2_cmd_buffer.py b/gpu/command_buffer/build_gles2_cmd_buffer.py index 8ea1d3c..9babf73 100755 --- a/gpu/command_buffer/build_gles2_cmd_buffer.py +++ b/gpu/command_buffer/build_gles2_cmd_buffer.py @@ -1114,6 +1114,14 @@ _ENUM_LISTS = { 'true', ], }, + 'ResetStatus': { + 'type': 'GLenum', + 'valid': [ + 'GL_GUILTY_CONTEXT_RESET_ARB', + 'GL_INNOCENT_CONTEXT_RESET_ARB', + 'GL_UNKNOWN_CONTEXT_RESET_ARB', + ], + }, } # This table specifies the different pepper interfaces that are supported for @@ -2296,6 +2304,12 @@ _FUNCTION_INFO = { 'client_test': False, 'extension': True, }, + 'LoseContextCHROMIUM': { + 'type': 'Manual', + 'impl_func': True, + 'extension': True, + 'chromium': True, + }, } @@ -3354,7 +3368,8 @@ class ManualHandler(CustomHandler): def WriteGLES2Implementation(self, func, file): """Overrriden from TypeHandler.""" - pass + if func.GetInfo('impl_func'): + super(ManualHandler, self).WriteGLES2Implementation(func, file) def WriteGLES2ImplementationHeader(self, func, file): """Overrriden from TypeHandler.""" |