mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Bug 1288618 - Part 12: Initialize WMF in the GPU process. r=dvander
--HG-- extra : rebase_source : 12d1829522bd2761308e1b2bcaf488a1e5f15f67
This commit is contained in:
parent
3689c6beb9
commit
1f7fd955fa
@ -3,6 +3,9 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
#ifdef XP_WIN
|
||||
#include "WMF.h"
|
||||
#endif
|
||||
#include "GPUParent.h"
|
||||
#include "gfxConfig.h"
|
||||
#include "gfxPlatform.h"
|
||||
@ -74,6 +77,9 @@ GPUParent::Init(base::ProcessId aParentPid,
|
||||
VRManager::ManagerInit();
|
||||
LayerTreeOwnerTracker::Initialize();
|
||||
mozilla::ipc::SetThisProcessName("GPU Process");
|
||||
#ifdef XP_WIN
|
||||
wmf::MFStartup();
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -273,6 +279,10 @@ GPUParent::ActorDestroy(ActorDestroyReason aWhy)
|
||||
ProcessChild::QuickExit();
|
||||
}
|
||||
|
||||
#ifdef XP_WIN
|
||||
wmf::MFShutdown();
|
||||
#endif
|
||||
|
||||
#ifndef NS_FREE_PERMANENT_DATA
|
||||
// No point in going through XPCOM shutdown because we don't keep persistent
|
||||
// state.
|
||||
|
@ -13,6 +13,8 @@
|
||||
namespace mozilla {
|
||||
namespace gfx {
|
||||
|
||||
using namespace ipc;
|
||||
|
||||
GPUProcessHost::GPUProcessHost(Listener* aListener)
|
||||
: GeckoChildProcessHost(GeckoProcessType_GPU),
|
||||
mListener(aListener),
|
||||
|
@ -47,7 +47,6 @@ UNIFIED_SOURCES += [
|
||||
'CompositorWidgetVsyncObserver.cpp',
|
||||
'D3DMessageUtils.cpp',
|
||||
'GPUChild.cpp',
|
||||
'GPUParent.cpp',
|
||||
'GPUProcessHost.cpp',
|
||||
'GPUProcessImpl.cpp',
|
||||
'GPUProcessManager.cpp',
|
||||
@ -59,6 +58,10 @@ UNIFIED_SOURCES += [
|
||||
'VsyncIOThreadHolder.cpp',
|
||||
]
|
||||
|
||||
SOURCES += [
|
||||
'GPUParent.cpp',
|
||||
]
|
||||
|
||||
IPDL_SOURCES = [
|
||||
'GraphicsMessages.ipdlh',
|
||||
'PGPU.ipdl',
|
||||
|
Loading…
Reference in New Issue
Block a user