mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-08 09:40:10 +00:00
Merge branch 'matthiasc/for-main' into 'main'
gsk: Add another profiler mark See merge request GNOME/gtk!7712
This commit is contained in:
commit
ee38c96ee3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user