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



commit a787a013c6a65c037b7843f5905e776b3260231d
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 |    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]