Switch to using GdkGLTextureBuilder
This PR switches from using tiled rendering as the GdkGLTextureBuilder should allow us to mark damaged areas and redraw only the changed regions. It also stops creating a new MksDmaBufPaintable whenever ScanoutDMABUF
is called and instead create the paintable once and only call mks_dmabuf_paintable_import
once we receive the following UpdateDMABUF
call containing the necessary damage area coordinates.
Still TODO:
-
Clean up the latest commit & associated documentation -
Sometime we get a full re-draw and that is maybe caused by some issue in the gdk_texture_diff code? -
Needed APIs to land in gtk main branch gtk!5880 (merged)
Depends on !16 (merged) for the CI to pass
Edited by Bilal Elmoussaoui