Bug 1435995 - Disable DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL usage r=nical
authorsotaro <sotaro.ikeda.g@gmail.com>
Wed, 07 Feb 2018 22:21:35 +0900
changeset 402775 1157f9e6cce081e0f05f0e62e5d16b816f726456
parent 402774 0bc556c6e060f0e29a31f28d69b54179edc32990
child 402776 17704f81efef6b2b3b93fb0d80d6f128cf85faf0
push id33402
push useraciure@mozilla.com
push dateWed, 07 Feb 2018 22:06:27 +0000
treeherdermozilla-central@8cc2427a322c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnical
bugs1435995
milestone60.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1435995 - Disable DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL usage r=nical
gfx/webrender_bindings/RenderCompositorANGLE.cpp
--- a/gfx/webrender_bindings/RenderCompositorANGLE.cpp
+++ b/gfx/webrender_bindings/RenderCompositorANGLE.cpp
@@ -80,18 +80,21 @@ RenderCompositorANGLE::Initialize()
 
     DXGI_SWAP_CHAIN_DESC1 desc{};
     desc.Width = 0;
     desc.Height = 0;
     desc.Format = DXGI_FORMAT_B8G8R8A8_UNORM;
     desc.SampleDesc.Count = 1;
     desc.SampleDesc.Quality = 0;
     desc.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT;
-    desc.BufferCount = 2;
-    desc.SwapEffect = DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL;
+    // Do not use DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL, since it makes HWND unreusable.
+    //desc.BufferCount = 2;
+    //desc.SwapEffect = DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL;
+    desc.BufferCount = 1;
+    desc.SwapEffect = DXGI_SWAP_EFFECT_SEQUENTIAL;
     desc.Scaling = DXGI_SCALING_NONE;
     desc.Flags = 0;
 
     HRESULT hr = dxgiFactory2->CreateSwapChainForHwnd(mDevice, hwnd, &desc,
                                                       nullptr, nullptr,
                                                       getter_AddRefs(swapChain1));
     if (SUCCEEDED(hr) && swapChain1) {
       DXGI_RGBA color = { 1.0f, 1.0f, 1.0f, 1.0f };