[gtk/wip/chergert/glproto: 252/526] Hook up fallback debugging




commit 60ec57a10a6a692596d634e87a2849b9fc18af29
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jan 13 21:51:18 2021 -0500

    Hook up fallback debugging
    
    This is useful to see whats left to do.

 gsk/next/gskglrenderer.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/gsk/next/gskglrenderer.c b/gsk/next/gskglrenderer.c
index 2fdd31e594..2ec2477e16 100644
--- a/gsk/next/gskglrenderer.c
+++ b/gsk/next/gskglrenderer.c
@@ -226,6 +226,11 @@ gsk_gl_renderer_render (GskRenderer          *renderer,
 
   gdk_draw_context_begin_frame (GDK_DRAW_CONTEXT (context), update_area);
   job = gsk_gl_render_job_new (self->driver, &viewport, scale_factor, render_region, 0);
+#ifdef G_ENABLE_DEBUG
+  if (GSK_RENDERER_DEBUG_CHECK (GSK_RENDERER (self), FALLBACK))
+    gsk_gl_render_job_set_debug_fallback (job, TRUE);
+#endif
+
   gsk_gl_render_job_render (job, root);
   gdk_draw_context_end_frame (GDK_DRAW_CONTEXT (context));
 


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