[gnome-remote-desktop] rdp/rdpgfx: Add debug messages for GFX surface creations and deletions
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-remote-desktop] rdp/rdpgfx: Add debug messages for GFX surface creations and deletions
- Date: Fri, 19 Aug 2022 17:03:07 +0000 (UTC)
commit be572a3f1f6e418dccc4fe04b140fdcc5a290ce2
Author: Pascal Nowack <Pascal Nowack gmx de>
Date: Thu Aug 18 08:38:19 2022 +0200
rdp/rdpgfx: Add debug messages for GFX surface creations and deletions
This makes tracking the lifetime of a GFX surface easier.
src/grd-rdp-graphics-pipeline.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/grd-rdp-graphics-pipeline.c b/src/grd-rdp-graphics-pipeline.c
index 7d94347f..1a6ceb5b 100644
--- a/src/grd-rdp-graphics-pipeline.c
+++ b/src/grd-rdp-graphics-pipeline.c
@@ -178,6 +178,8 @@ grd_rdp_graphics_pipeline_create_surface (GrdRdpGraphicsPipeline *graphics_pipel
uint16_t aligned_width;
uint16_t aligned_height;
+ g_debug ("[RDP.RDPGFX] Creating surface with id %u", surface_id);
+
surface_context = g_malloc0 (sizeof (GfxSurfaceContext));
g_mutex_lock (&graphics_pipeline->gfx_mutex);
@@ -232,9 +234,6 @@ grd_rdp_graphics_pipeline_create_surface (GrdRdpGraphicsPipeline *graphics_pipel
g_autoptr (GrdRdpGfxSurface) render_surface = NULL;
GrdRdpGfxSurfaceDescriptor surface_descriptor = {};
- g_debug ("[RDP.RDPGFX] Creating separate render surface for surface %u",
- surface_id);
-
surface_descriptor.flags = GRD_RDP_GFX_SURFACE_FLAG_ALIGNED_SIZE |
GRD_RDP_GFX_SURFACE_FLAG_NO_HWACCEL_SESSIONS;
surface_descriptor.surface_id = get_next_free_surface_id (graphics_pipeline);
@@ -244,6 +243,9 @@ grd_rdp_graphics_pipeline_create_surface (GrdRdpGraphicsPipeline *graphics_pipel
surface_descriptor.aligned_width = aligned_width;
surface_descriptor.aligned_height = aligned_height;
+ g_debug ("[RDP.RDPGFX] Creating separate render surface (id %u) for "
+ "surface %u", surface_descriptor.surface_id, surface_id);
+
render_surface = grd_rdp_gfx_surface_new (graphics_pipeline,
&surface_descriptor);
grd_rdp_gfx_surface_override_render_surface (gfx_surface,
@@ -273,6 +275,8 @@ grd_rdp_graphics_pipeline_delete_surface (GrdRdpGraphicsPipeline *graphics_pipel
codec_context_id = grd_rdp_gfx_surface_get_codec_context_id (gfx_surface);
surface_serial = grd_rdp_gfx_surface_get_serial (gfx_surface);
+ g_debug ("[RDP.RDPGFX] Deleting surface with id %u", surface_id);
+
g_mutex_lock (&graphics_pipeline->gfx_mutex);
if (!g_hash_table_lookup_extended (graphics_pipeline->serial_surface_table,
GUINT_TO_POINTER (surface_serial),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]