From 4920ac4a570a6b2a03f561c5b5374da501c84d1a Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 14 Nov 2023 13:25:48 +0100 Subject: [PATCH] offload: Move a debug message If we fail to attach a buffer, we don't want to print this. --- gdk/wayland/gdksubsurface-wayland.c | 8 ++++++++ gsk/gskoffload.c | 7 ------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/gdk/wayland/gdksubsurface-wayland.c b/gdk/wayland/gdksubsurface-wayland.c index c97ca5f53f..60e7e2b3e0 100644 --- a/gdk/wayland/gdksubsurface-wayland.c +++ b/gdk/wayland/gdksubsurface-wayland.c @@ -198,6 +198,14 @@ gdk_wayland_subsurface_attach (GdkSubsurface *sub, 0, 0, gdk_texture_get_width (texture), gdk_texture_get_height (texture)); + GDK_DISPLAY_DEBUG (gdk_surface_get_display (sub->parent), OFFLOAD, + "Attached %dx%d texture to subsurface %p at %d %d %d %d", + gdk_texture_get_width (texture), + gdk_texture_get_height (texture), + self, + self->dest.x, self->dest.y, + self->dest.width, self->dest.height); + result = TRUE; } else diff --git a/gsk/gskoffload.c b/gsk/gskoffload.c index 89c44c2ccc..70b33dd97c 100644 --- a/gsk/gskoffload.c +++ b/gsk/gskoffload.c @@ -580,13 +580,6 @@ gsk_offload_new (GdkSurface *surface, if (info->can_offload) { - GDK_DISPLAY_DEBUG (display, OFFLOAD, "Attaching %dx%d texture to subsurface %p at %g %g %g %g", - gdk_texture_get_width (info->texture), - gdk_texture_get_height (info->texture), - info->subsurface, - info->rect.origin.x, info->rect.origin.y, - info->rect.size.width, info->rect.size.height); - info->is_offloaded = gdk_subsurface_attach (info->subsurface, info->texture, &info->rect);