summaryrefslogtreecommitdiff
path: root/clutter/clutter-stage-private.h
diff options
context:
space:
mode:
authorRui Matos <tiagomatos@gmail.com>2013-11-11 18:16:32 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2014-03-15 19:44:57 +0000
commite70a0109f2306080a853aa15eb61fd9ce53edf73 (patch)
tree4e012c8cbdbb46cfd06ce9a94aeda0f5a012f426 /clutter/clutter-stage-private.h
parent572504db4db7b69a62825c755129efb58bb19b54 (diff)
downloadclutter-e70a0109f2306080a853aa15eb61fd9ce53edf73.tar.gz
Avoid needless event copies when queueing from a backend to a stage
All backends follow the same pattern of queueing events first in ClutterMainContext, then copying them to a ClutterStage queue and immediately free them. Instead, we can just pass ownership of events directly to ClutterStage thus avoiding the allocation and copy in between. https://bugzilla.gnome.org/show_bug.cgi?id=711857
Diffstat (limited to 'clutter/clutter-stage-private.h')
-rw-r--r--clutter/clutter-stage-private.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/clutter/clutter-stage-private.h b/clutter/clutter-stage-private.h
index 890fcdccc..7529cdfdd 100644
--- a/clutter/clutter-stage-private.h
+++ b/clutter/clutter-stage-private.h
@@ -62,7 +62,8 @@ gboolean _clutter_stage_needs_update (ClutterStage
gboolean _clutter_stage_do_update (ClutterStage *stage);
void _clutter_stage_queue_event (ClutterStage *stage,
- ClutterEvent *event);
+ ClutterEvent *event,
+ gboolean copy_event);
gboolean _clutter_stage_has_queued_events (ClutterStage *stage);
void _clutter_stage_process_queued_events (ClutterStage *stage);
void _clutter_stage_update_input_devices (ClutterStage *stage);