| OLD | NEW |
| 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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 option_parser.add_option( | 557 option_parser.add_option( |
| 558 '', '--upload_to_partner_bucket', action='store_true', | 558 '', '--upload_to_partner_bucket', action='store_true', |
| 559 help=('Uploads SKPs to the chrome-partner-telemetry Google Storage ' | 559 help=('Uploads SKPs to the chrome-partner-telemetry Google Storage ' |
| 560 'bucket if true.'), | 560 'bucket if true.'), |
| 561 default=False) | 561 default=False) |
| 562 option_parser.add_option( | 562 option_parser.add_option( |
| 563 '', '--data_store', | 563 '', '--data_store', |
| 564 help=('The location of the file storage to use to download and upload ' | 564 help=('The location of the file storage to use to download and upload ' |
| 565 'files. Can be \'gs://<bucket>\' for Google Storage, or ' | 565 'files. Can be \'gs://<bucket>\' for Google Storage, or ' |
| 566 'a directory for local filesystem storage'), | 566 'a directory for local filesystem storage'), |
| 567 default='gs://chromium-skia-gm') | 567 default='gs://skia-skps') |
| 568 option_parser.add_option( | 568 option_parser.add_option( |
| 569 '', '--alternate_upload_dir', | 569 '', '--alternate_upload_dir', |
| 570 help= ('Uploads to a different directory in Google Storage or local ' | 570 help= ('Uploads to a different directory in Google Storage or local ' |
| 571 'storage if this flag is specified'), | 571 'storage if this flag is specified'), |
| 572 default=None) | 572 default=None) |
| 573 option_parser.add_option( | 573 option_parser.add_option( |
| 574 '', '--output_dir', | 574 '', '--output_dir', |
| 575 help=('Temporary directory where SKPs and webpage archives will be ' | 575 help=('Temporary directory where SKPs and webpage archives will be ' |
| 576 'outputted to.'), | 576 'outputted to.'), |
| 577 default=tempfile.gettempdir()) | 577 default=tempfile.gettempdir()) |
| (...skipping 15 matching lines...) Expand all Loading... |
| 593 '--skia_tools is specified then the debugger is not run.', | 593 '--skia_tools is specified then the debugger is not run.', |
| 594 default=False) | 594 default=False) |
| 595 option_parser.add_option( | 595 option_parser.add_option( |
| 596 '', '--skp_prefix', | 596 '', '--skp_prefix', |
| 597 help='Prefix to add to the names of generated SKPs.', | 597 help='Prefix to add to the names of generated SKPs.', |
| 598 default=None) | 598 default=None) |
| 599 options, unused_args = option_parser.parse_args() | 599 options, unused_args = option_parser.parse_args() |
| 600 | 600 |
| 601 playback = SkPicturePlayback(options) | 601 playback = SkPicturePlayback(options) |
| 602 sys.exit(playback.Run()) | 602 sys.exit(playback.Run()) |
| OLD | NEW |