mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
gsk: Change the default renderer
The intent of this change to get wider testing and verify that the new renderers are production-ready. If significant problems show up, we will revert this change for 4.14. The new preference order is ngl > gl > vulkan > cairo. The gl renderer is still there because we need it to support gles2 systems, and vulkan still has some rough edges in application support (no gl area support, webkit only works with gl). If you need to override the default renderer choice, you can still use the GSK_RENDERER environment variable.
This commit is contained in:
parent
a7c98227e6
commit
98e3fca284
@ -632,7 +632,7 @@ get_renderer_for_backend (GdkSurface *surface)
|
||||
static GType
|
||||
get_renderer_for_gl (GdkSurface *surface)
|
||||
{
|
||||
return GSK_TYPE_GL_RENDERER;
|
||||
return gsk_ngl_renderer_get_type ();
|
||||
}
|
||||
|
||||
static GType
|
||||
@ -645,6 +645,12 @@ get_renderer_for_vulkan (GdkSurface *surface)
|
||||
#endif
|
||||
}
|
||||
|
||||
static GType
|
||||
get_renderer_for_gles2 (GdkSurface *surface)
|
||||
{
|
||||
return GSK_TYPE_GL_RENDERER;
|
||||
}
|
||||
|
||||
static GType
|
||||
get_renderer_fallback (GdkSurface *surface)
|
||||
{
|
||||
@ -658,6 +664,7 @@ static struct {
|
||||
{ get_renderer_for_env_var },
|
||||
{ get_renderer_for_backend },
|
||||
{ get_renderer_for_gl },
|
||||
{ get_renderer_for_gles2 },
|
||||
{ get_renderer_for_vulkan },
|
||||
{ get_renderer_fallback },
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user