Skip to content

Commit

Permalink
Bug 1158089 - Remove LAYERS_D3D10 enum value since it's unused. r=Bas
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwoodrow committed May 11, 2015
1 parent b3dc247 commit bf83499
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion dom/media/fmp4/wmf/WMFVideoMFTManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ WMFVideoMFTManager::InitializeDXVA(bool aForceD3D9)
// to a halt, and makes playback performance *worse*.
if (!mDXVAEnabled ||
(mLayersBackend != LayersBackend::LAYERS_D3D9 &&
mLayersBackend != LayersBackend::LAYERS_D3D10 &&
mLayersBackend != LayersBackend::LAYERS_D3D11)) {
return false;
}
Expand Down
1 change: 0 additions & 1 deletion dom/media/wmf/WMFReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ WMFReader::InitializeDXVA()

LayersBackend backend = layerManager->GetCompositorBackendType();
if (backend != LayersBackend::LAYERS_D3D9 &&
backend != LayersBackend::LAYERS_D3D10 &&
backend != LayersBackend::LAYERS_D3D11) {
return false;
}
Expand Down
1 change: 0 additions & 1 deletion gfx/layers/LayersTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ enum class LayersBackend : int8_t {
LAYERS_BASIC,
LAYERS_OPENGL,
LAYERS_D3D9,
LAYERS_D3D10,
LAYERS_D3D11,
LAYERS_CLIENT,
LAYERS_LAST
Expand Down
1 change: 0 additions & 1 deletion gfx/layers/client/ClientCanvasLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ ClientCanvasLayer::Initialize(const Data& aData)
}
break;
}
case mozilla::layers::LayersBackend::LAYERS_D3D10:
case mozilla::layers::LayersBackend::LAYERS_D3D11: {
#ifdef XP_WIN
if (mGLContext->IsANGLE() && DoesD3D11TextureSharingWork(gfxWindowsPlatform::GetPlatform()->GetD3D11Device())) {
Expand Down
1 change: 0 additions & 1 deletion gfx/layers/client/ClientLayerManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,6 @@ ClientLayerManager::GetBackendName(nsAString& aName)
case LayersBackend::LAYERS_BASIC: aName.AssignLiteral("Basic"); return;
case LayersBackend::LAYERS_OPENGL: aName.AssignLiteral("OpenGL"); return;
case LayersBackend::LAYERS_D3D9: aName.AssignLiteral("Direct3D 9"); return;
case LayersBackend::LAYERS_D3D10: aName.AssignLiteral("Direct3D 10"); return;
case LayersBackend::LAYERS_D3D11: {
#ifdef XP_WIN
if (gfxWindowsPlatform::GetPlatform()->IsWARP()) {
Expand Down
4 changes: 1 addition & 3 deletions widget/PuppetWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -993,9 +993,7 @@ PuppetWidget::Paint()
nsAutoCString("PuppetWidget"), 0);
#endif

if (mozilla::layers::LayersBackend::LAYERS_D3D10 == mLayerManager->GetBackendType()) {
mAttachedWidgetListener->PaintWindow(this, region);
} else if (mozilla::layers::LayersBackend::LAYERS_CLIENT == mLayerManager->GetBackendType()) {
if (mozilla::layers::LayersBackend::LAYERS_CLIENT == mLayerManager->GetBackendType()) {
// Do nothing, the compositor will handle drawing
if (mTabChild) {
mTabChild->NotifyPainted();
Expand Down

0 comments on commit bf83499

Please sign in to comment.