Skip to content
Snippets Groups Projects
Commit 51e5156e authored by sotaro's avatar sotaro
Browse files

Bug 1824696 - Initialize gfxGradientCache in GPU process only when remote...

Bug 1824696 - Initialize gfxGradientCache in GPU process only when remote canvas is enabled r=gfx-reviewers,lsalzman

On Android, remote canvas is disabled. gfxGradientCache does not need to be initialized.

Differential Revision: https://phabricator.services.mozilla.com/D174058
parent a35b81e8
No related branches found
No related tags found
No related merge requests found
......@@ -201,7 +201,6 @@ bool GPUParent::Init(mozilla::ipc::UntypedEndpoint&& aEndpoint,
apz::InitializeGlobalState();
LayerTreeOwnerTracker::Initialize();
CompositorBridgeParent::InitializeStatics();
gfxGradientCache::Init();
mozilla::ipc::SetThisProcessName("GPU Process");
return true;
......@@ -286,6 +285,10 @@ mozilla::ipc::IPCResult GPUParent::RecvInit(
// here that would normally be initialized there.
SkGraphics::Init();
if (gfxVars::RemoteCanvasEnabled()) {
gfxGradientCache::Init();
}
#if defined(XP_WIN)
if (gfxConfig::IsEnabled(Feature::D3D11_COMPOSITING)) {
if (DeviceManagerDx::Get()->CreateCompositorDevices() &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment