summaryrefslogtreecommitdiffstats
path: root/gfx/layers/d3d9/CompositorD3D9.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-05-04 20:49:56 +0000
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-05-06 19:14:17 +0200
commite008deb88bc6768fd6e85dc0d8d77973a8f83f50 (patch)
treeaddf4b63fc0ee0a95a330e01a2a6c99e7c90f4e0 /gfx/layers/d3d9/CompositorD3D9.cpp
parent56cb90a482737ae5252ac8b7ccbc0aff0b309410 (diff)
downloadUXP-e008deb88bc6768fd6e85dc0d8d77973a8f83f50.tar
UXP-e008deb88bc6768fd6e85dc0d8d77973a8f83f50.tar.gz
UXP-e008deb88bc6768fd6e85dc0d8d77973a8f83f50.tar.lz
UXP-e008deb88bc6768fd6e85dc0d8d77973a8f83f50.tar.xz
UXP-e008deb88bc6768fd6e85dc0d8d77973a8f83f50.zip
Issue #1450 - Remove NVidia 3D-Vision utils
Legacy, unmaintained and untested D3D9 stereo output behind a hidden pref that nobody ever uses... :P 'nuf said. Resolves #1450
Diffstat (limited to 'gfx/layers/d3d9/CompositorD3D9.cpp')
-rw-r--r--gfx/layers/d3d9/CompositorD3D9.cpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/gfx/layers/d3d9/CompositorD3D9.cpp b/gfx/layers/d3d9/CompositorD3D9.cpp
index 85c19139f..6f01e7d15 100644
--- a/gfx/layers/d3d9/CompositorD3D9.cpp
+++ b/gfx/layers/d3d9/CompositorD3D9.cpp
@@ -11,7 +11,6 @@
#include "mozilla/layers/ContentHost.h"
#include "mozilla/layers/Effects.h"
#include "nsWindowsHelpers.h"
-#include "Nv3DVUtils.h"
#include "gfxFailure.h"
#include "mozilla/layers/LayerManagerComposite.h"
#include "gfxPrefs.h"
@@ -426,44 +425,6 @@ CompositorD3D9::DrawQuad(const gfx::Rect &aRect,
MOZ_ASSERT(sourceCb->GetD3D9Texture());
MOZ_ASSERT(sourceCr->GetD3D9Texture());
- /*
- * Send 3d control data and metadata
- */
- if (mDeviceManager->GetNv3DVUtils()) {
- Nv_Stereo_Mode mode;
- switch (source->AsSourceD3D9()->GetStereoMode()) {
- case StereoMode::LEFT_RIGHT:
- mode = NV_STEREO_MODE_LEFT_RIGHT;
- break;
- case StereoMode::RIGHT_LEFT:
- mode = NV_STEREO_MODE_RIGHT_LEFT;
- break;
- case StereoMode::BOTTOM_TOP:
- mode = NV_STEREO_MODE_BOTTOM_TOP;
- break;
- case StereoMode::TOP_BOTTOM:
- mode = NV_STEREO_MODE_TOP_BOTTOM;
- break;
- case StereoMode::MONO:
- mode = NV_STEREO_MODE_MONO;
- break;
- }
-
- // Send control data even in mono case so driver knows to leave stereo mode.
- mDeviceManager->GetNv3DVUtils()->SendNv3DVControl(mode, true, FIREFOX_3DV_APP_HANDLE);
-
- if (source->AsSourceD3D9()->GetStereoMode() != StereoMode::MONO) {
- mDeviceManager->GetNv3DVUtils()->SendNv3DVControl(mode, true, FIREFOX_3DV_APP_HANDLE);
-
- RefPtr<IDirect3DSurface9> renderTarget;
- d3d9Device->GetRenderTarget(0, getter_AddRefs(renderTarget));
- mDeviceManager->GetNv3DVUtils()->SendNv3DVMetaData((unsigned int)aRect.width,
- (unsigned int)aRect.height,
- (HANDLE)(sourceY->GetD3D9Texture()),
- (HANDLE)(renderTarget));
- }
- }
-
// Linear scaling is default here, adhering to mFilter is difficult since
// presumably even with point filtering we'll still want chroma upsampling
// to be linear. In the current approach we can't.