summaryrefslogtreecommitdiffstatsci
path: root/src/cairo-tests/image.cpp
diff options
context:
space:
mode:
authorBryce Harrington <b.harrington@samsung.com>2013-11-07 21:32:35 -0800
committerBryce Harrington <b.harrington@samsung.com>2013-11-07 21:32:35 -0800
commitf25f5b8d15bae9674f4d81b97f337864ad62846c (patch)
tree02d911324fc9cd382aa4f1a816fc304b764ebf3a /src/cairo-tests/image.cpp
parentf19601219a5d519de1e0923e5c7ae5d74bf38784 (diff)
Integrate skia tests
This merges skia into the build system, however: * It does not yet build the skia tests themselves * Paths are hardcoded to my personal paths * The cmake rules are rather brute forced
Diffstat (limited to 'src/cairo-tests/image.cpp')
-rw-r--r--src/cairo-tests/image.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cairo-tests/image.cpp b/src/cairo-tests/image.cpp
index eb76734..bc8310b 100644
--- a/src/cairo-tests/image.cpp
+++ b/src/cairo-tests/image.cpp
@@ -7,10 +7,10 @@
static cairo_surface_t *image;
int
-ca_setup_image(cairo_t *cr)
+ca_setup_image(caskbench_context_t *ctx)
{
image = cairo_image_surface_create_from_png ("../data/romedalen.png");
- cairo_set_source_surface (cr, image, 0, 0);
+ cairo_set_source_surface (ctx->cr, image, 0, 0);
return 1;
}
@@ -21,9 +21,9 @@ ca_teardown_image(void)
}
int
-ca_test_image(cairo_t *cr)
+ca_test_image(caskbench_context_t* ctx)
{
- cairo_paint (cr);
+ cairo_paint (ctx->cr);
return 1;
}