mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-19 13:30:02 +00:00
offload: Consolidate logging a bit
Spew a bit less per-frame. Unfortunately, we still spew for every frame, and fixing that would require more extensive refactoring to centralize all logging in gskoffload.c
This commit is contained in:
parent
b5fb584316
commit
b21708c5e4
@ -491,12 +491,14 @@ gdk_wayland_subsurface_attach (GdkSubsurface *sub,
|
||||
}
|
||||
|
||||
GDK_DISPLAY_DEBUG (gdk_surface_get_display (sub->parent), OFFLOAD,
|
||||
"Attached %dx%d texture to subsurface %p at %d %d %d %d",
|
||||
"Attached %dx%d texture to subsurface %p at %d %d %d %d%s%s",
|
||||
gdk_texture_get_width (texture),
|
||||
gdk_texture_get_height (texture),
|
||||
self,
|
||||
self->dest.x, self->dest.y,
|
||||
self->dest.width, self->dest.height);
|
||||
self->dest.width, self->dest.height,
|
||||
will_be_above ? ", above parent" : "",
|
||||
has_background ? ", with background" : "");
|
||||
result = TRUE;
|
||||
}
|
||||
else
|
||||
|
@ -130,11 +130,7 @@ find_texture_to_attach (GskOffload *self,
|
||||
gsk_rect_equal (&bounds, &subsurface_node->bounds) &&
|
||||
gdk_rgba_equal (gsk_color_node_get_color (child), &GDK_RGBA_BLACK))
|
||||
{
|
||||
GDK_DISPLAY_DEBUG (gdk_surface_get_display (self->surface), OFFLOAD,
|
||||
"Offloading subsurface %p with background",
|
||||
subsurface);
|
||||
*has_background = TRUE;
|
||||
|
||||
node = gsk_container_node_get_child (node, 1);
|
||||
break;
|
||||
}
|
||||
@ -684,7 +680,6 @@ gsk_offload_new (GdkSurface *surface,
|
||||
GskRenderNode *root,
|
||||
cairo_region_t *diff)
|
||||
{
|
||||
GdkDisplay *display = gdk_surface_get_display (surface);
|
||||
GskOffload *self;
|
||||
|
||||
self = g_new0 (GskOffload, 1);
|
||||
@ -752,17 +747,10 @@ gsk_offload_new (GdkSurface *surface,
|
||||
{
|
||||
info->is_offloaded = FALSE;
|
||||
if (info->was_offloaded)
|
||||
{
|
||||
GDK_DISPLAY_DEBUG (display, OFFLOAD, "Hiding subsurface %p", info->subsurface);
|
||||
gdk_subsurface_detach (info->subsurface);
|
||||
}
|
||||
gdk_subsurface_detach (info->subsurface);
|
||||
}
|
||||
|
||||
if (info->is_offloaded && gdk_subsurface_is_above_parent (info->subsurface))
|
||||
{
|
||||
GDK_DISPLAY_DEBUG (display, OFFLOAD, "Raising subsurface %p", info->subsurface);
|
||||
info->is_above = TRUE;
|
||||
}
|
||||
info->is_above = info->is_offloaded && gdk_subsurface_is_above_parent (info->subsurface);
|
||||
|
||||
gdk_subsurface_get_bounds (info->subsurface, &bounds);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user