[gtk+/wip/baedert/gl: 62/85] gl renderer: Define debug structs inline



commit e995011ff4f6ae052a38575c49cee1e0d5beaf0d
Author: Timm Bäder <mail baedert org>
Date:   Sun Dec 3 16:54:34 2017 +0100

    gl renderer: Define debug structs inline

 gsk/gl/gskglrenderer.c |   26 ++++++++------------------
 1 files changed, 8 insertions(+), 18 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 21a3390..5f8fe95 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -122,22 +122,6 @@ static void add_offscreen_ops                 (GskGLRenderer   *self,
                                                GskRenderNode   *child_node,
                                                int             *texture_id,
                                                gboolean        *is_offscreen);
-
-#ifdef G_ENABLE_DEBUG
-typedef struct
-{
-  GQuark frames;
-  GQuark draw_calls;
-} ProfileCounters;
-
-typedef struct
-{
-  GQuark cpu_time;
-  GQuark gpu_time;
-} ProfileTimers;
-#endif
-
-
 typedef enum
 {
   RENDER_FULL,
@@ -181,8 +165,14 @@ struct _GskGLRenderer
   GskGLGlyphCache glyph_cache;
 
 #ifdef G_ENABLE_DEBUG
-  ProfileCounters profile_counters;
-  ProfileTimers profile_timers;
+  struct {
+    GQuark frames;
+    GQuark draw_calls;
+  } profile_counters;
+  struct {
+    GQuark cpu_time;
+    GQuark gpu_time;
+  } profile_timers;
 #endif
 
   RenderMode render_mode;


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