mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 14:20:21 +00:00
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:
parent
9e0f41bd05
commit
389d246af8
@ -2,6 +2,11 @@
|
|||||||
|
|
||||||
#include <gsk/gskcairoblurprivate.h>
|
#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
|
static void
|
||||||
init_surface (cairo_t *cr)
|
init_surface (cairo_t *cr)
|
||||||
{
|
{
|
||||||
@ -26,6 +31,8 @@ main (int argc, char **argv)
|
|||||||
int i, j;
|
int i, j;
|
||||||
int size;
|
int size;
|
||||||
|
|
||||||
|
gdk_default_color_states = gdk_color_state_get_srgb ();
|
||||||
|
|
||||||
timer = g_timer_new ();
|
timer = g_timer_new ();
|
||||||
|
|
||||||
size = 2000;
|
size = 2000;
|
||||||
|
Loading…
Reference in New Issue
Block a user