[mutter/wip/carlosg/performance-improvements: 9/13] ClutterStage: Use non-generic marshaller for ::presented signal



commit 06305e761e460ad620979d93e6cb2b0dc56431b6
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Apr 30 20:50:28 2017 +0200

    ClutterStage: Use non-generic marshaller for ::presented signal
    
    This signal runs often, so it's better to use a direct marshaler.

 clutter/clutter/clutter-marshal.list |    1 +
 clutter/clutter/clutter-stage.c      |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter/clutter-marshal.list b/clutter/clutter/clutter-marshal.list
index f6964a1..0584df0 100644
--- a/clutter/clutter/clutter-marshal.list
+++ b/clutter/clutter/clutter-marshal.list
@@ -17,6 +17,7 @@ VOID:BOXED,FLAGS
 VOID:INT
 VOID:INT64,INT64,FLOAT,BOOLEAN
 VOID:INT,INT
+VOID:INT,POINTER
 VOID:FLOAT,FLOAT
 VOID:INT,INT,INT,INT
 VOID:OBJECT
diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c
index 18dc6d5..c07d039 100644
--- a/clutter/clutter/clutter-stage.c
+++ b/clutter/clutter/clutter-stage.c
@@ -2176,8 +2176,8 @@ clutter_stage_class_init (ClutterStageClass *klass)
     g_signal_new (I_("presented"),
                   G_TYPE_FROM_CLASS (gobject_class),
                   G_SIGNAL_RUN_LAST,
-                  0,
-                  NULL, NULL, NULL,
+                  0, NULL, NULL,
+                  _clutter_marshal_VOID__INT_POINTER,
                   G_TYPE_NONE, 2,
                   G_TYPE_INT, G_TYPE_POINTER);
 


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