Bug 1380979 - Enable DXGITextureHostD3D11 usage with WebRender r=nical

This commit is contained in:
sotaro
2017-08-09 14:28:15 +09:00
parent 2ae30439f7
commit b6bd39f8ee
3 changed files with 15 additions and 1 deletions

View File

@@ -1075,7 +1075,8 @@ TextureClient::CreateForDrawing(TextureForwarder* aAllocator,
TextureData* data = nullptr;
#ifdef XP_WIN
if (aLayersBackend == LayersBackend::LAYERS_D3D11 &&
if ((aLayersBackend == LayersBackend::LAYERS_D3D11 ||
aLayersBackend == LayersBackend::LAYERS_WR) &&
(moz2DBackend == gfx::BackendType::DIRECT2D ||
moz2DBackend == gfx::BackendType::DIRECT2D1_1 ||
(!!(aAllocFlags & ALLOC_FOR_OUT_OF_BAND_CONTENT) &&