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:
Matthias Clasen 2021-03-07 10:16:56 -05:00
parent 42b515a1e5
commit 4375f8e382

View File

@ -2805,9 +2805,6 @@ gsk_ngl_render_job_visit_blur_node (GskNglRenderJob *job,
g_assert (blur_radius > 0); g_assert (blur_radius > 0);
if (node_is_invisible (child))
return;
key.pointer = node; key.pointer = node;
key.pointer_is_child = FALSE; key.pointer_is_child = FALSE;
key.scale_x = job->scale_x; key.scale_x = job->scale_x;
@ -2906,9 +2903,6 @@ gsk_ngl_render_job_visit_color_matrix_node (GskNglRenderJob *job,
GskNglRenderOffscreen offscreen = {0}; GskNglRenderOffscreen offscreen = {0};
float offset[4]; float offset[4];
if (node_is_invisible (child))
return;
offscreen.bounds = &node->bounds; offscreen.bounds = &node->bounds;
offscreen.reset_clip = TRUE; offscreen.reset_clip = TRUE;