mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Backed out changeset e69e260d5dc7 (bug 1289640) for Assertion failure on DeviceManagerD3D11.cpp
This commit is contained in:
parent
b37f479ee0
commit
3a6363f152
@ -178,7 +178,6 @@ public:
|
||||
: mIsLocked(false)
|
||||
, mTexture(texture)
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread(), "Must be on the main thread to use d3d11 immediate context");
|
||||
MOZ_ASSERT(mTexture);
|
||||
MOZ_ASSERT(succeeded);
|
||||
*succeeded = false;
|
||||
@ -198,7 +197,7 @@ public:
|
||||
}
|
||||
|
||||
RefPtr<ID3D11Device> device =
|
||||
gfx::DeviceManagerD3D11::Get()->GetContentDevice();
|
||||
gfx::DeviceManagerD3D11::Get()->GetDeviceForCurrentThread();
|
||||
if (!device) {
|
||||
return;
|
||||
}
|
||||
@ -255,7 +254,7 @@ SharedSurface_ANGLEShareHandle::ReadbackBySharedHandle(gfx::DataSourceSurface* o
|
||||
MOZ_ASSERT(out_surface);
|
||||
|
||||
RefPtr<ID3D11Device> device =
|
||||
gfx::DeviceManagerD3D11::Get()->GetContentDevice();
|
||||
gfx::DeviceManagerD3D11::Get()->GetDeviceForCurrentThread();
|
||||
if (!device) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user