Fix up the blur-performance test

Add a hack to work aroundt he fact that the blur performance test
includes private headers which inline accesses to non-exported
variables.
This commit is contained in:
Matthias Clasen 2024-08-02 09:12:37 -04:00
parent 9e0f41bd05
commit 389d246af8

View File

@ -2,6 +2,11 @@
#include <gsk/gskcairoblurprivate.h>
/* This is a hack to work around the fact that this code includes
* private headers that inline access to non-exported variables.
*/
GdkColorState *gdk_default_color_states;
static void
init_surface (cairo_t *cr)
{
@ -26,6 +31,8 @@ main (int argc, char **argv)
int i, j;
int size;
gdk_default_color_states = gdk_color_state_get_srgb ();
timer = g_timer_new ();
size = 2000;