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

Side by Side Diff: tools/nanobench_flags.py

Issue 2181073003: Start measuring f16 and srgb speed. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: support f16 in SkBitmap::getAddr() Created 4 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
« no previous file with comments | « tools/nanobench_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 23 matching lines...) Expand all
34 args.extend(['--gpuStatsDump', 'true']) 34 args.extend(['--gpuStatsDump', 'true'])
35 35
36 if 'Android' in bot and 'GPU' in bot: 36 if 'Android' in bot and 'GPU' in bot:
37 args.extend(['--useThermalManager', '1,1,10,1000']) 37 args.extend(['--useThermalManager', '1,1,10,1000'])
38 38
39 args.extend(['--scales', '1.0', '1.1']) 39 args.extend(['--scales', '1.0', '1.1'])
40 40
41 if 'iOS' in bot: 41 if 'iOS' in bot:
42 args.extend(['--skps', 'ignore_skps']) 42 args.extend(['--skps', 'ignore_skps'])
43 43
44 config = ['565', '8888', 'gpu', 'nonrendering', 'angle', 'hwui'] 44 config = ['565', '8888', 'gpu', 'nonrendering', 'angle', 'hwui' ]
45 config += [ 'f16', 'srgb' ]
45 # The S4 crashes and the NP produces a long error stream when we run with 46 # The S4 crashes and the NP produces a long error stream when we run with
46 # MSAA. 47 # MSAA.
47 if ('GalaxyS4' not in bot and 48 if ('GalaxyS4' not in bot and
48 'NexusPlayer' not in bot): 49 'NexusPlayer' not in bot):
49 if 'Android' in bot: 50 if 'Android' in bot:
50 # The TegraX1 has a regular OpenGL implementation. We bench that instead 51 # The TegraX1 has a regular OpenGL implementation. We bench that instead
51 # of ES. 52 # of ES.
52 if 'TegraX1' in bot: 53 if 'TegraX1' in bot:
53 config.remove('gpu') 54 config.remove('gpu')
54 config.extend(['gl', 'glmsaa4', 'glnvpr4', 'glnvprdit4']) 55 config.extend(['gl', 'glmsaa4', 'glnvpr4', 'glnvprdit4'])
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 if len(sys.argv) == 2 and sys.argv[1] == 'test': 182 if len(sys.argv) == 2 and sys.argv[1] == 'test':
182 self_test() 183 self_test()
183 sys.exit(0) 184 sys.exit(0)
184 185
185 if len(sys.argv) != 3: 186 if len(sys.argv) != 3:
186 print usage 187 print usage
187 sys.exit(1) 188 sys.exit(1)
188 189
189 with open(sys.argv[1], 'w') as out: 190 with open(sys.argv[1], 'w') as out:
190 json.dump(get_args(sys.argv[2]), out) 191 json.dump(get_args(sys.argv[2]), out)
OLDNEW
« no previous file with comments | « tools/nanobench_flags.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698