Bug 1366808: Start passing parentBuildID to GPU process to detect buildID mismatches. r=jimm
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user