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

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

Issue 2198243002: Revert of On Linux rework driver_version/vendor extraction from gl version (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | gpu/config/gpu_driver_bug_list_json.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 279 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 40 from kGpuDriverBugListJson. 300 # Hit id 153 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=ARM') 303 options.AppendExtraBrowserArgs('--gpu-testing-gl-vendor=Vivante ' \
304 options.AppendExtraBrowserArgs('--gpu-testing-gl-renderer=Mali-400 MP') 304 'Corporation')
305 options.AppendExtraBrowserArgs('--gpu-testing-gl-renderer=Vivante GC1000')
305 elif sys.platform == 'darwin': 306 elif sys.platform == 'darwin':
306 # Currently on osx no workaround relies on gl-renderer. 307 # Currently on osx no workaround relies on gl-renderer.
307 pass 308 pass
308 309
309 310
310 class DriverBugWorkaroundsUponGLRendererPage(DriverBugWorkaroundsTestsPage): 311 class DriverBugWorkaroundsUponGLRendererPage(DriverBugWorkaroundsTestsPage):
311 def __init__(self, story_set, expectations): 312 def __init__(self, story_set, expectations):
312 self.expected_workaround = None 313 self.expected_workaround = None
313 self.unexpected_workaround = None 314 self.unexpected_workaround = None
314 315
315 if sys.platform in ('cygwin', 'win32'): 316 if sys.platform in ('cygwin', 'win32'):
316 self.expected_workaround = "texsubimage_faster_than_teximage" 317 self.expected_workaround = "texsubimage_faster_than_teximage"
317 self.unexpected_workaround = "disable_d3d11" 318 self.unexpected_workaround = "disable_d3d11"
318 elif sys.platform.startswith('linux'): 319 elif sys.platform.startswith('linux'):
319 self.expected_workaround = "disable_discard_framebuffer" 320 self.expected_workaround = "disable_transparent_visuals"
320 elif sys.platform == 'darwin': 321 elif sys.platform == 'darwin':
321 pass 322 pass
322 super(DriverBugWorkaroundsUponGLRendererPage, self).__init__( 323 super(DriverBugWorkaroundsUponGLRendererPage, self).__init__(
323 name='GpuProcess.driver_bug_workarounds_upon_gl_renderer', 324 name='GpuProcess.driver_bug_workarounds_upon_gl_renderer',
324 page_set=story_set, 325 page_set=story_set,
325 shared_page_state_class=DriverBugWorkaroundsUponGLRendererShared, 326 shared_page_state_class=DriverBugWorkaroundsUponGLRendererShared,
326 expectations=expectations, 327 expectations=expectations,
327 expected_workaround=self.expected_workaround, 328 expected_workaround=self.expected_workaround,
328 unexpected_workaround=self.unexpected_workaround) 329 unexpected_workaround=self.unexpected_workaround)
329 330
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 if not is_platform_android: 606 if not is_platform_android:
606 self.AddStory(SkipGpuProcessPage(self, expectations)) 607 self.AddStory(SkipGpuProcessPage(self, expectations))
607 self.AddStory(HasTransparentVisualsGpuProcessPage(self, expectations)) 608 self.AddStory(HasTransparentVisualsGpuProcessPage(self, expectations))
608 self.AddStory(NoTransparentVisualsGpuProcessPage(self, expectations)) 609 self.AddStory(NoTransparentVisualsGpuProcessPage(self, expectations))
609 610
610 @property 611 @property
611 def allow_mixed_story_states(self): 612 def allow_mixed_story_states(self):
612 # Return True here in order to be able to run pages with different browser 613 # Return True here in order to be able to run pages with different browser
613 # command line arguments. 614 # command line arguments.
614 return True 615 return True
OLDNEW
« no previous file with comments | « no previous file | gpu/config/gpu_driver_bug_list_json.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698