[mutter/wip/garnacho/wayland-emulated-output-transform: 20/27] clutter: Hook up ClutterStageView render-to-texture
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/garnacho/wayland-emulated-output-transform: 20/27] clutter: Hook up ClutterStageView render-to-texture
- Date: Tue, 23 Aug 2016 18:05:56 +0000 (UTC)
commit f1a0985e3a7d2c20c25f9d9353ebc822e282ccb2
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Aug 1 02:55:13 2016 +0200
clutter: Hook up ClutterStageView render-to-texture
"Blit" the result on the framebuffer after each view is painted.
This of course only applies if there is an offscreen buffer to
perform any blitting. Otherwise the onscreen framebuffer is rendered
to directly.
https://bugzilla.gnome.org/show_bug.cgi?id=745079
clutter/clutter/clutter-stage.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c
index edbc9b4..ea19cdc 100644
--- a/clutter/clutter/clutter-stage.c
+++ b/clutter/clutter/clutter-stage.c
@@ -676,6 +676,12 @@ clutter_stage_do_paint_view (ClutterStage *stage,
_clutter_stage_paint_volume_stack_free_all (stage);
_clutter_stage_update_active_framebuffer (stage, framebuffer);
clutter_actor_paint (CLUTTER_ACTOR (stage));
+
+ if (clutter_stage_view_get_onscreen (view) !=
+ clutter_stage_view_get_framebuffer (view))
+ {
+ clutter_stage_view_blit_offscreen (view, clip);
+ }
}
/* This provides a common point of entry for painting the scenegraph
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]