зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1587695 - Fix redundant SwapChain re-creation r=nical
Since Bug 1570879, SwapChain is created with alpha at first, then the SwapChain is typically re-created at first RenderCompositorANGLE::BeginFrame() calle, since non Glass window is common since Windows 10. The re-creation is redundant. Differential Revision: https://phabricator.services.mozilla.com/D48800 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
62e5fd78b1
Коммит
2df9cdb3b4
|
@ -273,7 +273,8 @@ void RenderCompositorANGLE::CreateSwapChainForDCompIfPossible(
|
|||
MOZ_ASSERT(XRE_IsGPUProcess());
|
||||
|
||||
bool useTripleBuffering = gfx::gfxVars::UseWebRenderTripleBufferingWin();
|
||||
bool useAlpha = true;
|
||||
// Non Glass window is common since Windows 10.
|
||||
bool useAlpha = false;
|
||||
RefPtr<IDXGISwapChain1> swapChain1 =
|
||||
CreateSwapChainForDComp(useTripleBuffering, useAlpha);
|
||||
if (swapChain1) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче