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

Unified Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 7762009: Manually merging trunk revs 95836 and 96904 to 835 branch (second attempt) (Closed) Base URL: svn://svn.chromium.org/chrome/branches/835/src/
Patch Set: 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
===================================================================
--- gpu/command_buffer/build_gles2_cmd_buffer.py (revision 98483)
+++ gpu/command_buffer/build_gles2_cmd_buffer.py (working copy)
@@ -1478,7 +1478,10 @@
'decoder_func': 'DoIsTexture',
'expectation': False,
},
- 'LinkProgram': {'decoder_func': 'DoLinkProgram'},
+ 'LinkProgram': {
+ 'decoder_func': 'DoLinkProgram',
+ 'impl_func': False,
+ },
'MapBufferSubDataCHROMIUM': {
'gen_cmd': False,
'extension': True,
@@ -3071,11 +3074,8 @@
arg.WriteClientSideValidationCode(file, func)
file.Write(
" GPU_CLIENT_DCHECK(%s != 0);\n" % func.GetOriginalArgs()[-1].name)
- file.Write(" program_and_shader_id_handler_->FreeIds(1, &%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")
@@ -3204,8 +3204,6 @@
for arg in func.GetOriginalArgs():
arg.WriteClientSideValidationCode(file, func)
code = """ %(name)sHelper(%(args)s);
- helper_->%(name)sImmediate(%(args)s);
- Flush();
}
"""
@@ -4215,19 +4213,20 @@
<< static_cast<void*>(%(arg3)s) << ")");
helper_->SetBucketSize(kResultBucketId, 0);
helper_->%(func_name)s(%(id_name)s, kResultBucketId);
- if (bufsize > 0) {
- std::string str;
- if (GetBucketAsString(kResultBucketId, &str)) {
- GLsizei max_size =
+ std::string str;
+ GLsizei max_size = 0;
+ if (GetBucketAsString(kResultBucketId, &str)) {
+ if (bufsize > 0) {
+ max_size =
std::min(static_cast<size_t>(%(bufsize_name)s) - 1, str.size());
- if (%(length_name)s != NULL) {
- *%(length_name)s = max_size;
- }
memcpy(%(dest_name)s, str.c_str(), max_size);
%(dest_name)s[max_size] = '\\0';
GPU_CLIENT_LOG("------\\n" << %(dest_name)s << "\\n------");
}
}
+ if (%(length_name)s != NULL) {
+ *%(length_name)s = max_size;
+ }
}
"""
args = func.GetOriginalArgs()
« 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