Loading gfx/layers/D3D11ShareHandleImage.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -128,6 +128,7 @@ D3D11ShareHandleImage::GetAsSourceSurface() RefPtr<ID3D11DeviceContext> context; device->GetImmediateContext(getter_AddRefs(context)); if (!context) { gfxCriticalError() << "Failed to get immediate context."; return nullptr; } Loading gfx/layers/D3D11YCbCrImage.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -73,6 +73,10 @@ D3D11YCbCrImage::SetData(KnowsCompositor* aAllocator, RefPtr<ID3D11DeviceContext> ctx; allocator->GetDevice()->GetImmediateContext(getter_AddRefs(ctx)); if (!ctx) { gfxCriticalError() << "Failed to get immediate context."; return false; } AutoLockD3D11Texture lockY(textureY); AutoLockD3D11Texture lockCb(textureCb); Loading Loading @@ -189,6 +193,10 @@ D3D11YCbCrImage::GetAsSourceSurface() RefPtr<ID3D11DeviceContext> ctx; dev->GetImmediateContext(getter_AddRefs(ctx)); if (!ctx) { gfxCriticalError() << "Failed to get immediate context."; return nullptr; } { AutoLockD3D11Texture lockY(texY); Loading Loading
gfx/layers/D3D11ShareHandleImage.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -128,6 +128,7 @@ D3D11ShareHandleImage::GetAsSourceSurface() RefPtr<ID3D11DeviceContext> context; device->GetImmediateContext(getter_AddRefs(context)); if (!context) { gfxCriticalError() << "Failed to get immediate context."; return nullptr; } Loading
gfx/layers/D3D11YCbCrImage.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -73,6 +73,10 @@ D3D11YCbCrImage::SetData(KnowsCompositor* aAllocator, RefPtr<ID3D11DeviceContext> ctx; allocator->GetDevice()->GetImmediateContext(getter_AddRefs(ctx)); if (!ctx) { gfxCriticalError() << "Failed to get immediate context."; return false; } AutoLockD3D11Texture lockY(textureY); AutoLockD3D11Texture lockCb(textureCb); Loading Loading @@ -189,6 +193,10 @@ D3D11YCbCrImage::GetAsSourceSurface() RefPtr<ID3D11DeviceContext> ctx; dev->GetImmediateContext(getter_AddRefs(ctx)); if (!ctx) { gfxCriticalError() << "Failed to get immediate context."; return nullptr; } { AutoLockD3D11Texture lockY(texY); Loading