[gtk/ngl-misc-fixes: 1/2] ngl: Remove a few redundant checks
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ngl-misc-fixes: 1/2] ngl: Remove a few redundant checks
- Date: Sun, 7 Mar 2021 15:37:03 +0000 (UTC)
commit 4375f8e382ef035d970dd255f56d1a7470c1a78c
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Mar 7 10:16:56 2021 -0500
ngl: Remove a few redundant checks
We bail early on invisible nodes. No need to
repeat that check in individual visit functions.
gsk/ngl/gsknglrenderjob.c | 6 ------
1 file changed, 6 deletions(-)
---
diff --git a/gsk/ngl/gsknglrenderjob.c b/gsk/ngl/gsknglrenderjob.c
index b8f983f862..21bd4ebfa0 100644
--- a/gsk/ngl/gsknglrenderjob.c
+++ b/gsk/ngl/gsknglrenderjob.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]