[mutter: 6/13] clutter/cogl: Hook up ClutterStageView render-to-texture



commit 61e9c5c357398b78b3658bc726cbb70dc09728c0
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Aug 1 02:55:13 2016 +0200

    clutter/cogl: 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 and this step is not necessary.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=745079

 clutter/clutter/cogl/clutter-stage-cogl.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter/cogl/clutter-stage-cogl.c b/clutter/clutter/cogl/clutter-stage-cogl.c
index 6bf2f7b..2ef862b 100644
--- a/clutter/clutter/cogl/clutter-stage-cogl.c
+++ b/clutter/clutter/cogl/clutter-stage-cogl.c
@@ -419,6 +419,12 @@ paint_stage (ClutterStageCogl            *stage_cogl,
 
   _clutter_stage_maybe_setup_viewport (stage, view);
   _clutter_stage_paint_view (stage, view, clip);
+
+  if (clutter_stage_view_get_onscreen (view) !=
+      clutter_stage_view_get_framebuffer (view))
+    {
+      clutter_stage_view_blit_offscreen (view, clip);
+    }
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]