dmabuf: Use the ngl downloader

It works, now and is faster than the old GL downloader.

Playing the Barbie trailer @ 4k with hardware decoding but the Cairo
renderer on a 4k screen:

downloader  windowed  fullscreen
GL          12fps     19fps
NGL         16fps     29fps
Vulkan      16fps     29fps
no dmabufs  12fps     19fps
This commit is contained in:
Matthias Clasen 2024-09-23 12:00:48 +02:00 committed by Benjamin Otte
parent 6d3c333208
commit 58ce0a39dc

View File

@ -229,6 +229,7 @@ gdk_dmabuf_egl_create_image (GdkDisplay *display,
typedef struct _GskRenderer GskRenderer;
extern GskRenderer * gsk_gl_renderer_new (void);
extern GskRenderer * gsk_ngl_renderer_new (void);
extern gboolean gsk_renderer_realize_for_display (GskRenderer *renderer,
GdkDisplay *display,
GError **error);
@ -272,7 +273,7 @@ gdk_dmabuf_egl_init (GdkDisplay *display)
return;
}
renderer = gsk_gl_renderer_new ();
renderer = gsk_ngl_renderer_new ();
if (!gsk_renderer_realize_for_display (renderer, display, &error))
{