コード例 #1
0
static cairo_surface_t *
_test_fallback16_surface_create_similar (void		*abstract_surface,
					 cairo_content_t content,
					 int		 width,
					 int		 height)
{
    assert (CAIRO_CONTENT_VALID (content));

    return _cairo_test_fallback16_surface_create (content, width, height);
}
コード例 #2
0
static cairo_surface_t *
_cairo_boilerplate_test_fallback16_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)
{
    *closure = NULL;
    return _cairo_test_fallback16_surface_create (content,
						  ceil (width), ceil (height));
}
コード例 #3
0
static cairo_surface_t *
create_source_surface (int size)
{
    return _cairo_test_fallback16_surface_create (CAIRO_CONTENT_COLOR_ALPHA,
						  size, size);
}