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

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: 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
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 7a3e69735d5c54d9c754ada68ab4e99bfa5a3e98..df9bdd92db86bb183764179c0f92e079abb7463b 100755
--- a/gpu/command_buffer/build_gles2_cmd_buffer.py
+++ b/gpu/command_buffer/build_gles2_cmd_buffer.py
@@ -2290,6 +2290,12 @@ _FUNCTION_INFO = {
'client_test': False,
'extension': True,
},
+ 'LoseContextCHROMIUM': {
+ 'type': 'Manual',
+ 'impl_func': True,
+ 'extension': True,
+ 'chromium': True,
+ },
}
@@ -3346,7 +3352,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 | « no previous file | gpu/command_buffer/client/gles2_c_lib_autogen.h » ('j') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698