From 21f842f0dfd5dd3cc1fd3b56db034fc4e209adaa Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Mon, 7 Jan 2008 21:17:26 +1030 Subject: [PATCH] PDF: Remove copy_page Now that the content stream is no longer split into multiple streams it is not possible to implement a copy_page function that shares the common content between pages. Remove this function so the paginated surface will rewrite the content from the meta surface. --- src/cairo-pdf-surface.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c index c01876437..614d65541 100644 --- a/src/cairo-pdf-surface.c +++ b/src/cairo-pdf-surface.c @@ -2686,19 +2686,6 @@ _cairo_pdf_surface_unselect_pattern (cairo_pdf_surface_t *surface) _cairo_output_stream_printf (surface->output, "Q\r\n"); } -static cairo_int_status_t -_cairo_pdf_surface_copy_page (void *abstract_surface) -{ - cairo_pdf_surface_t *surface = abstract_surface; - cairo_int_status_t status; - - status = _cairo_pdf_surface_close_content_stream (surface); - if (status) - return status; - - return _cairo_pdf_surface_write_page (surface); -} - static cairo_int_status_t _cairo_pdf_surface_show_page (void *abstract_surface) { @@ -4577,7 +4564,7 @@ static const cairo_surface_backend_t cairo_pdf_surface_backend = { NULL, /* composite */ NULL, /* fill_rectangles */ NULL, /* composite_trapezoids */ - _cairo_pdf_surface_copy_page, + NULL, /* _cairo_pdf_surface_copy_page */ _cairo_pdf_surface_show_page, NULL, /* set_clip_region */ _cairo_pdf_surface_intersect_clip_path,