From f25f5b8d15bae9674f4d81b97f337864ad62846c Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Thu, 7 Nov 2013 21:32:35 -0800 Subject: 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 --- src/caskbench.cpp | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) (limited to 'src/caskbench.cpp') diff --git a/src/caskbench.cpp b/src/caskbench.cpp index 67523e1..564de74 100644 --- a/src/caskbench.cpp +++ b/src/caskbench.cpp @@ -2,10 +2,16 @@ #include #include #include -#include #include #include +#include + +#include +#include +#include +#include + #include "caskbench.h" typedef struct _caskbench_options { @@ -15,9 +21,9 @@ typedef struct _caskbench_options { typedef struct _caskbench_perf_test { const char *name; - int (*setup)(cairo_t*); + int (*setup)(caskbench_context_t*); void (*teardown)(void); - int (*test_case)(cairo_t*); + int (*test_case)(caskbench_context_t*); } caskbench_perf_test_t; typedef struct _caskbench_result { @@ -81,7 +87,7 @@ process_options(caskbench_options_t *opt, int argc, char *argv[]) // Initialize options opt->dry_run = 0; - opt->iterations = 1024; + opt->iterations = 16; pc = poptGetContext(NULL, argc, (const char **)argv, po, 0); poptSetOtherOptionHelp(pc, "[ARG...]"); @@ -156,9 +162,11 @@ main (int argc, char *argv[]) printf("[\n"); for (c=0; c