[mutter/wip/garnacho/wayland-emulated-output-transform: 23/30] clutter: Hook up ClutterStageView render-to-texture



commit 0f7aa49498e7e1386c9a61ca5e6a6aa2ec4b14ec
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.

 clutter/clutter/clutter-stage.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c
index edbc9b4..413b0cd 100644
--- a/clutter/clutter/clutter-stage.c
+++ b/clutter/clutter/clutter-stage.c
@@ -676,6 +676,8 @@ 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));
+
+  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]