зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1423807 - Enable D3D11TextureData in TextureClient::CreateFromSurface() with WebRender r=nical
This commit is contained in:
Родитель
8e9610529d
Коммит
b5f9b3b90d
|
@ -1169,7 +1169,8 @@ TextureClient::CreateFromSurface(KnowsCompositor* aAllocator,
|
|||
|
||||
int32_t maxTextureSize = aAllocator->GetMaxTextureSize();
|
||||
|
||||
if (layersBackend == LayersBackend::LAYERS_D3D11 &&
|
||||
if ((layersBackend == LayersBackend::LAYERS_D3D11 ||
|
||||
layersBackend == LayersBackend::LAYERS_WR) &&
|
||||
(moz2DBackend == gfx::BackendType::DIRECT2D ||
|
||||
moz2DBackend == gfx::BackendType::DIRECT2D1_1 ||
|
||||
(!!(aAllocFlags & ALLOC_FOR_OUT_OF_BAND_CONTENT) &&
|
||||
|
|
Загрузка…
Ссылка в новой задаче