Disable the GPU process in xpc-shell after we kill it to prevent extra restarts. (bug 1402500, r=dvander)
authorRyan Hunt <rhunt@eqrion.net>
Tue, 26 Sep 2017 10:26:44 -0400
changeset 383330 e06e885db07d553b42b17f52c19d490f8c6f4984
parent 383329 43b3df38a4068f7d5f0e281fdd30bf76a59d650c
child 383331 45f0f5d939ee3203a95f5a71ecebeb9e3174fa4a
push id32588
push userkwierso@gmail.com
push dateWed, 27 Sep 2017 23:52:56 +0000
treeherdermozilla-central@5ebe2e8980c6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander
bugs1402500
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Disable the GPU process in xpc-shell after we kill it to prevent extra restarts. (bug 1402500, r=dvander) MozReview-Commit-ID: 3SNNGIfvTOr
widget/GfxInfoBase.cpp
--- a/widget/GfxInfoBase.cpp
+++ b/widget/GfxInfoBase.cpp
@@ -1535,16 +1535,17 @@ GfxInfoBase::ControlGPUProcessForXPCShel
   GPUProcessManager* gpm = GPUProcessManager::Get();
   if (aEnable) {
     if (!gfxConfig::IsEnabled(Feature::GPU_PROCESS)) {
       gfxConfig::UserForceEnable(Feature::GPU_PROCESS, "xpcshell-test");
     }
     gpm->LaunchGPUProcess();
     gpm->EnsureGPUReady();
   } else {
+    gfxConfig::UserDisable(Feature::GPU_PROCESS, "xpcshell-test");
     gpm->KillProcess();
   }
 
   *_retval = true;
   return NS_OK;
 }
 
 GfxInfoCollectorBase::GfxInfoCollectorBase()