[gtk+/wip/otte/rendernode: 1/15] gsk: Remove RenderNode::anchor-point
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/otte/rendernode: 1/15] gsk: Remove RenderNode::anchor-point
- Date: Sun, 11 Dec 2016 03:15:30 +0000 (UTC)
commit d5940e9b0487dd0b6b07bc24474eb9dd7635b30a
Author: Benjamin Otte <otte redhat com>
Date: Sat Dec 10 00:01:29 2016 +0100
gsk: Remove RenderNode::anchor-point
docs/reference/gsk/gsk4-sections.txt | 1 -
gsk/gskrendernode.c | 23 -----------------------
gsk/gskrendernode.h | 3 ---
gsk/gskrendernodeprivate.h | 2 --
4 files changed, 0 insertions(+), 29 deletions(-)
---
diff --git a/docs/reference/gsk/gsk4-sections.txt b/docs/reference/gsk/gsk4-sections.txt
index 8fe8a44..b8c687b 100644
--- a/docs/reference/gsk/gsk4-sections.txt
+++ b/docs/reference/gsk/gsk4-sections.txt
@@ -44,7 +44,6 @@ gsk_render_node_get_n_children
gsk_render_node_contains
gsk_render_node_set_bounds
gsk_render_node_set_transform
-gsk_render_node_set_anchor_point
gsk_render_node_set_opacity
gsk_render_node_set_hidden
gsk_render_node_is_hidden
diff --git a/gsk/gskrendernode.c b/gsk/gskrendernode.c
index be64fba..556a42e 100644
--- a/gsk/gskrendernode.c
+++ b/gsk/gskrendernode.c
@@ -186,8 +186,6 @@ gsk_render_node_init (GskRenderNode *self)
graphene_matrix_init_identity (&self->transform);
- graphene_point3d_init (&self->anchor_point, 0.f, 0.f, 0.f);
-
self->opacity = 1.0;
self->min_filter = GSK_SCALING_FILTER_NEAREST;
@@ -968,25 +966,6 @@ gsk_render_node_get_transform (GskRenderNode *node,
}
/**
- * gsk_render_node_set_anchor_point:
- * @node: a #GskRenderNode
- * @offset: the anchor point
- *
- * Set the anchor point used when rendering the @node.
- *
- * Since: 3.90
- */
-void
-gsk_render_node_set_anchor_point (GskRenderNode *node,
- const graphene_point3d_t *offset)
-{
- g_return_if_fail (GSK_IS_RENDER_NODE (node));
- g_return_if_fail (node->is_mutable);
-
- graphene_point3d_init_from_point (&node->anchor_point, offset);
-}
-
-/**
* gsk_render_node_set_opacity:
* @node: a #GskRenderNode
* @opacity: the opacity of the node, between 0 (fully transparent) and
@@ -1199,8 +1178,6 @@ gsk_render_node_update_world_matrix (GskRenderNode *node,
if (node->transform_set)
graphene_matrix_multiply (&tmp, &node->transform, &tmp);
- graphene_matrix_translate (&tmp, &node->anchor_point);
-
graphene_matrix_multiply (&tmp, &parent->world_matrix, &node->world_matrix);
}
diff --git a/gsk/gskrendernode.h b/gsk/gskrendernode.h
index c6f5086..7e4f530 100644
--- a/gsk/gskrendernode.h
+++ b/gsk/gskrendernode.h
@@ -95,9 +95,6 @@ GDK_AVAILABLE_IN_3_90
void gsk_render_node_set_transform (GskRenderNode *node,
const graphene_matrix_t *transform);
GDK_AVAILABLE_IN_3_90
-void gsk_render_node_set_anchor_point (GskRenderNode *node,
- const graphene_point3d_t *offset);
-GDK_AVAILABLE_IN_3_90
void gsk_render_node_set_opacity (GskRenderNode *node,
double opacity);
GDK_AVAILABLE_IN_3_90
diff --git a/gsk/gskrendernodeprivate.h b/gsk/gskrendernodeprivate.h
index 3447822..2af5347 100644
--- a/gsk/gskrendernodeprivate.h
+++ b/gsk/gskrendernodeprivate.h
@@ -56,8 +56,6 @@ struct _GskRenderNode
/* Transformations applied to the node */
graphene_matrix_t transform;
- graphene_point3d_t anchor_point;
-
/* Bit fields; leave at the end */
gboolean is_mutable : 1;
gboolean hidden : 1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]