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

Unified Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 5567004: Proposed changes to Pepper 3D API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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 | « no previous file | ppapi/c/dev/pp_graphics_3d_dev.h » ('j') | ppapi/c/dev/pp_graphics_3d_dev.h » ('J')
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 68085)
+++ gpu/command_buffer/build_gles2_cmd_buffer.py (working copy)
@@ -5204,14 +5204,15 @@
file.Write("#include \"ppapi/GLES2/khrplatform.h\"\n\n")
- file.Write("#define PPB_OPENGLES_DEV_INTERFACE \"PPB_OpenGLES(Dev);2.0\"\n\n")
+ file.Write("#define PPB_GLES2_DEV_INTERFACE \"PPB_GLES(Dev);2.0\"\n\n")
for (k, v) in _GL_TYPES.iteritems():
file.Write("typedef %s %s;\n" % (v, k))
- file.Write("\nstruct PPB_OpenGLES_Dev {\n")
+ file.Write("\nstruct PPB_GLES2_Dev {\n")
+ file.Write(" // TODO(alokp): Add context argument to all gl functions.\n")
for func in self.original_functions:
- if func.GetInfo('extension'):
+ if func.GetInfo('extension') or func.name == 'SwapBuffers':
continue
file.Write(" %s (*%s)(%s);\n" %
(func.return_type, func.name,
« no previous file with comments | « no previous file | ppapi/c/dev/pp_graphics_3d_dev.h » ('j') | ppapi/c/dev/pp_graphics_3d_dev.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698