blob: bc8310b4eb4095ec899f6050c381abeb86383eb8 (
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
|
#include <stdio.h>
#include <stdlib.h>
#include <cairo.h>
#include "caskbench.h"
static cairo_surface_t *image;
int
ca_setup_image(caskbench_context_t *ctx)
{
image = cairo_image_surface_create_from_png ("../data/romedalen.png");
cairo_set_source_surface (ctx->cr, image, 0, 0);
return 1;
}
void
ca_teardown_image(void)
{
cairo_surface_destroy (image);
}
int
ca_test_image(caskbench_context_t* ctx)
{
cairo_paint (ctx->cr);
return 1;
}
|