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 import test_expectations | 5 from gpu_tests import test_expectations |
6 | 6 |
7 ANGLE_CONDITIONS = ['d3d9', 'd3d11', 'opengl'] | 7 ANGLE_CONDITIONS = ['d3d9', 'd3d11', 'opengl'] |
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'] |
11 | 11 |
12 class GpuExpectation(test_expectations.Expectation): | 12 class GpuExpectation(test_expectations.Expectation): |
13 def __init__(self, expectation, pattern, conditions=None, bug=None, | 13 def __init__(self, expectation, pattern, conditions=None, bug=None, |
14 max_num_retries=0): | 14 max_num_retries=0): |
15 self.gpu_conditions = [] | 15 self.gpu_conditions = [] |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 if gpu_info and gpu_info.aux_attributes: | 122 if gpu_info and gpu_info.aux_attributes: |
123 gl_renderer = gpu_info.aux_attributes.get('gl_renderer') | 123 gl_renderer = gpu_info.aux_attributes.get('gl_renderer') |
124 if gl_renderer: | 124 if gl_renderer: |
125 if 'Direct3D11' in gl_renderer: | 125 if 'Direct3D11' in gl_renderer: |
126 return 'd3d11' | 126 return 'd3d11' |
127 elif 'Direct3D9' in gl_renderer: | 127 elif 'Direct3D9' in gl_renderer: |
128 return 'd3d9' | 128 return 'd3d9' |
129 elif 'OpenGL' in gl_renderer: | 129 elif 'OpenGL' in gl_renderer: |
130 return 'opengl' | 130 return 'opengl' |
131 return '' | 131 return '' |
OLD | NEW |