[gtk+/wip/baedert/gl: 56/95] gl renderer: Define debug structs inline
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gl: 56/95] gl renderer: Define debug structs inline
- Date: Tue, 19 Dec 2017 14:47:09 +0000 (UTC)
commit 2895088da99251cf9059e657d19d13fdadd4075e
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]