static cairo_surface_t * _test_wrapping_surface_create_similar (void *abstract_surface, cairo_content_t content, int width, int height) { test_wrapping_surface_t *surface = abstract_surface; return _cairo_test_wrapping_surface_create ( _cairo_surface_wrapper_create_similar (&surface->wrapper, content, width, height)); }
static cairo_surface_t * _cairo_boilerplate_test_wrapping_create_surface (const char *name, cairo_content_t content, double width, double height, double max_width, double max_height, cairo_boilerplate_mode_t mode, int id, void **closure) { cairo_surface_t *target; cairo_surface_t *surface; cairo_format_t format; *closure = NULL; format = cairo_boilerplate_format_from_content (content); target = cairo_image_surface_create (format, ceil (width), ceil (height)); surface = _cairo_test_wrapping_surface_create (target); cairo_surface_destroy (target); return surface; }