Merge branch 'nielsdg/gsk-gl-renderer-assertion' into 'main'

gsk: Document gsk_renderer_realize()

See merge request GNOME/gtk!4363
This commit is contained in:
Matthias Clasen 2022-01-12 02:41:32 +00:00
commit a56e187352

View File

@ -289,10 +289,15 @@ gsk_renderer_is_realized (GskRenderer *renderer)
*
* Since GTK 4.6, the surface may be `NULL`, which allows using
* renderers without having to create a surface.
*
* Note that it is mandatory to call [method@Gsk.Renderer.unrealize] before
* destroying the renderer.
*
* Returns: Whether the renderer was successfully realized
*/
gboolean
gsk_renderer_realize (GskRenderer *renderer,
GdkSurface *surface,
GdkSurface *surface,
GError **error)
{
GskRendererPrivate *priv = gsk_renderer_get_instance_private (renderer);