diff options
| author | Bryce Harrington <b.harrington@samsung.com> | 2013-11-04 16:01:48 -0800 |
|---|---|---|
| committer | Bryce Harrington <b.harrington@samsung.com> | 2013-11-04 16:01:48 -0800 |
| commit | 6b7c2ceeef3e1fbf01159c7149b9a288b099fad7 (patch) | |
| tree | fb7df4804792578aca60650b0559e14ec1329b38 /src/cairo-tests/mask.cpp | |
| parent | 5971648318ffa0c9f8e5ad2817203daff8e6257d (diff) | |
Make room for skia tests to live alongside the cairo tests
Diffstat (limited to 'src/cairo-tests/mask.cpp')
| -rw-r--r-- | src/cairo-tests/mask.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/cairo-tests/mask.cpp b/src/cairo-tests/mask.cpp new file mode 100644 index 0000000..fd28445 --- /dev/null +++ b/src/cairo-tests/mask.cpp @@ -0,0 +1,27 @@ +#include <stdio.h> +#include <stdlib.h> +#include <cairo.h> + +#include "caskbench.h" + +static cairo_pattern_t *mask; + +int +ca_setup_mask(cairo_t *cr) +{ + mask = cairo_pattern_create_rgba (0, 0, 0, 0.5); + return 1; +} + +void +ca_teardown_mask(void) +{ + cairo_pattern_destroy (mask); +} + +int +ca_test_mask(cairo_t *cr) +{ + cairo_mask (cr, mask); + return 1; +} |