зеркало из https://github.com/mozilla/gecko-dev.git
01c1cad628
Add KillGPUProcessForTests, which kills the GPU process without generating a crash dump (unlike the existing CrashGPUProcessForTests). Additionally add EnsureGPUProcessReadyForTests, which returns a promise that resolves to true when the GPU process is enabled and ready, and false if it is disabled. If called while the GPU process is being (re)started, it will not resolve until it has finished launching (or was disabled due to error). Finally, make GPUProcessHost::IsConnected check whether the process handle is valid. This ensures it returns false immediately following a call to KillProcess but prior to the GPUChild being destroyed. This means tests can call EnsureGPUProcessReadyForTests immediately after KillGPUProcessForTests or CrashGPUProcessForTests, and it will reliably wait for the new process to launch, as intended. Depends on D135207 Differential Revision: https://phabricator.services.mozilla.com/D135328 |
||
---|---|---|
.. | ||
browser | ||
chrome | ||
crashtests | ||
gtest | ||
mochitest | ||
reftest | ||
moz.build |