[mutter/wip/carlosg/backendless-clutter: 149/162] clutter: Demote CLUTTER_NOTE to g_debug in clutter-stage-cogl.c
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/backendless-clutter: 149/162] clutter: Demote CLUTTER_NOTE to g_debug in clutter-stage-cogl.c
- Date: Thu, 15 Jul 2021 13:12:54 +0000 (UTC)
commit 7cbe02decf910b291cb8e226db0e89c6582ac91e
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon May 10 12:43:35 2021 +0200
clutter: Demote CLUTTER_NOTE to g_debug in clutter-stage-cogl.c
This code is being shuffled out of Clutter code, so cut the ties with
it before doing that.
clutter/clutter/cogl/clutter-stage-cogl.c | 31 +++++++++++++------------------
1 file changed, 13 insertions(+), 18 deletions(-)
---
diff --git a/clutter/clutter/cogl/clutter-stage-cogl.c b/clutter/clutter/cogl/clutter-stage-cogl.c
index 4f1c305f96..6c4ddbfc0e 100644
--- a/clutter/clutter/cogl/clutter-stage-cogl.c
+++ b/clutter/clutter/cogl/clutter-stage-cogl.c
@@ -90,7 +90,7 @@ enum
static void
clutter_stage_cogl_unrealize (ClutterStageWindow *stage_window)
{
- CLUTTER_NOTE (BACKEND, "Unrealizing Cogl stage [%p]", stage_window);
+ g_debug ("Unrealizing Cogl stage [%p]", stage_window);
}
static gboolean
@@ -98,9 +98,9 @@ clutter_stage_cogl_realize (ClutterStageWindow *stage_window)
{
ClutterBackend *backend;
- CLUTTER_NOTE (BACKEND, "Realizing stage '%s' [%p]",
- G_OBJECT_TYPE_NAME (stage_window),
- stage_window);
+ g_debug ("Realizing stage '%s' [%p]",
+ G_OBJECT_TYPE_NAME (stage_window),
+ stage_window);
backend = clutter_get_default_backend ();
@@ -284,9 +284,7 @@ swap_framebuffer (ClutterStageWindow *stage_window,
/* push on the screen */
if (n_rects > 0 && !swap_with_damage)
{
- CLUTTER_NOTE (BACKEND,
- "cogl_onscreen_swap_region (onscreen: %p)",
- onscreen);
+ g_debug ("cogl_onscreen_swap_region (onscreen: %p)", onscreen);
cogl_onscreen_swap_region (onscreen,
damage, n_rects,
@@ -295,8 +293,7 @@ swap_framebuffer (ClutterStageWindow *stage_window,
}
else
{
- CLUTTER_NOTE (BACKEND, "cogl_onscreen_swap_buffers (onscreen: %p)",
- onscreen);
+ g_debug ("cogl_onscreen_swap_buffers (onscreen: %p)", onscreen);
cogl_onscreen_swap_buffers_with_damage (onscreen,
damage, n_rects,
@@ -311,8 +308,7 @@ swap_framebuffer (ClutterStageWindow *stage_window,
clutter_stage_view_cogl_get_instance_private (view_cogl);
NotifyPresentedClosure *closure;
- CLUTTER_NOTE (BACKEND, "fake offscreen swap (framebuffer: %p)",
- framebuffer);
+ g_debug ("fake offscreen swap (framebuffer: %p)", framebuffer);
closure = g_new0 (NotifyPresentedClosure, 1);
closure->view = view;
@@ -499,9 +495,8 @@ clutter_stage_cogl_redraw_view_primary (ClutterStageCogl *stage_cogl,
if (!clutter_damage_history_is_age_valid (view_priv->damage_history,
buffer_age))
{
- CLUTTER_NOTE (CLIPPING,
- "Invalid back buffer(age=%d): forcing full redraw\n",
- buffer_age);
+ g_debug ("Invalid back buffer(age=%d): forcing full redraw",
+ buffer_age);
use_clipped_redraw = FALSE;
}
}
@@ -572,9 +567,9 @@ clutter_stage_cogl_redraw_view_primary (ClutterStageCogl *stage_cogl,
cairo_region_union (fb_clip_region, old_damage);
}
- CLUTTER_NOTE (CLIPPING, "Reusing back buffer(age=%d) - repairing region: num rects: %d\n",
- buffer_age,
- cairo_region_num_rectangles (fb_clip_region));
+ g_debug ("Reusing back buffer(age=%d) - repairing region: num rects: %d",
+ buffer_age,
+ cairo_region_num_rectangles (fb_clip_region));
swap_with_damage = TRUE;
}
@@ -617,7 +612,7 @@ clutter_stage_cogl_redraw_view_primary (ClutterStageCogl *stage_cogl,
}
else
{
- CLUTTER_NOTE (CLIPPING, "Unclipped stage paint\n");
+ g_debug ("Unclipped stage paint");
paint_stage (stage_cogl, view, redraw_clip);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]