Bug 220844

Summary: WebGL powerPreference cannot be tested due to tests needing to run while no other test is run
Product: WebKit Reporter: Kimmo Kinnunen <kkinnunen>
Component: WebGLAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, dino, kbr, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 220843    
Bug Blocks:    

Description Kimmo Kinnunen 2021-01-22 00:12:26 PST
WebGL powerPreference cannot be tested due to tests needing to run while no other test is run

The powerPreference tests should test sequences related to integrated GPU switches to discrete GPU and vice versa.
This needs the feature that such tests could be marked as "run singly", e.g. so that no other test would be run.
This is needed because other WebGL tests are sensitive to which GPU is being selected, and it is no good if the GPU which tests are run is not deterministic.
Comment 1 Kenneth Russell 2021-01-23 12:17:33 PST
Such a test also generally needs to run on dual-GPU Mac laptops in order to test the browser is properly using the integrated or discrete GPU.

In case they're useful, here are some of the tests of this functionality that Chromium runs. Happy to answer any questions about how they work.

https://source.chromium.org/chromium/chromium/src/+/master:content/test/gpu/gpu_tests/gpu_process_integration_test.py;l=483
Comment 2 Radar WebKit Bug Importer 2021-01-29 00:13:13 PST
<rdar://problem/73743868>