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

Side by Side Diff: gm/rebaseline_server/imagepairset.py

Issue 480153002: Added 'renderMode' and 'builder' as columns to the SKP front-end. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Addressing issues from CR Created 6 years, 4 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
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 """ 3 """
4 Copyright 2014 Google Inc. 4 Copyright 2014 Google Inc.
5 5
6 Use of this source code is governed by a BSD-style license that can be 6 Use of this source code is governed by a BSD-style license that can be
7 found in the LICENSE file. 7 found in the LICENSE file.
8 8
9 ImagePairSet class; see its docstring below. 9 ImagePairSet class; see its docstring below.
10 """ 10 """
11 11
12 # System-level imports 12 # System-level imports
13 import posixpath 13 import posixpath
14 14
15 # Must fix up PYTHONPATH before importing from within Skia 15 # Must fix up PYTHONPATH before importing from within Skia
16 import fix_pythonpath # pylint: disable=W0611 16 import rs_fixpypath # pylint: disable=W0611
17 17
18 # Imports from within Skia 18 # Imports from within Skia
19 import column 19 import column
20 import imagediffdb 20 import imagediffdb
21 from py.utils import gs_utils 21 from py.utils import gs_utils
22 22
23 # Keys used within dictionary representation of ImagePairSet. 23 # Keys used within dictionary representation of ImagePairSet.
24 # NOTE: Keep these in sync with static/constants.js 24 # NOTE: Keep these in sync with static/constants.js
25 KEY__ROOT__EXTRACOLUMNHEADERS = 'extraColumnHeaders' 25 KEY__ROOT__EXTRACOLUMNHEADERS = 'extraColumnHeaders'
26 KEY__ROOT__EXTRACOLUMNORDER = 'extraColumnOrder' 26 KEY__ROOT__EXTRACOLUMNORDER = 'extraColumnOrder'
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 anyfile_utils.py for copying files between HTTP/GS/local filesystem') 216 anyfile_utils.py for copying files between HTTP/GS/local filesystem')
217 217
218 Args: 218 Args:
219 gs_url: "gs://bucket/path" format URL 219 gs_url: "gs://bucket/path" format URL
220 """ 220 """
221 bucket, path = gs_utils.GSUtils.split_gs_url(gs_url) 221 bucket, path = gs_utils.GSUtils.split_gs_url(gs_url)
222 http_url = 'http://storage.cloud.google.com/' + bucket 222 http_url = 'http://storage.cloud.google.com/' + bucket
223 if path: 223 if path:
224 http_url += '/' + path 224 http_url += '/' + path
225 return http_url 225 return http_url
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698