summaryrefslogtreecommitdiffstatsci
path: root/src/image.cpp
blob: c9b9c1ccde77adbb59e99709b74134398758284c (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
setup_image(cairo_t *cr)
{
  image = cairo_image_surface_create_from_png ("../data/romedalen.png");
  cairo_set_source_surface (cr, image, 0, 0);
  return 1;
}

void
teardown_image(void)
{
  cairo_surface_destroy (image);
}

int
test_image(cairo_t *cr)
{
  cairo_paint (cr);
  return 1;
}