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

Side by Side Diff: tools/skp/webpages_playback.py

Issue 775073002: Make debugger not fail with webpages_playback script and multiple skp files (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Archives or replays webpages and creates SKPs in a Google Storage location. 6 """Archives or replays webpages and creates SKPs in a Google Storage location.
7 7
8 To archive webpages and store SKP files (archives should be rarely updated): 8 To archive webpages and store SKP files (archives should be rarely updated):
9 9
10 cd skia 10 cd skia
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 for tools_cmd in (render_pictures_cmd, render_pdfs_cmd): 303 for tools_cmd in (render_pictures_cmd, render_pdfs_cmd):
304 print '\n\n=======Running %s=======' % ' '.join(tools_cmd) 304 print '\n\n=======Running %s=======' % ' '.join(tools_cmd)
305 proc = subprocess.Popen(tools_cmd) 305 proc = subprocess.Popen(tools_cmd)
306 (code, _) = shell_utils.log_process_after_completion(proc, echo=False) 306 (code, _) = shell_utils.log_process_after_completion(proc, echo=False)
307 if code != 0: 307 if code != 0:
308 raise Exception('%s failed!' % ' '.join(tools_cmd)) 308 raise Exception('%s failed!' % ' '.join(tools_cmd))
309 309
310 if not self._non_interactive: 310 if not self._non_interactive:
311 print '\n\n=======Running debugger=======' 311 print '\n\n=======Running debugger======='
312 os.system('%s %s' % (os.path.join(self._skia_tools, 'debugger'), 312 os.system('%s %s' % (os.path.join(self._skia_tools, 'debugger'),
313 os.path.join(self._local_skp_dir, '*'))) 313 self._local_skp_dir))
314 314
315 print '\n\n' 315 print '\n\n'
316 316
317 if not self._skip_all_gs_access and self._upload_to_gs: 317 if not self._skip_all_gs_access and self._upload_to_gs:
318 print '\n\n=======Uploading to Google Storage=======\n\n' 318 print '\n\n=======Uploading to Google Storage=======\n\n'
319 # Copy the directory structure in the root directory into Google Storage. 319 # Copy the directory structure in the root directory into Google Storage.
320 dest_dir_name = ROOT_PLAYBACK_DIR_NAME 320 dest_dir_name = ROOT_PLAYBACK_DIR_NAME
321 if self._alternate_upload_dir: 321 if self._alternate_upload_dir:
322 dest_dir_name = self._alternate_upload_dir 322 dest_dir_name = self._alternate_upload_dir
323 323
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 default=None) 451 default=None)
452 option_parser.add_option( 452 option_parser.add_option(
453 '', '--non-interactive', action='store_true', 453 '', '--non-interactive', action='store_true',
454 help='Runs the script without any prompts. If this flag is specified and ' 454 help='Runs the script without any prompts. If this flag is specified and '
455 '--skia_tools is specified then the debugger is not run.', 455 '--skia_tools is specified then the debugger is not run.',
456 default=False) 456 default=False)
457 options, unused_args = option_parser.parse_args() 457 options, unused_args = option_parser.parse_args()
458 458
459 playback = SkPicturePlayback(options) 459 playback = SkPicturePlayback(options)
460 sys.exit(playback.Run()) 460 sys.exit(playback.Run())
OLDNEW
« 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