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

Side by Side Diff: tools/dm_flags.py

Issue 946933006: Default SK_ANGLE to true on Windows, run angle whenever possible on bots. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: ANGLE bot isn't special anymore Created 5 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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 usage = ''' 3 usage = '''
4 Write extra flags to outfile for DM based on the bot name: 4 Write extra flags to outfile for DM based on the bot name:
5 $ python dm_flags.py outfile Test-Mac10.9-MacMini6.2-HD4000-x86_64-Release 5 $ python dm_flags.py outfile Test-Mac10.9-MacMini6.2-HD4000-x86_64-Release
6 Or run self-tests: 6 Or run self-tests:
7 $ python dm_flags.py test 7 $ python dm_flags.py test
8 ''' 8 '''
9 9
10 import inspect 10 import inspect
11 import json 11 import json
12 import os 12 import os
13 import sys 13 import sys
14 14
15 15
16 def lineno(): 16 def lineno():
17 caller = inspect.stack()[1] # Up one level to our caller. 17 caller = inspect.stack()[1] # Up one level to our caller.
18 return inspect.getframeinfo(caller[0]).lineno 18 return inspect.getframeinfo(caller[0]).lineno
19 19
20 20
21 cov_start = lineno()+1 # We care about coverage starting just past this def. 21 cov_start = lineno()+1 # We care about coverage starting just past this def.
22 def get_args(bot): 22 def get_args(bot):
23 args = [] 23 args = []
24 24
25 configs = ['565', '8888', 'gpu', 'nvprmsaa4'] 25 configs = ['565', '8888', 'gpu', 'nvprmsaa4', 'angle']
26 # Xoom and NP are running out of RAM when we run all these modes. skia:3255 26 # Xoom and NP are running out of RAM when we run all these modes. skia:3255
27 if ('Xoom' not in bot and 27 if ('Xoom' not in bot and
28 'NexusPlayer' not in bot): 28 'NexusPlayer' not in bot):
29 configs.extend(mode + '-8888' for mode in 29 configs.extend(mode + '-8888' for mode in
30 ['serialize', 'tiles_rt', 'pipe']) 30 ['serialize', 'tiles_rt', 'pipe'])
31 configs.append('tiles_rt-gpu') 31 configs.append('tiles_rt-gpu')
32 if 'ANGLE' in bot:
33 configs.append('angle')
34 args.append('--config') 32 args.append('--config')
35 args.extend(configs) 33 args.extend(configs)
36 34
37 blacklist = [] 35 blacklist = []
38 # This image is too large to be a texture for many GPUs. 36 # This image is too large to be a texture for many GPUs.
39 blacklist.extend('gpu _ PANO_20121023_214540.jpg'.split(' ')) 37 blacklist.extend('gpu _ PANO_20121023_214540.jpg'.split(' '))
40 blacklist.extend('msaa _ PANO_20121023_214540.jpg'.split(' ')) 38 blacklist.extend('msaa _ PANO_20121023_214540.jpg'.split(' '))
41 39
42 # Drawing SKPs or images into GPU canvases is a New Thing. 40 # Drawing SKPs or images into GPU canvases is a New Thing.
43 # It seems like we're running out of RAM on some Android bots, so start off 41 # It seems like we're running out of RAM on some Android bots, so start off
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 79
82 80
83 def self_test(): 81 def self_test():
84 import coverage # This way the bots don't need coverage.py to be installed. 82 import coverage # This way the bots don't need coverage.py to be installed.
85 args = {} 83 args = {}
86 cases = [ 84 cases = [
87 'Test-Android-Nexus7-Tegra3-Arm7-Release', 85 'Test-Android-Nexus7-Tegra3-Arm7-Release',
88 'Test-Android-Xoom-Tegra2-Arm7-Release', 86 'Test-Android-Xoom-Tegra2-Arm7-Release',
89 'Test-ChromeOS-Alex-GMA3150-x86-Debug', 87 'Test-ChromeOS-Alex-GMA3150-x86-Debug',
90 'Test-Ubuntu12-ShuttleA-GTX550Ti-x86_64-Release-Valgrind', 88 'Test-Ubuntu12-ShuttleA-GTX550Ti-x86_64-Release-Valgrind',
91 'Test-Win7-ShuttleA-HD2000-x86-Debug-ANGLE',
92 ] 89 ]
93 90
94 cov = coverage.coverage() 91 cov = coverage.coverage()
95 cov.start() 92 cov.start()
96 for case in cases: 93 for case in cases:
97 args[case] = get_args(case) 94 args[case] = get_args(case)
98 cov.stop() 95 cov.stop()
99 96
100 this_file = os.path.basename(__file__) 97 this_file = os.path.basename(__file__)
101 _, _, not_run, _ = cov.analysis(this_file) 98 _, _, not_run, _ = cov.analysis(this_file)
(...skipping 11 matching lines...) Expand all
113 if len(sys.argv) == 2 and sys.argv[1] == 'test': 110 if len(sys.argv) == 2 and sys.argv[1] == 'test':
114 self_test() 111 self_test()
115 sys.exit(0) 112 sys.exit(0)
116 113
117 if len(sys.argv) != 3: 114 if len(sys.argv) != 3:
118 print usage 115 print usage
119 sys.exit(1) 116 sys.exit(1)
120 117
121 with open(sys.argv[1], 'w') as out: 118 with open(sys.argv[1], 'w') as out:
122 json.dump(get_args(sys.argv[2]), out) 119 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