gsk: Add another profiler mark

This lets us compare the cost of realizing the new renderers vs
the old GL renderer.
This commit is contained in:
Matthias Clasen 2024-09-13 11:01:22 -04:00
parent 753d74d676
commit e5705bd141

View File

@ -209,6 +209,7 @@ gsk_gpu_renderer_realize (GskRenderer *renderer,
GskGpuRenderer *self = GSK_GPU_RENDERER (renderer);
GskGpuRendererPrivate *priv = gsk_gpu_renderer_get_instance_private (self);
GskGpuOptimizations context_optimizations;
G_GNUC_UNUSED gint64 start_time = GDK_PROFILER_CURRENT_TIME;
priv->device = GSK_GPU_RENDERER_GET_CLASS (self)->get_device (display, error);
if (priv->device == NULL)
@ -223,6 +224,8 @@ gsk_gpu_renderer_realize (GskRenderer *renderer,
priv->optimizations &= context_optimizations;
gdk_profiler_end_mark (start_time, "Realize GskGpuRenderer", NULL);
return TRUE;
}