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

Side by Side Diff: tools/dm_flags.py

Issue 1718633002: DM: remove unnecessary use of std::function (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: optimism Created 4 years, 10 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 configs.extend(mode + '-8888' for mode in 70 configs.extend(mode + '-8888' for mode in
71 ['serialize', 'tiles_rt', 'pic']) 71 ['serialize', 'tiles_rt', 'pic'])
72 72
73 if 'ANGLE' in bot: 73 if 'ANGLE' in bot:
74 configs.append('angle') 74 configs.append('angle')
75 75
76 # We want to run gpudft on atleast the mali 400 76 # We want to run gpudft on atleast the mali 400
77 if 'GalaxyS3' in bot: 77 if 'GalaxyS3' in bot:
78 configs.append('gpudft') 78 configs.append('gpudft')
79 79
80 if 'MSAN' in bot:
81 configs = [
82 '565',
83 '8888',
84 'pdf',
85 'pdf_poppler',
86 ]
87
88 args.append('--config') 80 args.append('--config')
89 args.extend(configs) 81 args.extend(configs)
90 82
91 # Run tests, gms, and image decoding tests everywhere. 83 # Run tests, gms, and image decoding tests everywhere.
92 # TODO: remove skp from default --src list? 84 # TODO: remove skp from default --src list?
93 args.extend('--src tests gm image'.split(' ')) 85 args.extend('--src tests gm image'.split(' '))
94 86
95 if 'GalaxyS' in bot: 87 if 'GalaxyS' in bot:
96 args.extend(('--threads', '0')) 88 args.extend(('--threads', '0'))
97 89
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 if len(sys.argv) == 2 and sys.argv[1] == 'test': 249 if len(sys.argv) == 2 and sys.argv[1] == 'test':
258 self_test() 250 self_test()
259 sys.exit(0) 251 sys.exit(0)
260 252
261 if len(sys.argv) != 3: 253 if len(sys.argv) != 3:
262 print usage 254 print usage
263 sys.exit(1) 255 sys.exit(1)
264 256
265 with open(sys.argv[1], 'w') as out: 257 with open(sys.argv[1], 'w') as out:
266 json.dump(get_args(sys.argv[2]), out) 258 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