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

Unified Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 7737013: Move PPAPI graphics3d and opengles interfaces out of Dev. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | « no previous file | gpu/demos/framework/pepper.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 99848)
+++ gpu/command_buffer/build_gles2_cmd_buffer.py (working copy)
@@ -5753,10 +5753,10 @@
file.Write("typedef %s %s;\n" % (v, k))
file.Write("#endif // __gl2_h_\n\n")
- file.Write("#define PPB_OPENGLES2_DEV_INTERFACE "
- "\"PPB_OpenGLES(Dev);2.0\"\n")
+ file.Write("#define PPB_OPENGLES2_INTERFACE "
+ "\"PPB_OpenGLES;2.0\"\n")
- file.Write("\nstruct PPB_OpenGLES2_Dev {\n")
+ file.Write("\nstruct PPB_OpenGLES2 {\n")
for func in self.original_functions:
if not func.IsCoreGLFunction():
continue
@@ -5818,7 +5818,7 @@
func.MakeOriginalArgString("")))
file.Write("}\n\n")
- file.Write("\nconst struct PPB_OpenGLES2_Dev ppb_opengles2 = {\n")
+ file.Write("\nconst struct PPB_OpenGLES2 ppb_opengles2 = {\n")
file.Write(" &")
file.Write(",\n &".join(
f.name for f in self.original_functions if f.IsCoreGLFunction()))
@@ -5828,7 +5828,7 @@
file.Write("} // namespace\n")
file.Write("""
-const PPB_OpenGLES2_Dev* OpenGLES2Impl::GetInterface() {
+const PPB_OpenGLES2* OpenGLES2Impl::GetInterface() {
return &ppb_opengles2;
}
@@ -5904,10 +5904,10 @@
file.Write("\n} // namespace\n\n")
- file.Write("const PPB_OpenGLES2_Dev* "
+ file.Write("const PPB_OpenGLES2* "
"PluginGraphics3D::GetOpenGLESInterface() {\n")
- file.Write(" const static struct PPB_OpenGLES2_Dev ppb_opengles = {\n")
+ file.Write(" const static struct PPB_OpenGLES2 ppb_opengles = {\n")
file.Write(" &")
file.Write(",\n &".join(
f.name for f in self.original_functions if (f.IsCoreGLFunction() and
« no previous file with comments | « no previous file | gpu/demos/framework/pepper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698