Add --use-osmesa flag to skydb
This flag lets us run skydb under Chromoting. R=ojan@chromium.org, esprehn@chromium.org Review URL: https://codereview.chromium.org/697943002
This commit is contained in:
parent
d00fcdf621
commit
5e4631f922
@ -65,6 +65,7 @@ class SkyDebugger(object):
|
|||||||
|
|
||||||
parser = argparse.ArgumentParser(description='Sky launcher/debugger')
|
parser = argparse.ArgumentParser(description='Sky launcher/debugger')
|
||||||
parser.add_argument('--gdb', action='store_true')
|
parser.add_argument('--gdb', action='store_true')
|
||||||
|
parser.add_argument('--use-osmesa', action='store_true')
|
||||||
parser.add_argument('url', nargs='?', type=str)
|
parser.add_argument('url', nargs='?', type=str)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
@ -84,6 +85,8 @@ class SkyDebugger(object):
|
|||||||
|
|
||||||
prompt_args = '--args-for=mojo://sky_debugger_prompt/ %s' % url
|
prompt_args = '--args-for=mojo://sky_debugger_prompt/ %s' % url
|
||||||
shell_command.append(prompt_args)
|
shell_command.append(prompt_args)
|
||||||
|
if args.use_osmesa:
|
||||||
|
shell_command.append('--args-for=mojo://native_viewport_service/ --use-osmesa')
|
||||||
if args.gdb:
|
if args.gdb:
|
||||||
shell_command = ['gdb', '--args'] + shell_command
|
shell_command = ['gdb', '--args'] + shell_command
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user