diff options
Diffstat (limited to 'gfx/layers/composite')
-rw-r--r-- | gfx/layers/composite/TextureHost.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/gfx/layers/composite/TextureHost.cpp b/gfx/layers/composite/TextureHost.cpp index 94e7b5427c..d550945ef6 100644 --- a/gfx/layers/composite/TextureHost.cpp +++ b/gfx/layers/composite/TextureHost.cpp @@ -168,11 +168,6 @@ already_AddRefed<TextureHost> CreateTextureHostD3D11(const SurfaceDescriptor& aD ISurfaceAllocator* aDeallocator, TextureFlags aFlags); -// implemented in TextureD3D9.cpp -already_AddRefed<TextureHost> CreateTextureHostD3D9(const SurfaceDescriptor& aDesc, - ISurfaceAllocator* aDeallocator, - TextureFlags aFlags); - already_AddRefed<TextureHost> TextureHost::Create(const SurfaceDescriptor& aDesc, ISurfaceAllocator* aDeallocator, @@ -211,16 +206,9 @@ TextureHost::Create(const SurfaceDescriptor& aDesc, #endif #ifdef XP_WIN - case SurfaceDescriptor::TSurfaceDescriptorD3D9: - return CreateTextureHostD3D9(aDesc, aDeallocator, aFlags); - case SurfaceDescriptor::TSurfaceDescriptorD3D10: case SurfaceDescriptor::TSurfaceDescriptorDXGIYCbCr: - if (aBackend == LayersBackend::LAYERS_D3D9) { - return CreateTextureHostD3D9(aDesc, aDeallocator, aFlags); - } else { - return CreateTextureHostD3D11(aDesc, aDeallocator, aFlags); - } + return CreateTextureHostD3D11(aDesc, aDeallocator, aFlags); #endif default: MOZ_CRASH("GFX: Unsupported Surface type host"); |