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

Side by Side Diff: tools/dm_flags.py

Issue 1756333002: Disable ignored / moot configs in DM. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 13 matching lines...) Expand all
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']
33 33
34 if 'Android' not in bot:
35 configs.extend(('upright-matrix-8888', 'upright-matrix-gpu'))
36 args.extend('--matrix 0 1 1 0'.split(' '))
37
38 if '-GCE-' in bot: 34 if '-GCE-' in bot:
39 configs.extend(['f16', 'srgb']) 35 configs.extend(['f16', 'srgb']) # Gamma-correct formats.
40 configs.append('sp-8888') 36 configs.extend(['sp-8888', '2ndpic-8888']) # Test niche uses of SkPicture.
41 configs.extend(['twice-8888', '2ndpic-8888']) 37 configs.extend(['remote-8888', 'remote_cache-8888']) # Hacking, WIP.
42 configs.extend(['remote-8888', 'remote_cache-8888'])
43 38
44 if '-TSAN' not in bot: 39 if '-TSAN' not in bot:
45 if ('TegraK1' in bot or 40 if ('TegraK1' in bot or
46 'GTX550Ti' in bot or 41 'GTX550Ti' in bot or
47 'GTX660' in bot or 42 'GTX660' in bot or
48 'GT610' in bot): 43 'GT610' in bot):
49 if 'Android' in bot: 44 if 'Android' in bot:
50 configs.append('nvprmsaa4') 45 configs.append('nvprmsaa4')
51 else: 46 else:
52 configs.append('nvprmsaa16') 47 configs.append('nvprmsaa16')
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 if len(sys.argv) == 2 and sys.argv[1] == 'test': 255 if len(sys.argv) == 2 and sys.argv[1] == 'test':
261 self_test() 256 self_test()
262 sys.exit(0) 257 sys.exit(0)
263 258
264 if len(sys.argv) != 3: 259 if len(sys.argv) != 3:
265 print usage 260 print usage
266 sys.exit(1) 261 sys.exit(1)
267 262
268 with open(sys.argv[1], 'w') as out: 263 with open(sys.argv[1], 'w') as out:
269 json.dump(get_args(sys.argv[2]), out) 264 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