mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 22:10:08 +00:00
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:
commit
f922ff8597
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user