Hello. How can I make compose desktop rendering headless? I need to render to a memory buffer, but I cannot find how to specify the Skia canvas to be a memory buffer.
Another option would be using
ImageComposeScene
and render it to a bitmap every 16 milliseconds, but not sure if that is an optimal solution.
The reason is that this buffer will be sent to a different process where it will be blended with more content before being displayed.