[gtk/wip/baedert/for-master: 22/23] rendernode: Different uniformity in border nodes
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 22/23] rendernode: Different uniformity in border nodes
- Date: Mon, 21 Dec 2020 09:26:12 +0000 (UTC)
commit 9fefa7b44c84d14ee2933446ba2b007017f7400a
Author: Timm Bäder <mail baedert org>
Date: Mon Dec 21 09:56:58 2020 +0100
rendernode: Different uniformity in border nodes
Means they are different and a diff is impossible.
gsk/gskrendernodeimpl.c | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c
index c9ffdce4ce..8606faf857 100644
--- a/gsk/gskrendernodeimpl.c
+++ b/gsk/gskrendernodeimpl.c
@@ -1263,6 +1263,13 @@ gsk_border_node_diff (GskRenderNode *node1,
gdk_rgba_equal (&self1->border_color[0], &self2->border_color[0]))
return;
+ /* Different uniformity -> diff impossible */
+ if (self1->uniform ^ self2->uniform)
+ {
+ gsk_render_node_diff_impossible (node1, node2, region);
+ return;
+ }
+
if (self1->border_width[0] == self2->border_width[0] &&
self1->border_width[1] == self2->border_width[1] &&
self1->border_width[2] == self2->border_width[2] &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]