mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +00:00
ngl: Remove a few redundant checks
We bail early on invisible nodes. No need to repeat that check in individual visit functions.
This commit is contained in:
parent
42b515a1e5
commit
4375f8e382
@ -2805,9 +2805,6 @@ gsk_ngl_render_job_visit_blur_node (GskNglRenderJob *job,
|
||||
|
||||
g_assert (blur_radius > 0);
|
||||
|
||||
if (node_is_invisible (child))
|
||||
return;
|
||||
|
||||
key.pointer = node;
|
||||
key.pointer_is_child = FALSE;
|
||||
key.scale_x = job->scale_x;
|
||||
@ -2906,9 +2903,6 @@ gsk_ngl_render_job_visit_color_matrix_node (GskNglRenderJob *job,
|
||||
GskNglRenderOffscreen offscreen = {0};
|
||||
float offset[4];
|
||||
|
||||
if (node_is_invisible (child))
|
||||
return;
|
||||
|
||||
offscreen.bounds = &node->bounds;
|
||||
offscreen.reset_clip = TRUE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user