From 9b62a5c931eb1121df0bcadb7f68384df88c3a84 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 29 Jan 2024 02:02:05 -0500 Subject: [PATCH] gpu: Drop an unused argument The timestamp wasn't used in atlas creation. --- gsk/gpu/gskgpudevice.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/gsk/gpu/gskgpudevice.c b/gsk/gpu/gskgpudevice.c index 0c4074e2a8..4e082cea39 100644 --- a/gsk/gpu/gskgpudevice.c +++ b/gsk/gpu/gskgpudevice.c @@ -795,8 +795,7 @@ gsk_gpu_cached_atlas_allocate (GskGpuCachedAtlas *atlas, static void gsk_gpu_device_ensure_atlas (GskGpuDevice *self, - gboolean recreate, - gint64 timestamp) + gboolean recreate) { GskGpuDevicePrivate *priv = gsk_gpu_device_get_instance_private (self); @@ -811,14 +810,13 @@ gsk_gpu_device_get_atlas_image (GskGpuDevice *self) { GskGpuDevicePrivate *priv = gsk_gpu_device_get_instance_private (self); - gsk_gpu_device_ensure_atlas (self, FALSE, g_get_monotonic_time ()); + gsk_gpu_device_ensure_atlas (self, FALSE); return priv->current_atlas->image; } static GskGpuImage * gsk_gpu_device_add_atlas_image (GskGpuDevice *self, - gint64 timestamp, gsize width, gsize height, gsize *out_x, @@ -829,12 +827,12 @@ gsk_gpu_device_add_atlas_image (GskGpuDevice *self, if (width > MAX_ATLAS_ITEM_SIZE || height > MAX_ATLAS_ITEM_SIZE) return NULL; - gsk_gpu_device_ensure_atlas (self, FALSE, timestamp); + gsk_gpu_device_ensure_atlas (self, FALSE); if (gsk_gpu_cached_atlas_allocate (priv->current_atlas, width, height, out_x, out_y)) return priv->current_atlas->image; - gsk_gpu_device_ensure_atlas (self, TRUE, timestamp); + gsk_gpu_device_ensure_atlas (self, TRUE); if (gsk_gpu_cached_atlas_allocate (priv->current_atlas, width, height, out_x, out_y)) return priv->current_atlas->image; @@ -920,7 +918,6 @@ gsk_gpu_device_lookup_glyph_image (GskGpuDevice *self, padding = 1; image = gsk_gpu_device_add_atlas_image (self, - gsk_gpu_frame_get_timestamp (frame), rect.size.width + 2 * padding, rect.size.height + 2 * padding, &atlas_x, &atlas_y); if (image)