[gtk+/wip/ebassi/gsk-renderer] gsk: Move GskRenderNode getters to internal API



commit ffb9a5c689b96faa53262dff7f1edaca1270acbf
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Aug 24 14:07:26 2016 +0100

    gsk: Move GskRenderNode getters to internal API
    
    GskRenderNode is, at its core, a write-only API; you're supposed to set
    up the render nodes instead of querying them for state.
    
    Querying render nodes is left to the GskRenderer implementation.

 gsk/gskrendernode.c        |    8 ++------
 gsk/gskrendernode.h        |    7 -------
 gsk/gskrendernodeprivate.h |    4 ++++
 3 files changed, 6 insertions(+), 13 deletions(-)
---
diff --git a/gsk/gskrendernode.c b/gsk/gskrendernode.c
index 63a1c37..a2c0bb6 100644
--- a/gsk/gskrendernode.c
+++ b/gsk/gskrendernode.c
@@ -1287,7 +1287,7 @@ gsk_render_node_get_world_matrix (GskRenderNode     *node,
   *mv = node->world_matrix;
 }
 
-/**
+/*
  * gsk_render_node_get_scale_factor:
  * @node: a #GskRenderNode
  *
@@ -1296,8 +1296,6 @@ gsk_render_node_get_world_matrix (GskRenderNode     *node,
  * See also: gsk_renderer_get_scale_factor()
  *
  * Returns: the scale factor
- *
- * Since: 3.22
  */
 int
 gsk_render_node_get_scale_factor (GskRenderNode *node)
@@ -1353,15 +1351,13 @@ gsk_render_node_set_blend_mode (GskRenderNode *node,
   node->blend_mode = blend_mode;
 }
 
-/**
+/*
  * gsk_render_node_get_blend_mode:
  * @node: a #GskRenderNode
  *
  * Retrieves the blend mode set by gsk_render_node_set_blend_mode().
  *
  * Returns: the blend mode
- *
- * Since: 3.22
  */
 GskBlendMode
 gsk_render_node_get_blend_mode (GskRenderNode *node)
diff --git a/gsk/gskrendernode.h b/gsk/gskrendernode.h
index 1aaa43a..7167be3 100644
--- a/gsk/gskrendernode.h
+++ b/gsk/gskrendernode.h
@@ -117,21 +117,14 @@ GDK_AVAILABLE_IN_3_22
 void                    gsk_render_node_set_blend_mode          (GskRenderNode *node,
                                                                  GskBlendMode   blend_mode);
 GDK_AVAILABLE_IN_3_22
-GskBlendMode            gsk_render_node_get_blend_mode          (GskRenderNode *node);
-
-GDK_AVAILABLE_IN_3_22
 void                    gsk_render_node_set_texture             (GskRenderNode *node,
                                                                  int            texture_id);
-
 GDK_AVAILABLE_IN_3_22
 void                    gsk_render_node_set_scaling_filter      (GskRenderNode *node,
                                                                  GskScalingFilter min_filter,
                                                                  GskScalingFilter mag_filter);
 
 GDK_AVAILABLE_IN_3_22
-int                     gsk_render_node_get_scale_factor        (GskRenderNode *node);
-
-GDK_AVAILABLE_IN_3_22
 void                    gsk_render_node_set_name                (GskRenderNode *node,
                                                                  const char    *name);
 
diff --git a/gsk/gskrendernodeprivate.h b/gsk/gskrendernodeprivate.h
index 8077e73..5c0f4bd 100644
--- a/gsk/gskrendernodeprivate.h
+++ b/gsk/gskrendernodeprivate.h
@@ -94,8 +94,12 @@ int gsk_render_node_get_texture (GskRenderNode *node);
 gboolean gsk_render_node_has_surface (GskRenderNode *node);
 gboolean gsk_render_node_has_texture (GskRenderNode *node);
 
+GskBlendMode gsk_render_node_get_blend_mode (GskRenderNode *node);
+
 GskRenderNode *gsk_render_node_get_toplevel (GskRenderNode *node);
 
+int gsk_render_node_get_scale_factor (GskRenderNode *node);
+
 void gsk_render_node_update_world_matrix (GskRenderNode *node,
                                           gboolean       force);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]