angle/include/EGL
Kimmo Kinnunen 9637185c3d Add ForceGPUSwitch to EGL_ANGLE_power_preference
eglHandleGPUSwitch() does not work with WebKit sandbox profile.
The root cause is that we do not know the
primary display, and as such we do not know which GPU drives this.

Add eglForceGPUSwitchANGLE(display, gpuIDHigh, gpuIDLow).
This lets the caller figure out the GPU in another process. Then
the caller can just set the GPU in the sandboxed process.

Add tests that are disabled by default until the runner and the
infrastructure supports running the tests with automatic switching
enabled.

Bug: angleproject:7092
Change-Id: I316ee431156596effbdb89659a5e24291719a204
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3516274
Reviewed-by: Jonah Ryan-Davis <jonahr@google.com>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Commit-Queue: Kenneth Russell <kbr@chromium.org>
2022-03-19 01:15:06 +00:00
..
.clang-format Fixed OpenCL headers for Windows 2021-04-07 12:30:01 +00:00
egl.h EGL: Update EGL headers/xml 2020-12-10 14:46:28 +00:00
eglext.h EGL: Update EGL headers/xml 2020-12-10 14:46:28 +00:00
eglext_angle.h Add ForceGPUSwitch to EGL_ANGLE_power_preference 2022-03-19 01:15:06 +00:00
eglplatform.h EGL: Update EGL headers/xml 2020-12-10 14:46:28 +00:00