Use DirectComposition for WebGL on Windows
Categories
(Core :: Graphics: WebRender, enhancement, P2)
Tracking
()
People
(Reporter: sotaro, Unassigned)
References
(Blocks 2 open bugs)
Details
(Whiteboard: wr-planning)
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
Details | Diff | Splinter Review |
We want a way to directly composite WebGL frames if possible with DirectComposition.
Reporter | ||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Comment 1•5 years ago
|
||
The temporal patch implements DCompositionSurface usage than SwapChain.
When DCompositionSurface was used, rendering was slide down a bit. Origin of y seems different.
Reporter | ||
Comment 2•5 years ago
|
||
The patch test if the following copy function works for copying data from WebGL's D3D11Texture2D to SwapBuffer's D3D11Texture2D. But it did not work :( From the result, it seems better to use Bug 1575159 instead of this bug for WebGL :(
- ID3D11DeviceContext::CopyResource
- ID3D11DeviceContext::CopySubresourceRegion
Updated•5 years ago
|
Comment 3•5 years ago
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #2)
Created attachment 9088288 [details] [diff] [review]
temporal patch - Test if CopyResource worksThe patch test if the following copy function works for copying data from WebGL's D3D11Texture2D to SwapBuffer's D3D11Texture2D. But it did not work :( From the result, it seems better to use Bug 1575159 instead of this bug for WebGL :(
- ID3D11DeviceContext::CopyResource
- ID3D11DeviceContext::CopySubresourceRegion
Is this because the textures are using different D3DDevices?
Reporter | ||
Comment 4•5 years ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #3)
Is this because the textures are using different D3DDevices?
It might be related. But we do not know it. CopyResource and CopySubresourceRegion do not return error.
Reporter | ||
Comment 5•5 years ago
|
||
If WebGL operation happens in GPU process(Bug 1477756), WebGL rendering could be done directly to dc layer(SwapChain).
Reporter | ||
Updated•5 years ago
|
Updated•5 years ago
|
Reporter | ||
Updated•5 years ago
|
Updated•5 years ago
|
Updated•2 years ago
|
Description
•