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

Side by Side Diff: content/test/gpu/gpu_tests/gpu_test_expectations.py

Issue 1980243004: GPU test expectations: more precisely detect ANGLE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | content/test/gpu/gpu_tests/gpu_test_expectations_unittest.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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'
OLDNEW
« no previous file with comments | « no previous file | content/test/gpu/gpu_tests/gpu_test_expectations_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698