mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 18:30:08 +00:00
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:
parent
753d74d676
commit
e5705bd141
@ -209,6 +209,7 @@ gsk_gpu_renderer_realize (GskRenderer *renderer,
|
|||||||
GskGpuRenderer *self = GSK_GPU_RENDERER (renderer);
|
GskGpuRenderer *self = GSK_GPU_RENDERER (renderer);
|
||||||
GskGpuRendererPrivate *priv = gsk_gpu_renderer_get_instance_private (self);
|
GskGpuRendererPrivate *priv = gsk_gpu_renderer_get_instance_private (self);
|
||||||
GskGpuOptimizations context_optimizations;
|
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);
|
priv->device = GSK_GPU_RENDERER_GET_CLASS (self)->get_device (display, error);
|
||||||
if (priv->device == NULL)
|
if (priv->device == NULL)
|
||||||
@ -223,6 +224,8 @@ gsk_gpu_renderer_realize (GskRenderer *renderer,
|
|||||||
|
|
||||||
priv->optimizations &= context_optimizations;
|
priv->optimizations &= context_optimizations;
|
||||||
|
|
||||||
|
gdk_profiler_end_mark (start_time, "Realize GskGpuRenderer", NULL);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user