We want an interface for screen recording in Wayland. Since only the compositor KWin is able to take hold of arbitrary window surfaces, we need to do it here.
- Capture the whole screen
- Fast and without compression loss
Capture single window contents or predefined sections of the screen
The hard requirements should be fulfilled by using the frame buffers in the Drm platform plugin. The soft requirement could be solved by using the KWayland buffers directly and in the second case cutting the frame buffer of the Drm platform plugin. A first patch should be confined to fulfilling the hard requirements though.
There was already an effort of tackling this task by using the Gl pipeline: D4366. But for performance reasons we decided against going further in this direction.