summaryrefslogtreecommitdiff
path: root/perf/paint-with-alpha.c
diff options
context:
space:
mode:
Diffstat (limited to 'perf/paint-with-alpha.c')
-rw-r--r--perf/paint-with-alpha.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/perf/paint-with-alpha.c b/perf/paint-with-alpha.c
index d4d860ef..6ffe8bb1 100644
--- a/perf/paint-with-alpha.c
+++ b/perf/paint-with-alpha.c
@@ -40,6 +40,9 @@ do_paint_with_alpha (cairo_t *cr, int width, int height)
void
paint_with_alpha (cairo_perf_t *perf, cairo_t *cr, int width, int height)
{
+ if (! cairo_perf_can_run (perf, "paint-with-alpha"))
+ return;
+
cairo_perf_cover_sources_and_operators (perf, "paint-with-alpha",
do_paint_with_alpha);
}