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

Unified Diff: media/mojo/scripts/run_mojo_media_renderer.py

Issue 1003333002: media: Enable logging for mojo services in run_mojo_media_renderer.py. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/scripts/run_mojo_media_renderer.py
diff --git a/media/mojo/scripts/run_mojo_media_renderer.py b/media/mojo/scripts/run_mojo_media_renderer.py
index 513d87abd6c00a23448c6d2396971e2bd61b3343..6ca34dc9dbdb6a59a3ff64d555e23f648825c46c 100755
--- a/media/mojo/scripts/run_mojo_media_renderer.py
+++ b/media/mojo/scripts/run_mojo_media_renderer.py
@@ -30,17 +30,23 @@ def _BuildShellCommand(args):
shell_command = [os.path.join(build_dir, "mojo_shell")]
options = []
+
options.append(
"--origin=https://storage.googleapis.com/mojo/services/linux-x64/%s" %
sdk_version)
options.append("--url-mappings=mojo:html_viewer=file://%s/html_viewer.mojo,"
"mojo:media=file://%s/media.mojo" % (build_dir, build_dir))
+
args_for_html_viewer = "--enable-mojo-media-renderer --is-headless "
if args.verbose:
args_for_html_viewer += \
"--vmodule=pipeline*=3,*renderer_impl*=3,*mojo_demuxer*=3"
options.append("--args-for=mojo:html_viewer %s" % args_for_html_viewer)
+ if args.verbose:
+ args_for_media = "--vmodule=mojo*service=3"
+ options.append("--args-for=mojo:media %s" % args_for_media)
+
full_command = shell_command + options + [args.url]
if args.verbose:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698