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

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

Issue 2167763002: Add "skp" asset (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Backpedal: Don't get rid of old SKPs yet Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « tools/skp/recreate_skps.py ('k') | 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 import optparse 56 import optparse
57 import os 57 import os
58 import posixpath 58 import posixpath
59 import shutil 59 import shutil
60 import subprocess 60 import subprocess
61 import sys 61 import sys
62 import tempfile 62 import tempfile
63 import time 63 import time
64 import traceback 64 import traceback
65 65
66 sys.path.insert(0, os.getcwd()) 66 SKIA_DIR = os.path.abspath(os.path.join(
67 os.path.realpath(os.path.dirname(__file__)),
68 os.pardir, os.pardir))
69 sys.path.insert(0, SKIA_DIR)
67 70
68 from common.py.utils import gs_utils 71 from common.py.utils import gs_utils
69 from common.py.utils import shell_utils 72 from common.py.utils import shell_utils
70 73
71 ROOT_PLAYBACK_DIR_NAME = 'playback' 74 ROOT_PLAYBACK_DIR_NAME = 'playback'
72 SKPICTURES_DIR_NAME = 'skps' 75 SKPICTURES_DIR_NAME = 'skps'
73 76
74 PARTNERS_GS_BUCKET = 'gs://chrome-partner-telemetry' 77 PARTNERS_GS_BUCKET = 'gs://chrome-partner-telemetry'
75 78
76 # Local archive and SKP directories. 79 # Local archive and SKP directories.
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 '--skia_tools is specified then the debugger is not run.', 597 '--skia_tools is specified then the debugger is not run.',
595 default=False) 598 default=False)
596 option_parser.add_option( 599 option_parser.add_option(
597 '', '--skp_prefix', 600 '', '--skp_prefix',
598 help='Prefix to add to the names of generated SKPs.', 601 help='Prefix to add to the names of generated SKPs.',
599 default=None) 602 default=None)
600 options, unused_args = option_parser.parse_args() 603 options, unused_args = option_parser.parse_args()
601 604
602 playback = SkPicturePlayback(options) 605 playback = SkPicturePlayback(options)
603 sys.exit(playback.Run()) 606 sys.exit(playback.Run())
OLDNEW
« no previous file with comments | « tools/skp/recreate_skps.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698