Bug 1366808: Start passing parentBuildID to GPU process to detect buildID mismatches. r=jimm

This commit is contained in:
Stephen A Pohl
2018-05-08 10:31:52 -04:00
parent 1630ce50b3
commit 1a0c877240
3 changed files with 13 additions and 4 deletions

View File

@@ -26,6 +26,7 @@
#include "mozilla/layers/LayerTreeOwnerTracker.h"
#include "mozilla/layers/RemoteCompositorSession.h"
#include "mozilla/widget/PlatformWidgetTypes.h"
#include "nsAppRunner.h"
#ifdef MOZ_WIDGET_SUPPORTS_OOP_COMPOSITING
# include "mozilla/widget/CompositorWidgetChild.h"
#endif
@@ -153,10 +154,15 @@ GPUProcessManager::LaunchGPUProcess()
mNumProcessAttempts++;
std::vector<std::string> extraArgs;
nsCString parentBuildID(mozilla::PlatformBuildID());
extraArgs.push_back("-parentBuildID");
extraArgs.push_back(parentBuildID.get());
// The subprocess is launched asynchronously, so we wait for a callback to
// acquire the IPDL actor.
mProcess = new GPUProcessHost(this);
if (!mProcess->Launch()) {
if (!mProcess->Launch(extraArgs)) {
DisableGPUProcess("Failed to launch GPU process");
}
}