offload: Move a debug message

If we fail to attach a buffer, we don't want to print this.
This commit is contained in:
Benjamin Otte
2023-11-14 13:25:48 +01:00
parent 5bdc9f71fd
commit 4920ac4a57
2 changed files with 8 additions and 7 deletions

View File

@@ -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

View File

@@ -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);