Bug 1375424 - Enable the GPU time out mechanism for WR, r?sotaro
MozReview-Commit-ID: JlsODvvdQiJ
--- a/gfx/layers/ipc/CompositorManagerChild.cpp
+++ b/gfx/layers/ipc/CompositorManagerChild.cpp
@@ -282,20 +282,18 @@ CompositorManagerChild::GetSpecificMessa
return nullptr;
}
void
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);
}
#endif
}
bool
CompositorManagerChild::ShouldContinueFromReplyTimeout()