Fix UI process not properly waiting for the GPU process to finish launching. (bug 1314127, r=rhunt)
authorDavid Anderson <danderson@mozilla.com>
Mon, 31 Oct 2016 16:03:41 -0700
changeset 347230 c6df219786483e009d46d6fd506924698a5a458f
parent 347229 e4460a5913c3e325d79ff3eb35a719d14b6e0d15
child 347231 625e625af80e897bd6439e7e861615921a60eef9
push id10298
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:33:03 +0000
treeherdermozilla-aurora@7e29173b1641 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrhunt
bugs1314127
milestone52.0a1
Fix UI process not properly waiting for the GPU process to finish launching. (bug 1314127, r=rhunt)
gfx/ipc/GPUProcessManager.cpp
--- a/gfx/ipc/GPUProcessManager.cpp
+++ b/gfx/ipc/GPUProcessManager.cpp
@@ -143,17 +143,17 @@ GPUProcessManager::DisableGPUProcess(con
 
   DestroyProcess();
   ShutdownVsyncIOThread();
 }
 
 void
 GPUProcessManager::EnsureGPUReady()
 {
-  if (mProcess && mProcess->IsConnected()) {
+  if (mProcess && !mProcess->IsConnected()) {
     if (!mProcess->WaitForLaunch()) {
       // If this fails, we should have fired OnProcessLaunchComplete and
       // removed the process.
       MOZ_ASSERT(!mProcess && !mGPUChild);
       return;
     }
   }