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

Unified Diff: ui/gfx/gl/generate_bindings.py

Issue 9836106: C++ code generated by generate_bindings.py was assigning a variable withing in if() statement (Visu… (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 9 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 | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/gl/generate_bindings.py
===================================================================
--- ui/gfx/gl/generate_bindings.py (revision 129129)
+++ ui/gfx/gl/generate_bindings.py (working copy)
@@ -1188,8 +1188,10 @@
set_name.upper())
file.write(' DCHECK(context && context->IsCurrent(NULL));\n')
for extension, ext_functions in used_extension_functions:
- file.write(' if ((g_%s = context->HasExtension("%s"))) {\n' %
+ file.write(' g_%s = context->HasExtension("%s");\n' %
(extension, extension))
+ file.write(' if (g_%s) {\n' %
+ (extension))
queried_entry_points = set()
for entry_point_name, function_name in ext_functions:
# Replace the pointer unconditionally unless this extension has several
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698