[clutter-gst] sink: Set the no clear hint on the stage
- From: Damien Lespiau <dlespiau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gst] sink: Set the no clear hint on the stage
- Date: Mon, 7 Nov 2011 17:24:24 +0000 (UTC)
commit b054873dd2e1871d84386f9a8bcb1bfdd14c7c3a
Author: Damien Lespiau <damien lespiau intel com>
Date: Mon Nov 7 15:28:44 2011 +0000
sink: Set the no clear hint on the stage
When drawing to the stage we always take the full stage, which means
clearing the stage with the background color can be skipped when we can.
Setting the no-clear hint serves that purpose.
clutter-gst/clutter-gst-video-sink.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/clutter-gst/clutter-gst-video-sink.c b/clutter-gst/clutter-gst-video-sink.c
index 6f90a27..c0bdb18 100644
--- a/clutter-gst/clutter-gst-video-sink.c
+++ b/clutter-gst/clutter-gst-video-sink.c
@@ -538,6 +538,7 @@ clutter_gst_source_dispatch (GSource *source,
priv->texture = CLUTTER_TEXTURE (actor);
clutter_stage_set_user_resizable (CLUTTER_STAGE (stage), TRUE);
clutter_container_add_actor (CLUTTER_CONTAINER (stage), actor);
+ clutter_stage_set_no_clear_hint (CLUTTER_STAGE (stage), TRUE);
g_signal_connect (stage, "delete-event",
G_CALLBACK (on_stage_destroyed), gst_source);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]