| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Run the Skia benchmarking executable.""" | 6 """Run the Skia benchmarking executable.""" |
| 7 | 7 |
| 8 import os | 8 import os |
| 9 import sys | 9 import sys |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 args.extend(['--outResultsFile', self._JSONPath()]) | 37 args.extend(['--outResultsFile', self._JSONPath()]) |
| 38 | 38 |
| 39 run_nanobench = True | 39 run_nanobench = True |
| 40 match = [] | 40 match = [] |
| 41 | 41 |
| 42 # Disable known problems. | 42 # Disable known problems. |
| 43 if self._AnyMatch('Win7', 'Android'): | 43 if self._AnyMatch('Win7', 'Android'): |
| 44 # Segfaults when run as GPU bench. Very large texture? | 44 # Segfaults when run as GPU bench. Very large texture? |
| 45 match.append('~blurroundrect') | 45 match.append('~blurroundrect') |
| 46 | 46 |
| 47 if self._AllMatch('Win', 'Release'): | |
| 48 # Appears we're falling into an infinite loop. | |
| 49 run_nanobench = False | |
| 50 | |
| 51 if self._AnyMatch('Nexus7'): | 47 if self._AnyMatch('Nexus7'): |
| 52 # Crashes in GPU mode. | 48 # Crashes in GPU mode. |
| 53 match.append('~draw_stroke') | 49 match.append('~draw_stroke') |
| 54 | 50 |
| 55 if match: | 51 if match: |
| 56 args.append('--match') | 52 args.append('--match') |
| 57 args.extend(match) | 53 args.extend(match) |
| 58 | 54 |
| 59 if run_nanobench: | 55 if run_nanobench: |
| 60 self._flavor_utils.RunFlavoredCmd('nanobench', args) | 56 self._flavor_utils.RunFlavoredCmd('nanobench', args) |
| 61 | 57 |
| 62 | 58 |
| 63 if '__main__' == __name__: | 59 if '__main__' == __name__: |
| 64 sys.exit(BuildStep.RunBuildStep(RunNanobench)) | 60 sys.exit(BuildStep.RunBuildStep(RunNanobench)) |
| OLD | NEW |