[gtk/ngl-cleanups: 10/10] ngl: Don't bother with uniform border nodes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ngl-cleanups: 10/10] ngl: Don't bother with uniform border nodes
- Date: Sat, 13 Mar 2021 23:42:18 +0000 (UTC)
commit 3b689f0d3dc869ed39c7cbe75471ab13f284fca1
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Mar 13 18:40:37 2021 -0500
ngl: Don't bother with uniform border nodes
Now that colors aren't uniforms anymore, we don't
win much by using the inset_shadow shader (the fragment
shaders of inset_shadow and border are identical). And
the regular border setup does nine-slicing.
gsk/ngl/gsknglrenderjob.c | 2 --
1 file changed, 2 deletions(-)
---
diff --git a/gsk/ngl/gsknglrenderjob.c b/gsk/ngl/gsknglrenderjob.c
index 4ee39ca36b..7868dea8c4 100644
--- a/gsk/ngl/gsknglrenderjob.c
+++ b/gsk/ngl/gsknglrenderjob.c
@@ -3332,8 +3332,6 @@ gsk_ngl_render_job_visit_node (GskNglRenderJob *job,
if (gsk_border_node_get_uniform_color (node) &&
gsk_rounded_rect_is_rectilinear (gsk_border_node_get_outline (node)))
gsk_ngl_render_job_visit_rect_border_node (job, node);
- else if (gsk_border_node_get_uniform (node))
- gsk_ngl_render_job_visit_uniform_border_node (job, node);
else
gsk_ngl_render_job_visit_border_node (job, node);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]