diff options
author | Timm Bäder <mail@baedert.org> | 2020-07-24 19:06:50 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2020-07-28 05:34:12 +0200 |
commit | a3b452725b2afa9e63c161ca724e905ec0e0af7c (patch) | |
tree | 1d36de3394ca32f63becba7be1636aa99ba37819 /gsk | |
parent | d5f0256f8b14b2fa788bd7bbb19fdbfddd39a5b8 (diff) | |
download | gtk+-a3b452725b2afa9e63c161ca724e905ec0e0af7c.tar.gz |
render nodes: Simplify diffing of uniform border nodes
Diffstat (limited to 'gsk')
-rw-r--r-- | gsk/gskrendernodeimpl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c index 9879cdff12..aa6f661aeb 100644 --- a/gsk/gskrendernodeimpl.c +++ b/gsk/gskrendernodeimpl.c @@ -542,6 +542,12 @@ gsk_border_node_diff (GskRenderNode *node1, GskBorderNode *self1 = (GskBorderNode *) node1; GskBorderNode *self2 = (GskBorderNode *) node2; + if (self1->uniform && + self2->uniform && + gdk_rgba_equal (&self1->border_color[0], &self2->border_color[0]) && + self1->border_width[0] == self2->border_width[0]) + return; + if (gsk_rounded_rect_equal (&self1->outline, &self2->outline) && gdk_rgba_equal (&self1->border_color[0], &self2->border_color[0]) && gdk_rgba_equal (&self1->border_color[1], &self2->border_color[1]) && |