blob: 772c8e6e8ef63e08c309366da08c3ef1457bf73c (
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
29
30
|
#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;
cairo_t *cr = ctx->cairo_cr;
for (i=0; i<ctx->size; i++) {
randomize_color (cr);
cairo_arc (cr, 40*i, 40, 30, 0, 2*M_PI);
cairo_fill (cr);
}
return 1;
}
|