| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from gpu_tests import test_expectations | 5 from gpu_tests import test_expectations |
| 6 | 6 |
| 7 ANGLE_CONDITIONS = ['d3d9', 'd3d11', 'opengl', 'no_angle'] | 7 ANGLE_CONDITIONS = ['d3d9', 'd3d11', 'opengl', 'no_angle'] |
| 8 | 8 |
| 9 GPU_CONDITIONS = ['amd', 'arm', 'broadcom', 'hisilicon', 'intel', 'imagination', | 9 GPU_CONDITIONS = ['amd', 'arm', 'broadcom', 'hisilicon', 'intel', 'imagination', |
| 10 'nvidia', 'qualcomm', 'vivante'] | 10 'nvidia', 'qualcomm', 'vivante'] |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 def _GetGpuDeviceId(self, gpu_info): | 116 def _GetGpuDeviceId(self, gpu_info): |
| 117 if gpu_info: | 117 if gpu_info: |
| 118 primary_gpu = gpu_info.devices[0] | 118 primary_gpu = gpu_info.devices[0] |
| 119 if primary_gpu: | 119 if primary_gpu: |
| 120 return primary_gpu.device_id or primary_gpu.device_string | 120 return primary_gpu.device_id or primary_gpu.device_string |
| 121 return 0 | 121 return 0 |
| 122 | 122 |
| 123 def _GetANGLERenderer(self, gpu_info): | 123 def _GetANGLERenderer(self, gpu_info): |
| 124 if gpu_info and gpu_info.aux_attributes: | 124 if gpu_info and gpu_info.aux_attributes: |
| 125 gl_renderer = gpu_info.aux_attributes.get('gl_renderer') | 125 gl_renderer = gpu_info.aux_attributes.get('gl_renderer') |
| 126 if gl_renderer: | 126 if gl_renderer and 'ANGLE' in gl_renderer: |
| 127 if 'Direct3D11' in gl_renderer: | 127 if 'Direct3D11' in gl_renderer: |
| 128 return 'd3d11' | 128 return 'd3d11' |
| 129 elif 'Direct3D9' in gl_renderer: | 129 elif 'Direct3D9' in gl_renderer: |
| 130 return 'd3d9' | 130 return 'd3d9' |
| 131 elif 'OpenGL' in gl_renderer: | 131 elif 'OpenGL' in gl_renderer: |
| 132 return 'opengl' | 132 return 'opengl' |
| 133 return 'no_angle' | 133 return 'no_angle' |
| OLD | NEW |