mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Add D3D9 support to the GPU process. (bug 1297182 part 2, r=mattwoodrow)
--HG-- extra : rebase_source : 95364a97c1f0a65eab60f34f64caa8f149e1dbce
This commit is contained in:
parent
2b23d07c29
commit
c27faebe47
@ -18,6 +18,7 @@
|
||||
#include "VRManagerParent.h"
|
||||
#include "VsyncBridgeParent.h"
|
||||
#if defined(XP_WIN)
|
||||
# include "DeviceManagerD3D9.h"
|
||||
# include "mozilla/gfx/DeviceManagerD3D11.h"
|
||||
#endif
|
||||
|
||||
@ -50,6 +51,7 @@ GPUParent::Init(base::ProcessId aParentPid,
|
||||
gfxVars::Initialize();
|
||||
#if defined(XP_WIN)
|
||||
DeviceManagerD3D11::Init();
|
||||
DeviceManagerD3D9::Init();
|
||||
#endif
|
||||
CompositorThreadHolder::Start();
|
||||
VRManager::ManagerInit();
|
||||
@ -224,8 +226,7 @@ GPUParent::ActorDestroy(ActorDestroyReason aWhy)
|
||||
|
||||
#ifndef NS_FREE_PERMANENT_DATA
|
||||
// No point in going through XPCOM shutdown because we don't keep persistent
|
||||
// state. Currently we quick-exit in RecvBeginShutdown so this should be
|
||||
// unreachable.
|
||||
// state.
|
||||
ProcessChild::QuickExit();
|
||||
#endif
|
||||
|
||||
@ -235,6 +236,7 @@ GPUParent::ActorDestroy(ActorDestroyReason aWhy)
|
||||
CompositorThreadHolder::Shutdown();
|
||||
#if defined(XP_WIN)
|
||||
DeviceManagerD3D11::Shutdown();
|
||||
DeviceManagerD3D9::Shutdown();
|
||||
#endif
|
||||
gfxVars::Shutdown();
|
||||
gfxConfig::Shutdown();
|
||||
|
@ -2249,6 +2249,10 @@ gfxPlatform::GetScaledFontForFontWithCairoSkia(DrawTarget* aTarget, gfxFont* aFo
|
||||
/* static */ bool
|
||||
gfxPlatform::UsesOffMainThreadCompositing()
|
||||
{
|
||||
if (XRE_GetProcessType() == GeckoProcessType_GPU) {
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool firstTime = true;
|
||||
static bool result = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user