summaryrefslogtreecommitdiff
path: root/gfx/ipc
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-11-17 23:02:46 +0000
committerMoonchild <moonchild@palemoon.org>2022-04-04 22:15:34 +0200
commitef5083db5f52156bebeffbe73317efcf35350228 (patch)
treed2a456633aa98a074593ae589cd65c6efad79054 /gfx/ipc
parentcff9ef7fb81b46264caea00ac3c7a99677d8b856 (diff)
downloaduxp-ef5083db5f52156bebeffbe73317efcf35350228.tar.gz
Issue #1841 - Part 2: Remove D3D9 layer compositor references and
layer fallback code.
Diffstat (limited to 'gfx/ipc')
-rw-r--r--gfx/ipc/GPUChild.cpp1
-rw-r--r--gfx/ipc/GPUParent.cpp5
-rw-r--r--gfx/ipc/GraphicsMessages.ipdlh6
3 files changed, 1 insertions, 11 deletions
diff --git a/gfx/ipc/GPUChild.cpp b/gfx/ipc/GPUChild.cpp
index 06371ebbac..9a82721233 100644
--- a/gfx/ipc/GPUChild.cpp
+++ b/gfx/ipc/GPUChild.cpp
@@ -54,7 +54,6 @@ GPUChild::Init()
DevicePrefs devicePrefs;
devicePrefs.hwCompositing() = gfxConfig::GetValue(Feature::HW_COMPOSITING);
devicePrefs.d3d11Compositing() = gfxConfig::GetValue(Feature::D3D11_COMPOSITING);
- devicePrefs.d3d9Compositing() = gfxConfig::GetValue(Feature::D3D9_COMPOSITING);
devicePrefs.oglCompositing() = gfxConfig::GetValue(Feature::OPENGL_COMPOSITING);
devicePrefs.useD2D1() = gfxConfig::GetValue(Feature::DIRECT2D);
diff --git a/gfx/ipc/GPUParent.cpp b/gfx/ipc/GPUParent.cpp
index 7d8a3a4349..c634dd56fb 100644
--- a/gfx/ipc/GPUParent.cpp
+++ b/gfx/ipc/GPUParent.cpp
@@ -28,7 +28,6 @@
#include "ProcessUtils.h"
#include "VsyncBridgeParent.h"
#if defined(XP_WIN)
-# include "DeviceManagerD3D9.h"
# include "mozilla/gfx/DeviceManagerDx.h"
#endif
#ifdef MOZ_WIDGET_GTK
@@ -86,7 +85,6 @@ GPUParent::Init(base::ProcessId aParentPid,
gfxPlatform::InitMoz2DLogging();
#if defined(XP_WIN)
DeviceManagerDx::Init();
- DeviceManagerD3D9::Init();
#endif
if (NS_FAILED(NS_InitMinimalXPCOM())) {
@@ -145,7 +143,6 @@ GPUParent::RecvInit(nsTArray<GfxPrefSetting>&& prefs,
// Inherit device preferences.
gfxConfig::Inherit(Feature::HW_COMPOSITING, devicePrefs.hwCompositing());
gfxConfig::Inherit(Feature::D3D11_COMPOSITING, devicePrefs.d3d11Compositing());
- gfxConfig::Inherit(Feature::D3D9_COMPOSITING, devicePrefs.d3d9Compositing());
gfxConfig::Inherit(Feature::OPENGL_COMPOSITING, devicePrefs.oglCompositing());
gfxConfig::Inherit(Feature::DIRECT2D, devicePrefs.useD2D1());
@@ -237,7 +234,6 @@ bool
GPUParent::RecvGetDeviceStatus(GPUDeviceData* aOut)
{
CopyFeatureChange(Feature::D3D11_COMPOSITING, &aOut->d3d11Compositing());
- CopyFeatureChange(Feature::D3D9_COMPOSITING, &aOut->d3d9Compositing());
CopyFeatureChange(Feature::OPENGL_COMPOSITING, &aOut->oglCompositing());
#if defined(XP_WIN)
@@ -350,7 +346,6 @@ GPUParent::ActorDestroy(ActorDestroyReason aWhy)
Factory::ShutDown();
#if defined(XP_WIN)
DeviceManagerDx::Shutdown();
- DeviceManagerD3D9::Shutdown();
#endif
LayerTreeOwnerTracker::Shutdown();
gfxVars::Shutdown();
diff --git a/gfx/ipc/GraphicsMessages.ipdlh b/gfx/ipc/GraphicsMessages.ipdlh
index cc4115d425..6da1cc142a 100644
--- a/gfx/ipc/GraphicsMessages.ipdlh
+++ b/gfx/ipc/GraphicsMessages.ipdlh
@@ -1,6 +1,4 @@
-/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
- * vim: sw=2 ts=8 et :
- */
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/. */
@@ -27,7 +25,6 @@ struct DevicePrefs
{
FeatureStatus hwCompositing;
FeatureStatus d3d11Compositing;
- FeatureStatus d3d9Compositing;
FeatureStatus oglCompositing;
FeatureStatus useD2D1;
};
@@ -63,7 +60,6 @@ union GPUDeviceStatus
struct GPUDeviceData
{
FeatureChange d3d11Compositing;
- FeatureChange d3d9Compositing;
FeatureChange oglCompositing;
GPUDeviceStatus gpuDevice;
};