mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-12 20:00:09 +00:00
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:
parent
6d3c333208
commit
58ce0a39dc
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user