Index: perf_tools/skpicture_printer.py |
=================================================================== |
--- perf_tools/skpicture_printer.py (revision 198791) |
+++ perf_tools/skpicture_printer.py (working copy) |
@@ -9,16 +9,19 @@ |
class SkPicturePrinter(page_measurement.PageMeasurement): |
def AddCommandLineOptions(self, parser): |
- parser.add_option('-o', '--outdir', help='Output directory') |
+ parser.add_option('-s', '--skp_outdir', |
+ help='Output directory for the SKP files') |
def CustomizeBrowserOptions(self, options): |
options.extra_browser_args.extend(['--enable-gpu-benchmarking', |
- '--no-sandbox']) |
+ '--no-sandbox', |
+ '--enable-deferred-image-decoding', |
+ '--force-compositing-mode']) |
def MeasurePage(self, page, tab, results): |
- if self.options.outdir is not None: |
nduca
2013/05/28 18:50:25
why'd you remove the is not none handling?
rmistry
2013/05/28 18:55:11
If outdir was not specified (None), the next line
|
- outpath = os.path.join(self.options.outdir, page.url_as_file_safe_name) |
- outpath = os.path.abspath(outpath) |
+ outpath = os.path.abspath( |
+ os.path.join(self.options.skp_outdir, |
+ page.url_as_file_safe_name)) |
# Replace win32 path separator char '\' with '\\'. |
js = _JS.format(outpath.replace('\\', '\\\\')) |
tab.EvaluateJavaScript(js) |