[mutter/gbsneto/content: 1/5] clutter/paint-node: Expose clutter_paint_node_get_framebuffer()



commit e0ad0b8105f29e35f1d98f3fe352b49885e78c1d
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Feb 15 10:40:05 2019 -0200

    clutter/paint-node: Expose clutter_paint_node_get_framebuffer()
    
    Mutter needs to know which framebuffer the paint nodes will be
    drawn into, and using cogl_get_draw_framebuffer() directly is
    not an option since ClutterRootNode only pushes the draw fb
    at draw time.
    
    Expose clutter_paint_node_get_framebuffer().
    
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/409

 clutter/clutter/clutter-paint-node-private.h | 2 --
 clutter/clutter/clutter-paint-node.c         | 9 +++++++++
 clutter/clutter/clutter-paint-node.h         | 3 +++
 3 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter/clutter-paint-node-private.h b/clutter/clutter/clutter-paint-node-private.h
index 55cf9efd2..278e48e8a 100644
--- a/clutter/clutter/clutter-paint-node-private.h
+++ b/clutter/clutter/clutter-paint-node-private.h
@@ -137,8 +137,6 @@ G_GNUC_INTERNAL
 ClutterPaintNode *      clutter_paint_node_get_last_child               (ClutterPaintNode      *node);
 G_GNUC_INTERNAL
 ClutterPaintNode *      clutter_paint_node_get_parent                   (ClutterPaintNode      *node);
-G_GNUC_INTERNAL
-CoglFramebuffer *       clutter_paint_node_get_framebuffer              (ClutterPaintNode      *node);
 
 #define CLUTTER_TYPE_LAYER_NODE                 (_clutter_layer_node_get_type ())
 #define CLUTTER_LAYER_NODE(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_LAYER_NODE, 
ClutterLayerNode))
diff --git a/clutter/clutter/clutter-paint-node.c b/clutter/clutter/clutter-paint-node.c
index e731ca60a..928c32cce 100644
--- a/clutter/clutter/clutter-paint-node.c
+++ b/clutter/clutter/clutter-paint-node.c
@@ -1194,6 +1194,15 @@ clutter_paint_node_get_root (ClutterPaintNode *node)
   return iter;
 }
 
+/**
+ * clutter_paint_node_get_framebuffer:
+ * @node: a #ClutterPaintNode
+ *
+ * Retrieves the #CoglFramebuffer that @node will draw
+ * into.
+ *
+ * Returns: (transfer none): a #CoglFramebuffer
+ */
 CoglFramebuffer *
 clutter_paint_node_get_framebuffer (ClutterPaintNode *node)
 {
diff --git a/clutter/clutter/clutter-paint-node.h b/clutter/clutter/clutter-paint-node.h
index c42abbc3d..cd22e431e 100644
--- a/clutter/clutter/clutter-paint-node.h
+++ b/clutter/clutter/clutter-paint-node.h
@@ -56,6 +56,9 @@ CLUTTER_EXPORT
 void                    clutter_paint_node_set_name                     (ClutterPaintNode      *node,
                                                                          const char            *name);
 
+CLUTTER_EXPORT
+CoglFramebuffer *       clutter_paint_node_get_framebuffer              (ClutterPaintNode      *node);
+
 CLUTTER_EXPORT
 void                    clutter_paint_node_add_child                    (ClutterPaintNode      *node,
                                                                          ClutterPaintNode      *child);


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