diff options
| author | suyambulingamrm <suyambu.rm@samsung.com> | 2014-06-30 16:09:11 +0530 |
|---|---|---|
| committer | suyambulingamrm <suyambu.rm@samsung.com> | 2014-06-30 16:09:11 +0530 |
| commit | 1021d0a53b4b496528441f27f819f7840df30ec0 (patch) | |
| tree | 6d6001cab3f445e3873c92ba2ab873bed775b782 /src/cairo-util.cpp | |
| parent | 522dd8984ddb34cbd39b72318ae16b41e19f61b0 (diff) | |
Issue #106. Clear the canvas between iterations.
Diffstat (limited to 'src/cairo-util.cpp')
| -rw-r--r-- | src/cairo-util.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cairo-util.cpp b/src/cairo-util.cpp index 4317115..4cd7745 100644 --- a/src/cairo-util.cpp +++ b/src/cairo-util.cpp @@ -15,6 +15,13 @@ #include "caskbench_context.h" void +context_clear_cairo(caskbench_context_t *context) +{ + cairo_set_source_rgb (context->cairo_cr, 0, 0, 0); + cairo_paint (context->cairo_cr); +} + +void write_image_file_cairo (const char *fname, caskbench_context_t *context) { assert (context->cairo_surface); |