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

Unified Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 99053007: Updated Khronos GLES2 headers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + newest skia changes Created 7 years 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 | « DEPS ('k') | gpu/command_buffer/client/gles2_implementation.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 0f2e49a31f115d1d8835c45ec5070e23c7b83d18..a10a6126c802a6661c27736b06fd7b6c534ca4ac 100755
--- a/gpu/command_buffer/build_gles2_cmd_buffer.py
+++ b/gpu/command_buffer/build_gles2_cmd_buffer.py
@@ -53,9 +53,17 @@ _GL_TYPES = {
'GLclampf': 'float',
'GLvoid': 'void',
'GLfixed': 'int',
- 'GLclampx': 'int',
+ 'GLclampx': 'int'
+}
+
+_GL_TYPES_32 = {
'GLintptr': 'long int',
- 'GLsizeiptr': 'long int',
+ 'GLsizeiptr': 'long int'
+}
+
+_GL_TYPES_64 = {
+ 'GLintptr': 'long long int',
+ 'GLsizeiptr': 'long long int'
}
# Capabilites selected with glEnable
@@ -7593,6 +7601,13 @@ const size_t GLES2Util::enum_to_string_table_len_ =
file.Write("\n#ifndef __gl2_h_\n")
for (k, v) in _GL_TYPES.iteritems():
file.Write("typedef %s %s;\n" % (v, k))
+ file.Write("#ifdef _WIN64\n")
+ for (k, v) in _GL_TYPES_64.iteritems():
+ file.Write("typedef %s %s;\n" % (v, k))
+ file.Write("#else\n")
+ for (k, v) in _GL_TYPES_32.iteritems():
+ file.Write("typedef %s %s;\n" % (v, k))
+ file.Write("#endif // _WIN64\n")
file.Write("#endif // __gl2_h_\n\n")
for interface in self.pepper_interfaces:
« no previous file with comments | « DEPS ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698