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

Unified Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 6461001: Revert 73222 - Make target running GLES2 autogen script.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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 | ppapi/ppapi_gl.gypi » ('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 74160)
+++ gpu/command_buffer/build_gles2_cmd_buffer.py (working copy)
@@ -5483,33 +5483,19 @@
"\"chrome_ppapi_proxy\" will generate the glue for the chrome IPC ppapi"
"proxy.")
parser.add_option(
- "--output-dir",
- help="base directory for resulting files, under chrome/src. default is "
- "empty. Use this if you want the result stored under gen.")
- parser.add_option(
"-v", "--verbose", action="store_true",
help="prints more output.")
(options, args) = parser.parse_args(args=argv)
- # This script lives under gpu/command_buffer, cd to base directory.
- os.chdir(os.path.dirname(__file__) + "/../..")
-
gen = GLGenerator(options.verbose)
gen.ParseGLH("common/GLES2/gl2.h")
- # Support generating files under gen/
- if options.output_dir != None:
- os.chdir(options.output_dir)
-
if options.alternate_mode == "ppapi":
- # To trigger this action, do "make ppapi_gles_bindings"
- os.chdir("ppapi");
- gen.WritePepperGLES2Interface("c/dev/ppb_opengles_dev.h")
- gen.WriteGLES2ToPPAPIBridge("lib/gl/gles2/gles2.c")
+ gen.WritePepperGLES2Interface("ppapi/c/dev/ppb_opengles_dev.h")
+ gen.WriteGLES2ToPPAPIBridge("ppapi/lib/gl/gles2/gles2.c")
elif options.alternate_mode == "chrome_ppapi":
- # To trigger this action, do "make ppapi_gles_implementation"
gen.WritePepperGLES2Implementation(
"webkit/plugins/ppapi/ppb_opengles_impl.cc")
@@ -5518,7 +5504,6 @@
"ppapi/proxy/ppb_opengles2_proxy.cc")
else:
- os.chdir("gpu/command_buffer")
gen.WriteCommandIds("common/gles2_cmd_ids_autogen.h")
gen.WriteFormat("common/gles2_cmd_format_autogen.h")
gen.WriteFormatTest("common/gles2_cmd_format_test_autogen.h")
« no previous file with comments | « no previous file | ppapi/ppapi_gl.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698