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

Unified Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/GLES2/gl2chromium.h ('k') | gpu/command_buffer/client/gles2_c_lib_autogen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/build_gles2_cmd_buffer.py
diff --git a/gpu/command_buffer/build_gles2_cmd_buffer.py b/gpu/command_buffer/build_gles2_cmd_buffer.py
index 8ea1d3c53ba62afa74904817dc81de3ff16e149b..9babf735c5b20b1bbf13406af2be8a301303c93d 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."""
« no previous file with comments | « gpu/GLES2/gl2chromium.h ('k') | gpu/command_buffer/client/gles2_c_lib_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698