Bug 1297797 - Set the process name for the GPU process r=dvander

This commit is contained in:
George Wright 2016-08-24 15:47:11 -04:00
parent 16d1de5631
commit 7f34cdcfa6
2 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,7 @@
#include "mozilla/layers/ImageBridgeParent.h" #include "mozilla/layers/ImageBridgeParent.h"
#include "nsDebugImpl.h" #include "nsDebugImpl.h"
#include "mozilla/layers/LayerTreeOwnerTracker.h" #include "mozilla/layers/LayerTreeOwnerTracker.h"
#include "ProcessUtils.h"
#include "VRManager.h" #include "VRManager.h"
#include "VRManagerParent.h" #include "VRManagerParent.h"
#include "VsyncBridgeParent.h" #include "VsyncBridgeParent.h"
@ -64,6 +65,7 @@ GPUParent::Init(base::ProcessId aParentPid,
CompositorThreadHolder::Start(); CompositorThreadHolder::Start();
VRManager::ManagerInit(); VRManager::ManagerInit();
LayerTreeOwnerTracker::Initialize(); LayerTreeOwnerTracker::Initialize();
mozilla::ipc::SetThisProcessName("GPU Process");
return true; return true;
} }

View File

@ -64,6 +64,8 @@ IPDL_SOURCES = [
'PVsyncBridge.ipdl', 'PVsyncBridge.ipdl',
] ]
LOCAL_INCLUDES += ['/dom/ipc']
include('/ipc/chromium/chromium-config.mozbuild') include('/ipc/chromium/chromium-config.mozbuild')
FINAL_LIBRARY = 'xul' FINAL_LIBRARY = 'xul'