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

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

Issue 2671773003: Copy GPU workaround flags from browser to GPU process (Closed)
Patch Set: fix test on certain systems Created 3 years, 10 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/gpu/gpu_process_host.cc ('k') | gpu/config/gpu_driver_bug_list.h » ('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 2017 The Chromium Authors. All rights reserved. 1 # Copyright 2017 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 import logging 5 import logging
6 import os 6 import os
7 import sys 7 import sys
8 8
9 from gpu_tests import gpu_integration_test 9 from gpu_tests import gpu_integration_test
10 from gpu_tests import gpu_process_expectations 10 from gpu_tests import gpu_process_expectations
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 ('GpuProcess_driver_bug_workarounds_in_gpu_process', 'chrome:gpu'), 108 ('GpuProcess_driver_bug_workarounds_in_gpu_process', 'chrome:gpu'),
109 ('GpuProcess_readback_webgl_gpu_process', 'chrome:gpu'), 109 ('GpuProcess_readback_webgl_gpu_process', 'chrome:gpu'),
110 ('GpuProcess_driver_bug_workarounds_upon_gl_renderer', 110 ('GpuProcess_driver_bug_workarounds_upon_gl_renderer',
111 'chrome:gpu'), 111 'chrome:gpu'),
112 ('GpuProcess_only_one_workaround', 'chrome:gpu'), 112 ('GpuProcess_only_one_workaround', 'chrome:gpu'),
113 ('GpuProcess_skip_gpu_process', 'chrome:gpu'), 113 ('GpuProcess_skip_gpu_process', 'chrome:gpu'),
114 ('GpuProcess_identify_active_gpu1', 'chrome:gpu'), 114 ('GpuProcess_identify_active_gpu1', 'chrome:gpu'),
115 ('GpuProcess_identify_active_gpu2', 'chrome:gpu'), 115 ('GpuProcess_identify_active_gpu2', 'chrome:gpu'),
116 ('GpuProcess_identify_active_gpu3', 'chrome:gpu'), 116 ('GpuProcess_identify_active_gpu3', 'chrome:gpu'),
117 ('GpuProcess_identify_active_gpu4', 'chrome:gpu'), 117 ('GpuProcess_identify_active_gpu4', 'chrome:gpu'),
118 ('GpuProcess_software_gpu_process', 'about:blank')) 118 ('GpuProcess_software_gpu_process', 'about:blank'),
119 ('GpuProcess_disabling_workarounds_works', 'chrome:gpu'))
119 120
120 # The earlier has_transparent_visuals_gpu_process and 121 # The earlier has_transparent_visuals_gpu_process and
121 # no_transparent_visuals_gpu_process tests became no-ops in 122 # no_transparent_visuals_gpu_process tests became no-ops in
122 # http://crrev.com/2347383002 and were deleted. 123 # http://crrev.com/2347383002 and were deleted.
123 124
124 for t in tests: 125 for t in tests:
125 yield (t[0], t[1], ('_' + t[0])) 126 yield (t[0], t[1], ('_' + t[0]))
126 127
127 def RunActualGpuTest(self, test_path, *args): 128 def RunActualGpuTest(self, test_path, *args):
128 test_name = args[0] 129 test_name = args[0]
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 # Hit exception from id 50 from kSoftwareRenderingListJson. 520 # Hit exception from id 50 from kSoftwareRenderingListJson.
520 self.RestartBrowserIfNecessaryWithArgs([ 521 self.RestartBrowserIfNecessaryWithArgs([
521 '--gpu-testing-vendor-id=0x10de', 522 '--gpu-testing-vendor-id=0x10de',
522 '--gpu-testing-device-id=0x0de1', 523 '--gpu-testing-device-id=0x0de1',
523 '--gpu-testing-gl-vendor=VMware', 524 '--gpu-testing-gl-vendor=VMware',
524 '--gpu-testing-gl-renderer=SVGA3D', 525 '--gpu-testing-gl-renderer=SVGA3D',
525 '--gpu-testing-gl-version=2.1 Mesa 10.1']) 526 '--gpu-testing-gl-version=2.1 Mesa 10.1'])
526 self._Navigate(test_path) 527 self._Navigate(test_path)
527 self._VerifyGpuProcessPresent() 528 self._VerifyGpuProcessPresent()
528 529
530 def _GpuProcess_disabling_workarounds_works(self, test_path):
531 # Hit exception from id 215 from kGpuDriverBugListJson.
532 self.RestartBrowserIfNecessaryWithArgs([
533 '--gpu-testing-vendor-id=0xbad9',
534 '--gpu-testing-device-id=0xbad9',
535 '--gpu-testing-secondary-vendor-ids=',
536 '--gpu-testing-secondary-device-ids=',
537 '--gpu-testing-gl-vendor=FakeVendor',
538 '--gpu-testing-gl-renderer=FakeRenderer',
539 '--use_gpu_driver_workaround_for_testing=0'])
540 self._Navigate(test_path)
541 workarounds, _ = (
542 self._CompareAndCaptureDriverBugWorkarounds())
543 if 'use_gpu_driver_workaround_for_testing' in workarounds:
544 self.fail('use_gpu_driver_workaround_for_testing erroneously present')
545
529 def load_tests(loader, tests, pattern): 546 def load_tests(loader, tests, pattern):
530 del loader, tests, pattern # Unused. 547 del loader, tests, pattern # Unused.
531 return gpu_integration_test.LoadAllTestsInModule(sys.modules[__name__]) 548 return gpu_integration_test.LoadAllTestsInModule(sys.modules[__name__])
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | gpu/config/gpu_driver_bug_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698