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

Unified Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 7633060: Add option to not generate resources on bind in OpenGL ES (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nacl fix Created 9 years, 4 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
« no previous file with comments | « content/renderer/gpu/renderer_gl_context.cc ('k') | gpu/command_buffer/client/gles2_demo.cc » ('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 2f795198db619652a9fbe5f3b58a287455e795a4..574897ec26e650f19f9bf519078640b4dfcd5ad4 100755
--- a/gpu/command_buffer/build_gles2_cmd_buffer.py
+++ b/gpu/command_buffer/build_gles2_cmd_buffer.py
@@ -3089,11 +3089,8 @@ class DeleteHandler(TypeHandler):
arg.WriteClientSideValidationCode(file, func)
file.Write(
" GPU_CLIENT_DCHECK(%s != 0);\n" % func.GetOriginalArgs()[-1].name)
- file.Write(" DeleteProgramOrShaderHelper(%s);\n" %
- func.GetOriginalArgs()[-1].name)
- file.Write(" helper_->%s(%s);\n" %
- (func.name, func.MakeCmdArgString("")))
- file.Write(" Flush();\n")
+ file.Write(" %sHelper(%s);\n" %
+ (func.original_name, func.GetOriginalArgs()[-1].name))
file.Write("}\n")
file.Write("\n")
@@ -3222,8 +3219,6 @@ TEST_F(%(test_name)s, %(name)sInvalidArgs) {
for arg in func.GetOriginalArgs():
arg.WriteClientSideValidationCode(file, func)
code = """ %(name)sHelper(%(args)s);
- helper_->%(name)sImmediate(%(args)s);
- Flush();
}
"""
« no previous file with comments | « content/renderer/gpu/renderer_gl_context.cc ('k') | gpu/command_buffer/client/gles2_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698