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

Side by Side Diff: content/test/gpu/page_sets/gpu_process_tests.py

Issue 2153373002: On Linux rework driver_version/vendor extraction from gl version (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Just rebase Created 4 years, 4 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 | « content/browser/browser_main_loop.cc ('k') | gpu/config/gpu_info_collector_linux.cc » ('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 import sys 4 import sys
5 from telemetry.story import story_set as story_set_module 5 from telemetry.story import story_set as story_set_module
6 from telemetry.page import page_test 6 from telemetry.page import page_test
7 7
8 from gpu_tests import gpu_test_base 8 from gpu_tests import gpu_test_base
9 9
10 class GpuProcessSharedPageState(gpu_test_base.GpuSharedPageState): 10 class GpuProcessSharedPageState(gpu_test_base.GpuSharedPageState):
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 212
213 class SoftwareGpuProcessSharedPageState(GpuProcessSharedPageState): 213 class SoftwareGpuProcessSharedPageState(GpuProcessSharedPageState):
214 def __init__(self, test, finder_options, story_set): 214 def __init__(self, test, finder_options, story_set):
215 super(SoftwareGpuProcessSharedPageState, self).__init__( 215 super(SoftwareGpuProcessSharedPageState, self).__init__(
216 test, finder_options, story_set) 216 test, finder_options, story_set)
217 options = finder_options.browser_options 217 options = finder_options.browser_options
218 options.AppendExtraBrowserArgs('--gpu-testing-vendor-id=0x10de') 218 options.AppendExtraBrowserArgs('--gpu-testing-vendor-id=0x10de')
219 options.AppendExtraBrowserArgs('--gpu-testing-device-id=0x0de1') 219 options.AppendExtraBrowserArgs('--gpu-testing-device-id=0x0de1')
220 options.AppendExtraBrowserArgs('--gpu-testing-gl-vendor=VMware') 220 options.AppendExtraBrowserArgs('--gpu-testing-gl-vendor=VMware')
221 options.AppendExtraBrowserArgs('--gpu-testing-gl-renderer=SVGA3D') 221 options.AppendExtraBrowserArgs('--gpu-testing-gl-renderer=SVGA3D')
222 options.AppendExtraBrowserArgs('--gpu-testing-gl-version="2.1 Mesa 10.1"') 222 options.AppendExtraBrowserArgs('--gpu-testing-gl-version=2.1 Mesa 10.1')
223 223
224 224
225 class SoftwareGpuProcessPage(gpu_test_base.PageBase): 225 class SoftwareGpuProcessPage(gpu_test_base.PageBase):
226 226
227 def __init__(self, story_set, expectations): 227 def __init__(self, story_set, expectations):
228 super(SoftwareGpuProcessPage, self).__init__( 228 super(SoftwareGpuProcessPage, self).__init__(
229 url='about:blank', 229 url='about:blank',
230 name='GpuProcess.software_gpu_process', 230 name='GpuProcess.software_gpu_process',
231 page_set=story_set, 231 page_set=story_set,
232 shared_page_state_class=SoftwareGpuProcessSharedPageState, 232 shared_page_state_class=SoftwareGpuProcessSharedPageState,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 # Hit id 51 and 87 from kGpuDriverBugListJson. 290 # Hit id 51 and 87 from kGpuDriverBugListJson.
291 options.AppendExtraBrowserArgs('--gpu-testing-vendor-id=0x1002') 291 options.AppendExtraBrowserArgs('--gpu-testing-vendor-id=0x1002')
292 options.AppendExtraBrowserArgs('--gpu-testing-device-id=0x6779') 292 options.AppendExtraBrowserArgs('--gpu-testing-device-id=0x6779')
293 options.AppendExtraBrowserArgs('--gpu-testing-driver-date=11-20-2014') 293 options.AppendExtraBrowserArgs('--gpu-testing-driver-date=11-20-2014')
294 options.AppendExtraBrowserArgs('--gpu-testing-gl-vendor=Google Inc.') 294 options.AppendExtraBrowserArgs('--gpu-testing-gl-vendor=Google Inc.')
295 options.AppendExtraBrowserArgs('--gpu-testing-gl-renderer=ANGLE ' \ 295 options.AppendExtraBrowserArgs('--gpu-testing-gl-renderer=ANGLE ' \
296 '(AMD Radeon HD 6450 Direct3D11 vs_5_0 ps_5_0)') 296 '(AMD Radeon HD 6450 Direct3D11 vs_5_0 ps_5_0)')
297 options.AppendExtraBrowserArgs('--gpu-testing-gl-version=OpenGL ES 2.0 ' \ 297 options.AppendExtraBrowserArgs('--gpu-testing-gl-version=OpenGL ES 2.0 ' \
298 '(ANGLE 2.1.0.0c0d8006a9dd)') 298 '(ANGLE 2.1.0.0c0d8006a9dd)')
299 elif sys.platform.startswith('linux'): 299 elif sys.platform.startswith('linux'):
300 # Hit id 153 from kGpuDriverBugListJson. 300 # Hit id 40 from kGpuDriverBugListJson.
301 options.AppendExtraBrowserArgs('--gpu-testing-vendor-id=0x0101') 301 options.AppendExtraBrowserArgs('--gpu-testing-vendor-id=0x0101')
302 options.AppendExtraBrowserArgs('--gpu-testing-device-id=0x0102') 302 options.AppendExtraBrowserArgs('--gpu-testing-device-id=0x0102')
303 options.AppendExtraBrowserArgs('--gpu-testing-gl-vendor=Vivante ' \ 303 options.AppendExtraBrowserArgs('--gpu-testing-gl-vendor=ARM')
304 'Corporation') 304 options.AppendExtraBrowserArgs('--gpu-testing-gl-renderer=Mali-400 MP')
305 options.AppendExtraBrowserArgs('--gpu-testing-gl-renderer=Vivante GC1000')
306 elif sys.platform == 'darwin': 305 elif sys.platform == 'darwin':
307 # Currently on osx no workaround relies on gl-renderer. 306 # Currently on osx no workaround relies on gl-renderer.
308 pass 307 pass
309 308
310 309
311 class DriverBugWorkaroundsUponGLRendererPage(DriverBugWorkaroundsTestsPage): 310 class DriverBugWorkaroundsUponGLRendererPage(DriverBugWorkaroundsTestsPage):
312 def __init__(self, story_set, expectations): 311 def __init__(self, story_set, expectations):
313 self.expected_workaround = None 312 self.expected_workaround = None
314 self.unexpected_workaround = None 313 self.unexpected_workaround = None
315 314
316 if sys.platform in ('cygwin', 'win32'): 315 if sys.platform in ('cygwin', 'win32'):
317 self.expected_workaround = "texsubimage_faster_than_teximage" 316 self.expected_workaround = "texsubimage_faster_than_teximage"
318 self.unexpected_workaround = "disable_d3d11" 317 self.unexpected_workaround = "disable_d3d11"
319 elif sys.platform.startswith('linux'): 318 elif sys.platform.startswith('linux'):
320 self.expected_workaround = "disable_transparent_visuals" 319 self.expected_workaround = "disable_discard_framebuffer"
321 elif sys.platform == 'darwin': 320 elif sys.platform == 'darwin':
322 pass 321 pass
323 super(DriverBugWorkaroundsUponGLRendererPage, self).__init__( 322 super(DriverBugWorkaroundsUponGLRendererPage, self).__init__(
324 name='GpuProcess.driver_bug_workarounds_upon_gl_renderer', 323 name='GpuProcess.driver_bug_workarounds_upon_gl_renderer',
325 page_set=story_set, 324 page_set=story_set,
326 shared_page_state_class=DriverBugWorkaroundsUponGLRendererShared, 325 shared_page_state_class=DriverBugWorkaroundsUponGLRendererShared,
327 expectations=expectations, 326 expectations=expectations,
328 expected_workaround=self.expected_workaround, 327 expected_workaround=self.expected_workaround,
329 unexpected_workaround=self.unexpected_workaround) 328 unexpected_workaround=self.unexpected_workaround)
330 329
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 if not is_platform_android: 605 if not is_platform_android:
607 self.AddStory(SkipGpuProcessPage(self, expectations)) 606 self.AddStory(SkipGpuProcessPage(self, expectations))
608 self.AddStory(HasTransparentVisualsGpuProcessPage(self, expectations)) 607 self.AddStory(HasTransparentVisualsGpuProcessPage(self, expectations))
609 self.AddStory(NoTransparentVisualsGpuProcessPage(self, expectations)) 608 self.AddStory(NoTransparentVisualsGpuProcessPage(self, expectations))
610 609
611 @property 610 @property
612 def allow_mixed_story_states(self): 611 def allow_mixed_story_states(self):
613 # Return True here in order to be able to run pages with different browser 612 # Return True here in order to be able to run pages with different browser
614 # command line arguments. 613 # command line arguments.
615 return True 614 return True
OLDNEW
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | gpu/config/gpu_info_collector_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698