[cairo-commit] 2 commits - src/cairo-clip.c test/big-line.xlib-fallback.ref.png

Chris Wilson ickle at kemper.freedesktop.org
Mon Jan 25 03:59:11 PST 2010


 dev/null         |binary
 src/cairo-clip.c |    5 +++++
 2 files changed, 5 insertions(+)

New commits:
commit be81d656c53c76032fd3fe11c81402d17ec56327
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Mon Jan 25 11:54:24 2010 +0000

    clip: Create a fallback clip surface
    
    If the destination cannot support a clip surface, then we will need to
    use an intermediate image surface and trigger fallbacks upon use.

diff --git a/src/cairo-clip.c b/src/cairo-clip.c
index f18bff2..74af5d8 100644
--- a/src/cairo-clip.c
+++ b/src/cairo-clip.c
@@ -938,6 +938,11 @@ _cairo_clip_path_get_surface (cairo_clip_path_t *clip_path,
 						     CAIRO_CONTENT_ALPHA,
 						     clip_extents->width,
 						     clip_extents->height);
+    if (surface == NULL) {
+	surface = cairo_image_surface_create (CAIRO_FORMAT_A8,
+					      clip_extents->width,
+					      clip_extents->height);
+    }
     if (unlikely (surface->status))
 	return surface;
 
commit c453d8ab704e5f41cb010241efe9bcb9ff886024
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Mon Jan 25 11:45:01 2010 +0000

    test: Erroneous ref image for big-line xlib-fallback.

diff --git a/test/big-line.xlib-fallback.ref.png b/test/big-line.xlib-fallback.ref.png
deleted file mode 100644
index 99cd1e2..0000000
Binary files a/test/big-line.xlib-fallback.ref.png and /dev/null differ


More information about the cairo-commit mailing list