Skip to content

Commit

Permalink
Bug 1150124. Move WARP reporter closer to actually testing WARP.
Browse files Browse the repository at this point in the history
--HG--
extra : rebase_source : 77e06fb577ef85ebfb48f6be0ad790ae51447de3
  • Loading branch information
jrmuizel committed Apr 1, 2015
1 parent d877851 commit 7b3713a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gfx/thebes/gfxWindowsPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1875,7 +1875,6 @@ gfxWindowsPlatform::InitD3D11Devices()
MOZ_ASSERT(!mD3D11Device);

bool useWARP = false;
ScopedGfxFeatureReporter reporterWARP("D3D11-WARP", gfxPrefs::LayersD3D11ForceWARP());

nsCOMPtr<nsIGfxInfo> gfxInfo = do_GetService("@mozilla.org/gfx/info;1");
if (gfxInfo) {
Expand Down Expand Up @@ -1962,6 +1961,7 @@ gfxWindowsPlatform::InitD3D11Devices()
MOZ_ASSERT(!mD3D11Device);
MOZ_ASSERT(!adapter);

ScopedGfxFeatureReporter reporterWARP("D3D11-WARP", gfxPrefs::LayersD3D11ForceWARP());
hr = d3d11CreateDevice(nullptr, D3D_DRIVER_TYPE_WARP, nullptr,
// Use
// D3D11_CREATE_DEVICE_PREVENT_INTERNAL_THREADING_OPTIMIZATIONS
Expand Down

0 comments on commit 7b3713a

Please sign in to comment.