Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2013 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 GM executable. """ | 6 """ Run the Skia GM executable. """ |
| 7 | 7 |
| 8 from build_step import BuildStep | 8 from build_step import BuildStep |
| 9 import build_step | 9 import build_step |
| 10 import os | 10 import os |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 61 | 61 |
| 62 device_gm_expectations_path = self._flavor_utils.DevicePathJoin( | 62 device_gm_expectations_path = self._flavor_utils.DevicePathJoin( |
| 63 self._device_dirs.GMExpectedDir(), build_step.GM_EXPECTATIONS_FILENAME) | 63 self._device_dirs.GMExpectedDir(), build_step.GM_EXPECTATIONS_FILENAME) |
| 64 if self._flavor_utils.DevicePathExists(device_gm_expectations_path): | 64 if self._flavor_utils.DevicePathExists(device_gm_expectations_path): |
| 65 cmd.extend(['--readPath', device_gm_expectations_path]) | 65 cmd.extend(['--readPath', device_gm_expectations_path]) |
| 66 | 66 |
| 67 additional_tests_to_ignore = self._GetAdditionalTestsToIgnore() | 67 additional_tests_to_ignore = self._GetAdditionalTestsToIgnore() |
| 68 if additional_tests_to_ignore: | 68 if additional_tests_to_ignore: |
| 69 cmd.extend(['--ignoreTests'] + additional_tests_to_ignore) | 69 cmd.extend(['--ignoreTests'] + additional_tests_to_ignore) |
| 70 | 70 |
| 71 # msaa16 is flaky on Macs (driver bug?) so we skip the test for now | 71 # msaa16 is flaky on Macs (driver bug?) so we skip the test for now |
|
djsollen
2013/10/04 15:18:20
this comment is not out of place
borenet
2013/10/04 15:22:15
Done.
| |
| 72 if 'Xoom' in self._builder_name: | |
| 73 cmd.append('--resetGpuContext') | |
|
rmistry
2013/10/04 15:19:24
Could you add a link to skia:1434 here?
borenet
2013/10/04 15:22:15
Done.
| |
| 72 if sys.platform == 'darwin': | 74 if sys.platform == 'darwin': |
| 73 cmd.extend(['--config', 'defaults', '~msaa16']) | 75 cmd.extend(['--config', 'defaults', '~msaa16']) |
| 74 elif ('RazrI' in self._builder_name or | 76 elif ('RazrI' in self._builder_name or |
| 75 'Nexus10' in self._builder_name or | 77 'Nexus10' in self._builder_name or |
| 76 'GalaxyNexus' in self._builder_name or | 78 'GalaxyNexus' in self._builder_name or |
| 77 'Nexus4' in self._builder_name): | 79 'Nexus4' in self._builder_name): |
| 78 cmd.extend(['--config', 'defaults', 'msaa4']) | 80 cmd.extend(['--config', 'defaults', 'msaa4']) |
| 79 elif (not 'NoGPU' in self._builder_name and | 81 elif (not 'NoGPU' in self._builder_name and |
| 80 not 'ChromeOS' in self._builder_name): | 82 not 'ChromeOS' in self._builder_name): |
| 81 cmd.extend(['--config', 'defaults', 'msaa16']) | 83 cmd.extend(['--config', 'defaults', 'msaa16']) |
| 82 self._flavor_utils.RunFlavoredCmd('gm', cmd) | 84 self._flavor_utils.RunFlavoredCmd('gm', cmd) |
| 83 | 85 |
| 84 | 86 |
| 85 if '__main__' == __name__: | 87 if '__main__' == __name__: |
| 86 sys.exit(BuildStep.RunBuildStep(RunGM)) | 88 sys.exit(BuildStep.RunBuildStep(RunGM)) |
| OLD | NEW |