mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-21 15:40:33 +01:00
Return a test_fallback_surface_t rather than a cairo_image_surface_t for better testing, (otherwise, an image surface would meet the semantic demands of create_similar just fine).
This commit is contained in:
parent
c75232f8ab
commit
464d3fc563
2 changed files with 15 additions and 3 deletions
|
|
@ -1,3 +1,11 @@
|
|||
2005-12-16 Carl Worth <cworth@cworth.org>
|
||||
|
||||
* src/test-fallback-surface.c:
|
||||
(_test_fallback_surface_create_similar): Return a
|
||||
test_fallback_surface_t rather than a cairo_image_surface_t for
|
||||
better testing, (otherwise, an image surface would meet the
|
||||
semantic demands of create_similar just fine).
|
||||
|
||||
2005-12-16 Carl Worth <cworth@cworth.org>
|
||||
|
||||
* configure.in: Add a new option --enable-test-surfaces.
|
||||
|
|
|
|||
|
|
@ -37,6 +37,10 @@
|
|||
* test suite to test a mythical backend that uses nothing but
|
||||
* fallbacks.
|
||||
*
|
||||
* The defining feature of this backend is that it has as many NULL
|
||||
* backend function entries as possible, (and it might be worth
|
||||
* working to try to allow one or two more to be NULL as well).
|
||||
*
|
||||
* It's possible that this code might serve as a good starting point
|
||||
* for someone working on bringing up a new backend, starting with the
|
||||
* minimal all-fallbacks approach and working up gradually from
|
||||
|
|
@ -115,10 +119,10 @@ _test_fallback_surface_create_similar (void *abstract_surface,
|
|||
int width,
|
||||
int height)
|
||||
{
|
||||
test_fallback_surface_t *surface = abstract_surface;
|
||||
assert (CAIRO_CONTENT_VALID (content));
|
||||
|
||||
return cairo_surface_create_similar (surface->backing, content,
|
||||
width, height);
|
||||
return _test_fallback_surface_create (_cairo_format_from_content (content),
|
||||
width, height);
|
||||
}
|
||||
|
||||
static cairo_status_t
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue