gfx/cairo/quartz-remove-snapshot.patch

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/cairo/quartz-remove-snapshot.patch	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,62 @@
     1.4 +changeset:   42958:dd0f1f0a96b3
     1.5 +user:        Robert O'Callahan <robert@ocallahan.org>
     1.6 +date:        Tue Jun 01 11:33:05 2010 +1200
     1.7 +summary:     Bug 568189. Part 3: Remove snapshot backend function since it doesn't work and we may as well just fall back. r=jrmuizel
     1.8 +
     1.9 +diff --git a/gfx/cairo/cairo/src/cairo-quartz-surface.c b/gfx/cairo/cairo/src/cairo-quartz-surface.c
    1.10 +--- a/gfx/cairo/cairo/src/cairo-quartz-surface.c
    1.11 ++++ b/gfx/cairo/cairo/src/cairo-quartz-surface.c
    1.12 +@@ -1993,33 +1993,16 @@ _cairo_quartz_surface_acquire_source_ima
    1.13 +     if (status)
    1.14 + 	return _cairo_error (CAIRO_STATUS_NO_MEMORY);
    1.15 + 
    1.16 +     *image_extra = NULL;
    1.17 + 
    1.18 +     return CAIRO_STATUS_SUCCESS;
    1.19 + }
    1.20 + 
    1.21 +-static cairo_surface_t *
    1.22 +-_cairo_quartz_surface_snapshot (void *abstract_surface)
    1.23 +-{
    1.24 +-    cairo_int_status_t status;
    1.25 +-    cairo_quartz_surface_t *surface = abstract_surface;
    1.26 +-    cairo_image_surface_t *image;
    1.27 +-
    1.28 +-    if (surface->imageSurfaceEquiv)
    1.29 +-	return NULL;
    1.30 +-
    1.31 +-    status = _cairo_quartz_get_image (surface, &image);
    1.32 +-    if (unlikely (status))
    1.33 +-        return _cairo_surface_create_in_error (CAIRO_STATUS_NO_MEMORY);
    1.34 +-
    1.35 +-    return &image->base;
    1.36 +-}
    1.37 +-
    1.38 + static void
    1.39 + _cairo_quartz_surface_release_source_image (void *abstract_surface,
    1.40 + 					     cairo_image_surface_t *image,
    1.41 + 					     void *image_extra)
    1.42 + {
    1.43 +     cairo_surface_destroy ((cairo_surface_t *) image);
    1.44 + }
    1.45 + 
    1.46 +@@ -2916,17 +2899,17 @@ static const struct _cairo_surface_backe
    1.47 +     _cairo_quartz_surface_stroke,
    1.48 +     _cairo_quartz_surface_fill,
    1.49 + #if CAIRO_HAS_QUARTZ_FONT
    1.50 +     _cairo_quartz_surface_show_glyphs,
    1.51 + #else
    1.52 +     NULL, /* show_glyphs */
    1.53 + #endif
    1.54 + 
    1.55 +-    _cairo_quartz_surface_snapshot,
    1.56 ++    NULL, /* snapshot */
    1.57 +     NULL, /* is_similar */
    1.58 +     NULL  /* fill_stroke */
    1.59 + };
    1.60 + 
    1.61 + cairo_quartz_surface_t *
    1.62 + _cairo_quartz_surface_create_internal (CGContextRef cgContext,
    1.63 + 					cairo_content_t content,
    1.64 + 					unsigned int width,
    1.65 +

mercurial