Bug 1861605 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

gecko uses IDXGIResource::GetSharedHandle(). It seems better to use  IDXGIResource1::CreateSharedHandle() instead.

chromium always use the CreateSharedHandle().

- https://learn.microsoft.com/en-us/windows/win32/api/dxgi/nf-dxgi-idxgiresource-getsharedhandle
- https://learn.microsoft.com/en-us/windows/win32/api/dxgi1_2/nf-dxgi1_2-idxgiresource1-createsharedhandle

The CreateSharedHandle() uses NT handle (needs D3D11_RESOURCE_MISC_SHARED_NTHANDLE flag).

Back to Bug 1861605 Comment 0