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 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 Loading... |
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 Loading... |
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 |
OLD | NEW |