[gtk/wip/chergert/glproto: 137/493] more stubs
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 137/493] more stubs
- Date: Fri, 19 Feb 2021 02:25:07 +0000 (UTC)
commit e0e1985a53eae3fe40a58d8e29a06b42d383ef18
Author: Christian Hergert <chergert redhat com>
Date: Wed Jan 6 14:45:21 2021 -0800
more stubs
gsk/next/gskglrenderjob.c | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index bc073d6013..5c1cb28f86 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -1634,6 +1634,33 @@ static void
gsk_gl_render_job_visit_repeat_node (GskGLRenderJob *job,
GskRenderNode *node)
{
+ GskRenderNode *child = gtk_repeat_node_get_child (job);
+ const graphene_rect_t *child_bounds = gsk_repeat_node_get_child_bounds (node);
+
+ if (node_is_invisible (child))
+ return;
+
+ if (!graphene_rect_equal (child_bounds, &child->bounds))
+ {
+ /* TODO: implement these repeat nodes. */
+ gsk_gl_render_job_visit_as_fallback (job, node);
+ return;
+ }
+
+ /* If the size of the repeat node is smaller than the size of the
+ * child node, we don't repeat at all and can just draw that part
+ * of the child texture... */
+ if (graphene_rect_contains_rect (child_bounds, &node->bounds))
+ {
+ gsk_gl_render_job_visit_clipped_child (job,
+ child,
+ &(GskRoundedRect) {
+ .bounds = *child_bounds,
+ });
+ return;
+ }
+
+ /* TODO: */
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]