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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 | 310 |
311 class DriverBugWorkaroundsUponGLRendererPage(DriverBugWorkaroundsTestsPage): | 311 class DriverBugWorkaroundsUponGLRendererPage(DriverBugWorkaroundsTestsPage): |
312 def __init__(self, story_set, expectations): | 312 def __init__(self, story_set, expectations): |
313 self.expected_workaround = None | 313 self.expected_workaround = None |
314 self.unexpected_workaround = None | 314 self.unexpected_workaround = None |
315 | 315 |
316 if sys.platform in ('cygwin', 'win32'): | 316 if sys.platform in ('cygwin', 'win32'): |
317 self.expected_workaround = "texsubimage_faster_than_teximage" | 317 self.expected_workaround = "texsubimage_faster_than_teximage" |
318 self.unexpected_workaround = "disable_d3d11" | 318 self.unexpected_workaround = "disable_d3d11" |
319 elif sys.platform.startswith('linux'): | 319 elif sys.platform.startswith('linux'): |
320 self.expected_workaround = "disable_multisampled_render_to_texture" | 320 self.expected_workaround = "disable_transparent_visuals" |
321 elif sys.platform == 'darwin': | 321 elif sys.platform == 'darwin': |
322 pass | 322 pass |
323 super(DriverBugWorkaroundsUponGLRendererPage, self).__init__( | 323 super(DriverBugWorkaroundsUponGLRendererPage, self).__init__( |
324 name='GpuProcess.driver_bug_workarounds_upon_gl_renderer', | 324 name='GpuProcess.driver_bug_workarounds_upon_gl_renderer', |
325 page_set=story_set, | 325 page_set=story_set, |
326 shared_page_state_class=DriverBugWorkaroundsUponGLRendererShared, | 326 shared_page_state_class=DriverBugWorkaroundsUponGLRendererShared, |
327 expectations=expectations, | 327 expectations=expectations, |
328 expected_workaround=self.expected_workaround, | 328 expected_workaround=self.expected_workaround, |
329 unexpected_workaround=self.unexpected_workaround) | 329 unexpected_workaround=self.unexpected_workaround) |
330 | 330 |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 if not is_platform_android: | 606 if not is_platform_android: |
607 self.AddStory(SkipGpuProcessPage(self, expectations)) | 607 self.AddStory(SkipGpuProcessPage(self, expectations)) |
608 self.AddStory(HasTransparentVisualsGpuProcessPage(self, expectations)) | 608 self.AddStory(HasTransparentVisualsGpuProcessPage(self, expectations)) |
609 self.AddStory(NoTransparentVisualsGpuProcessPage(self, expectations)) | 609 self.AddStory(NoTransparentVisualsGpuProcessPage(self, expectations)) |
610 | 610 |
611 @property | 611 @property |
612 def allow_mixed_story_states(self): | 612 def allow_mixed_story_states(self): |
613 # 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 |
614 # command line arguments. | 614 # command line arguments. |
615 return True | 615 return True |
OLD | NEW |