Currently both KWin (KDE) and Mutter (GNOME) window managers don't use DMA-BUFs by default, but only when client asks specifically for them (KWin) or when experimental DMA-BUF support is enabled (Mutter). While current implementation works just fine on integrated graphics cards, it causes issues on dedicated GPUs (AMD and NVidia) where the code either crashes or screensharing is slow and unusable. To fix this, DMA-BUFs has to be opened using OpenGL context and not being directly mmaped(). This implementation requires to use DMA-BUF modifiers, as they are now mandatory for DMA-BUFs usage. Documentation for this behavior can be found here: https://gitlab.freedesktop.org/pipewire/pipewire/-/blob/master/doc/dma-buf.dox Bug: chromium:1233417, webrtc:13137 Change-Id: I0cecf16d6bb0f576954b9e8f071cab526f7baf2c Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/227022 Commit-Queue: Tommi <tommi@webrtc.org> Reviewed-by: Tommi <tommi@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Cr-Commit-Position: refs/heads/main@{#34889}
23 lines
375 B
Python
23 lines
375 B
Python
include_rules = [
|
|
"+system_wrappers",
|
|
"+third_party/libyuv",
|
|
]
|
|
|
|
specific_include_rules = {
|
|
"desktop_frame_cgimage\.h": [
|
|
"+sdk/objc",
|
|
],
|
|
"desktop_frame_iosurface\.h": [
|
|
"+sdk/objc",
|
|
],
|
|
"desktop_frame_provider\.h": [
|
|
"+sdk/objc",
|
|
],
|
|
"egl_dmabuf\.cc": [
|
|
"+absl/strings/str_split.h",
|
|
],
|
|
"screen_capturer_mac\.mm": [
|
|
"+sdk/objc",
|
|
],
|
|
}
|