summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gpu/command_buffer/common/gles2_cmd_utils.cc2
-rwxr-xr-xui/gfx/gl/generate_bindings.py5
2 files changed, 6 insertions, 1 deletions
diff --git a/gpu/command_buffer/common/gles2_cmd_utils.cc b/gpu/command_buffer/common/gles2_cmd_utils.cc
index 092b2cd..736e673 100644
--- a/gpu/command_buffer/common/gles2_cmd_utils.cc
+++ b/gpu/command_buffer/common/gles2_cmd_utils.cc
@@ -646,7 +646,7 @@ std::string GLES2Util::GetStringError(uint32 value) {
}
std::string GLES2Util::GetStringBool(uint32 value) {
- return value ? "true" : "false";
+ return value ? "GL_TRUE" : "GL_FALSE";
}
std::string GLES2Util::GetQualifiedEnumString(
diff --git a/ui/gfx/gl/generate_bindings.py b/ui/gfx/gl/generate_bindings.py
index 1cd137e..b01fea7 100755
--- a/ui/gfx/gl/generate_bindings.py
+++ b/ui/gfx/gl/generate_bindings.py
@@ -1230,6 +1230,8 @@ def GenerateSource(file, functions, set_name, used_extension_functions):
log_argument_names = re.sub(
r'(?<!E)GLenum ([a-zA-Z0-9_]+)', r'GLenum_\1', log_argument_names)
log_argument_names = re.sub(
+ r'(?<!E)GLboolean ([a-zA-Z0-9_]+)', r'GLboolean_\1', log_argument_names)
+ log_argument_names = re.sub(
r'(const )?[a-zA-Z0-9_]+\** ([a-zA-Z0-9_]+)', r'\2',
log_argument_names)
log_argument_names = re.sub(
@@ -1243,6 +1245,9 @@ def GenerateSource(file, functions, set_name, used_extension_functions):
log_argument_names = re.sub(
r'GLenum_([a-zA-Z0-9_]+)', r'GLES2Util::GetStringEnum(\1)',
log_argument_names)
+ log_argument_names = re.sub(
+ r'GLboolean_([a-zA-Z0-9_]+)', r'GLES2Util::GetStringBool(\1)',
+ log_argument_names)
log_argument_names = log_argument_names.replace(',', ' << ", " <<')
if argument_names == 'void' or argument_names == '':
argument_names = ''