mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 12:18:01 +02:00
[perf] Reset global caches after every trace
I'd disabled this to look at cairo-qt performance, then forgot about it. Be clean, cleanup globals -- this should fix the huge performance loss when running in series multiple backends that need separate font caches.
This commit is contained in:
parent
9c8e60f771
commit
77c1109616
1 changed files with 5 additions and 0 deletions
|
|
@ -596,6 +596,11 @@ cairo_perf_trace (cairo_perf_t *perf,
|
|||
|
||||
if (target->cleanup)
|
||||
target->cleanup (closure);
|
||||
|
||||
cairo_debug_reset_static_data ();
|
||||
#if HAVE_FCFINI
|
||||
FcFini ();
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue