Needs - tests - interface to check if integrated GPU is on - interface to check if has discrete GPU - interface to flush the shutdown timer of discrete GPU
Created attachment 418113 [details] Patch
Comment on attachment 418113 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=418113&action=review Looks good to me. r+ > LayoutTests/fast/canvas/webgl/high-performance-context.html:14 > +description("Tests that a high-performance contexts do not fail."); "contexts do not" -> "context does not" > LayoutTests/fast/canvas/webgl/high-performance-context.html:19 > +var wtu = WebGLTestUtils; Nowadays, prefer "let" (or "const") over "var".
In case they're useful, here are some related tests run against Chromium: https://source.chromium.org/chromium/chromium/src/+/master:content/test/gpu/gpu_tests/gpu_process_integration_test.py;l=112?q=gpu_process_integration_test https://source.chromium.org/chromium/chromium/src/+/master:content/test/gpu/gpu_tests/pixel_test_pages.py;l=642 the latter of which reference helper functions in this file: https://source.chromium.org/chromium/chromium/src/+/master:content/test/gpu/gpu_tests/pixel_integration_test.py;l=221
<rdar://problem/73744012>