Bug 237649 (DMA-BUF)

Summary: [Meta][Linux] Adoption of DMABuf as a reference buffer sharing mechanism
Product: WebKit Reporter: Zan Dobersek <zan>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: alex, aperez, clord, crzwdjk, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 236635, 237759, 240636, 235946, 236436, 236520, 236607, 236637, 236836, 236883, 237199, 237328, 237606, 237758, 237883, 237974, 238017, 238110, 238141, 238199, 238200, 238539, 239037, 239038, 240276, 240313, 240314, 240392, 240633, 240637, 241119, 241326, 241462, 241850, 242108, 242938    
Bug Blocks: 238593, 244472    

Description Zan Dobersek 2022-03-09 04:17:37 PST
We want to have an efficient way of integrating content like WebGL, WebGPU, HTML5 Canvas and Media between each such subsystem as well as deeper in the graphics/display pipeline. Undergoing architectural changes also impose the necessity of cross-process migration for these buffers.

On Linux, DMABuf seems an ideal reference solution. This would allow ANGLE to be used to render into DMABuf objects. GStreamer pipelines with hardware decoders outputting DMABufs would be most efficient to handle, while raw decoded data from fallback software decoders would be manually uploaded into dmabufs.

DMABufs aren't universally available. For other platforms, we would require equivalent mechanisms (like e.g. AHardwareBuffer on Android).

This is a tracking bug for all the relevant changes and regressions coming from this work.
Comment 1 Radar WebKit Bug Importer 2022-03-16 05:18:17 PDT