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

Side by Side Diff: tools/dm_flags.py

Issue 1125793002: Add matrix configs to DM (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Simplify matrix, use correct config Created 5 years, 7 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/dm_flags.json ('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 # 1 #
2 # Copyright 2015 Google Inc. 2 # Copyright 2015 Google Inc.
3 # 3 #
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 # 6 #
7 7
8 #!/usr/bin/env python 8 #!/usr/bin/env python
9 9
10 usage = ''' 10 usage = '''
(...skipping 11 matching lines...) Expand all
22 22
23 def lineno(): 23 def lineno():
24 caller = inspect.stack()[1] # Up one level to our caller. 24 caller = inspect.stack()[1] # Up one level to our caller.
25 return inspect.getframeinfo(caller[0]).lineno 25 return inspect.getframeinfo(caller[0]).lineno
26 26
27 27
28 cov_start = lineno()+1 # We care about coverage starting just past this def. 28 cov_start = lineno()+1 # We care about coverage starting just past this def.
29 def get_args(bot): 29 def get_args(bot):
30 args = [] 30 args = []
31 31
32 configs = ['565', '8888', 'gpu'] 32 configs = ['565', '8888', 'gpu', 'upright-matrix-8888', 'upright-matrix-gpu']
33
34 args.extend('--matrix 0 1 1 0'.split(' '))
33 35
34 if 'TegraK1' in bot or 'GTX550Ti' in bot or 'GTX660' in bot or 'GT610' in bot: 36 if 'TegraK1' in bot or 'GTX550Ti' in bot or 'GTX660' in bot or 'GT610' in bot:
35 if 'Android' in bot: 37 if 'Android' in bot:
36 configs.append('nvprmsaa4') 38 configs.append('nvprmsaa4')
37 else: 39 else:
38 configs.append('nvprmsaa16') 40 configs.append('nvprmsaa16')
39 41
40 # The S4 crashes and the NP produces a long error stream when we run with 42 # The S4 crashes and the NP produces a long error stream when we run with
41 # MSAA. The Tegra2 and Tegra3 just don't support it. 43 # MSAA. The Tegra2 and Tegra3 just don't support it.
42 if ('GalaxyS4' not in bot and 44 if ('GalaxyS4' not in bot and
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 if len(sys.argv) == 2 and sys.argv[1] == 'test': 210 if len(sys.argv) == 2 and sys.argv[1] == 'test':
209 self_test() 211 self_test()
210 sys.exit(0) 212 sys.exit(0)
211 213
212 if len(sys.argv) != 3: 214 if len(sys.argv) != 3:
213 print usage 215 print usage
214 sys.exit(1) 216 sys.exit(1)
215 217
216 with open(sys.argv[1], 'w') as out: 218 with open(sys.argv[1], 'w') as out:
217 json.dump(get_args(sys.argv[2]), out) 219 json.dump(get_args(sys.argv[2]), out)
OLDNEW
« no previous file with comments | « tools/dm_flags.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698