blob: 7189887225a8fea333dfeb5905ed03eb2b58aa47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#include <stdio.h>
#include <stdlib.h>
#include <cairo.h>
#include "caskbench.h"
int
ca_setup_fill(caskbench_context_t *ctx)
{
return 1;
}
void
ca_teardown_fill(void)
{
}
int
ca_test_fill(caskbench_context_t *ctx)
{
int i;
for (i=0; i<32; i++) {
randomize_color (ctx->cr);
cairo_arc (ctx->cr, 40*i, 40, 30, 0, 2*M_PI);
cairo_fill_preserve (ctx->cr);
}
return 1;
}
|