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

Side by Side Diff: tools/perf/measurements/skpicture_printer.py

Issue 319813004: [Telemetry] Update copyright header style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove stray change Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « tools/perf/measurements/page_cycler.py ('k') | tools/perf/measurements/smoothness.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 import glob 4 import glob
5 import os 5 import os
6 6
7 from telemetry.page import page_measurement 7 from telemetry.page import page_measurement
8 8
9 9
10 _JS = 'chrome.gpuBenchmarking.printToSkPicture("{0}");' 10 _JS = 'chrome.gpuBenchmarking.printToSkPicture("{0}");'
11 11
(...skipping 21 matching lines...) Expand all
33 raise page_measurement.MeasurementFailure( 33 raise page_measurement.MeasurementFailure(
34 'SkPicture printing not supported on this platform') 34 'SkPicture printing not supported on this platform')
35 35
36 # Replace win32 path separator char '\' with '\\'. 36 # Replace win32 path separator char '\' with '\\'.
37 outpath = os.path.abspath( 37 outpath = os.path.abspath(
38 os.path.join(self._skp_outdir, page.file_safe_name)) 38 os.path.join(self._skp_outdir, page.file_safe_name))
39 js = _JS.format(outpath.replace('\\', '\\\\')) 39 js = _JS.format(outpath.replace('\\', '\\\\'))
40 tab.EvaluateJavaScript(js) 40 tab.EvaluateJavaScript(js)
41 pictures = glob.glob(os.path.join(outpath, '*.skp')) 41 pictures = glob.glob(os.path.join(outpath, '*.skp'))
42 results.Add('saved_picture_count', 'count', len(pictures)) 42 results.Add('saved_picture_count', 'count', len(pictures))
OLDNEW
« no previous file with comments | « tools/perf/measurements/page_cycler.py ('k') | tools/perf/measurements/smoothness.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698