[gtk+: 57/97] gl renderer: Define debug structs inline



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