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

Side by Side Diff: tools/dm_flags.py

Issue 1853103003: Add predfined configs for msaa4, nvpr4, nvpr4dit, and srgb that explictly use OpenGL rather than GL… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add 'gl' to config list Created 4 years, 8 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') | tools/flags/SkCommonFlagsConfig.cpp » ('j') | 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 if '-TSAN' not in bot: 43 if '-TSAN' not in bot:
44 if ('TegraK1' in bot or 44 if ('TegraK1' in bot or
45 'GTX550Ti' in bot or 45 'GTX550Ti' in bot or
46 'GTX660' in bot or 46 'GTX660' in bot or
47 'GT610' in bot): 47 'GT610' in bot):
48 if 'Android' in bot: 48 if 'Android' in bot:
49 configs.append('nvprdit4') 49 configs.append('nvprdit4')
50 else: 50 else:
51 configs.append('nvprdit16') 51 configs.append('nvprdit16')
52 52
53 # We want to test the OpenGL config not the GLES config on the X1
54 if 'TegraX1' in bot:
55 configs.remove('gpu')
56 configs.remove('gpusrgb')
57 configs.append('gl')
58 configs.append('glsrgb')
59
53 # The S4 crashes and the NP produces a long error stream when we run with 60 # The S4 crashes and the NP produces a long error stream when we run with
54 # MSAA. The Tegra2 and Tegra3 just don't support it. 61 # MSAA. The Tegra2 and Tegra3 just don't support it.
55 if ('GalaxyS4' not in bot and 62 if ('GalaxyS4' not in bot and
56 'NexusPlayer' not in bot and 63 'NexusPlayer' not in bot and
57 'Tegra3' not in bot and 64 'Tegra3' not in bot and
58 'iOS' not in bot): 65 'iOS' not in bot):
59 if 'Android' in bot: 66 if 'Android' in bot:
60 configs.append('msaa4') 67 configs.append('msaa4')
61 else: 68 else:
62 configs.append('msaa16') 69 configs.append('msaa16')
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release', 261 'Test-Android-GCC-GalaxyS4-GPU-SGX544-Arm7-Release',
255 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Release', 262 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Release',
256 'Test-Android-GCC-NexusPlayer-CPU-SSSE3-x86-Release', 263 'Test-Android-GCC-NexusPlayer-CPU-SSSE3-x86-Release',
257 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', 264 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind',
258 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-MSAN', 265 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-MSAN',
259 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-TSAN', 266 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-TSAN',
260 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Valgrind', 267 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Valgrind',
261 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE', 268 'Test-Win7-MSVC-ShuttleA-GPU-HD2000-x86-Debug-ANGLE',
262 'Test-Mac10.8-Clang-MacMini4.1-CPU-SSE4-x86_64-Release', 269 'Test-Mac10.8-Clang-MacMini4.1-CPU-SSE4-x86_64-Release',
263 'Test-Mac-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Release', 270 'Test-Mac-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Release',
271 'Test-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Release',
264 ] 272 ]
265 273
266 cov = coverage.coverage() 274 cov = coverage.coverage()
267 cov.start() 275 cov.start()
268 for case in cases: 276 for case in cases:
269 args[case] = get_args(case) 277 args[case] = get_args(case)
270 cov.stop() 278 cov.stop()
271 279
272 this_file = os.path.basename(__file__) 280 this_file = os.path.basename(__file__)
273 _, _, not_run, _ = cov.analysis(this_file) 281 _, _, not_run, _ = cov.analysis(this_file)
(...skipping 11 matching lines...) Expand all
285 if len(sys.argv) == 2 and sys.argv[1] == 'test': 293 if len(sys.argv) == 2 and sys.argv[1] == 'test':
286 self_test() 294 self_test()
287 sys.exit(0) 295 sys.exit(0)
288 296
289 if len(sys.argv) != 3: 297 if len(sys.argv) != 3:
290 print usage 298 print usage
291 sys.exit(1) 299 sys.exit(1)
292 300
293 with open(sys.argv[1], 'w') as out: 301 with open(sys.argv[1], 'w') as out:
294 json.dump(get_args(sys.argv[2]), out) 302 json.dump(get_args(sys.argv[2]), out)
OLDNEW
« no previous file with comments | « tools/dm_flags.json ('k') | tools/flags/SkCommonFlagsConfig.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698