Merge branch 'speed-up-cairo-icons' into 'main'

gsk: Speed up mask nodes with cairo

Closes #6700

See merge request GNOME/gtk!7243
This commit is contained in:
Matthias Clasen 2024-05-10 14:10:18 +00:00
commit f922ff8597

View File

@ -6397,6 +6397,10 @@ gsk_mask_node_draw (GskRenderNode *node,
graphene_matrix_t color_matrix;
graphene_vec4_t color_offset;
/* clip so the push_group() creates a smaller surface */
gsk_cairo_rectangle (cr, &node->bounds);
cairo_clip (cr);
if (has_empty_clip (cr))
return;