mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
Bug 1375424 - Enable the GPU time out mechanism for WR, r=sotaro
MozReview-Commit-ID: JlsODvvdQiJ --HG-- extra : rebase_source : bab4170b1e47652e33c5395342490d992735d713
This commit is contained in:
parent
374cfaa39e
commit
e28fd08cee
@ -287,10 +287,8 @@ CompositorManagerChild::SetReplyTimeout()
|
||||
{
|
||||
#ifndef DEBUG
|
||||
// Add a timeout for release builds to kill GPU process when it hangs.
|
||||
// Don't apply timeout when using web render as it tend to timeout frequently.
|
||||
if (XRE_IsParentProcess() &&
|
||||
GPUProcessManager::Get()->GetGPUChild() &&
|
||||
!gfx::gfxVars::UseWebRender()) {
|
||||
GPUProcessManager::Get()->GetGPUChild()) {
|
||||
int32_t timeout = gfxPrefs::GPUProcessIPCReplyTimeoutMs();
|
||||
SetReplyTimeoutMs(timeout);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user