offload: Move a debug message
If we fail to attach a buffer, we don't want to print this.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user