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

Unified Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 7890046: Command to mark surface inactive, so gpu process can release resources. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: updating with recent changes Created 9 years, 3 months 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 f4cd5f24da1177db3317097a965f2c70344d1ada..faeedc3eb84e8c022aa469901a54ebadb0ef6997 100755
--- a/gpu/command_buffer/build_gles2_cmd_buffer.py
+++ b/gpu/command_buffer/build_gles2_cmd_buffer.py
@@ -223,6 +223,7 @@ GL_APICALL void GL_APIENTRY glPlaceholder447CHROMIUM (void);
GL_APICALL void GL_APIENTRY glPlaceholder451CHROMIUM (void);
GL_APICALL void GL_APIENTRY glPlaceholder452CHROMIUM (void);
GL_APICALL void GL_APIENTRY glPlaceholder453CHROMIUM (void);
+GL_APICALL void GL_APIENTRY glSetSurfaceVisibleCHROMIUM (GLboolean visible);
apatrick_chromium 2011/09/28 17:33:45 Is there any reason why changing surface visibilit
mmocny 2011/09/28 21:37:33 I originally assumed we would not need the flush,
apatrick_chromium 2011/09/28 22:29:45 OpenGL does not guarantee that a GL command will b
mmocny 2011/10/07 14:26:13 GLES2CmdHelper::Flush seems to only add a glFlush
apatrick_chromium 2011/10/07 22:45:49 Yeah that's the one. Sorry about that.
"""
# This is the list of all commmands that will be generated and their Id.
@@ -431,6 +432,7 @@ _CMD_ID_TABLE = {
'Placeholder453CHROMIUM': 453,
'GetMultipleIntegervCHROMIUM': 454,
'GetProgramInfoCHROMIUM': 455,
+ 'SetSurfaceVisibleCHROMIUM': 456,
}
# This is a list of enum names and their valid values. It is used to map
@@ -1768,6 +1770,13 @@ _FUNCTION_INFO = {
'extension': True,
'chromium': True,
},
+ 'SetSurfaceVisibleCHROMIUM': {
+ 'type': 'Custom',
+ 'impl_func': False,
+ 'unit_test': False,
+ 'extension': True,
+ 'chromium': True,
+ },
}

Powered by Google App Engine
This is Rietveld 408576698