[cairo-commit] cairo/src cairo-ps-surface.c,1.64,1.65

Carl Worth commit at pdx.freedesktop.org
Wed Dec 21 17:08:31 PST 2005


Committed by: cworth

Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv25571/src

Modified Files:
	cairo-ps-surface.c 
Log Message:

2005-12-21  Carl Worth  <cworth at cworth.org>

        * src/cairo-ps-surface.c: Remove some unneeded backend functions
        (composite, fill_rectangles, composite_trapezoids,
        old_show_glyphs).


Index: cairo-ps-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-ps-surface.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- cairo-ps-surface.c	16 Dec 2005 11:02:35 -0000	1.64
+++ cairo-ps-surface.c	22 Dec 2005 01:08:29 -0000	1.65
@@ -249,82 +249,6 @@
 }
 
 static cairo_int_status_t
-_cairo_ps_surface_composite (cairo_operator_t	op,
-			     cairo_pattern_t	*src_pattern,
-			     cairo_pattern_t	*mask_pattern,
-			     void		*abstract_dst,
-			     int		src_x,
-			     int		src_y,
-			     int		mask_x,
-			     int		mask_y,
-			     int		dst_x,
-			     int		dst_y,
-			     unsigned int	width,
-			     unsigned int	height)
-{
-    cairo_ps_surface_t *surface = abstract_dst;
-
-    return _cairo_surface_composite (op,
-				     src_pattern,
-				     mask_pattern,
-				     surface->current_page,
-				     src_x,
-				     src_y,
-				     mask_x,
-				     mask_y,
-				     dst_x,
-				     dst_y,
-				     width,
-				     height);
-}
-
-static cairo_int_status_t
-_cairo_ps_surface_fill_rectangles (void			*abstract_surface,
-				   cairo_operator_t	op,
-				   const cairo_color_t	*color,
-				   cairo_rectangle_t	*rects,
-				   int			num_rects)
-{
-    cairo_ps_surface_t *surface = abstract_surface;
-
-    return _cairo_surface_fill_rectangles (surface->current_page,
-					   op,
-					   color,
-					   rects,
-					   num_rects);
-}
-
-static cairo_int_status_t
-_cairo_ps_surface_composite_trapezoids (cairo_operator_t	op,
-					cairo_pattern_t		*pattern,
-					void			*abstract_dst,
-					cairo_antialias_t	antialias,
-					int			x_src,
-					int			y_src,
-					int			x_dst,
-					int			y_dst,
-					unsigned int		width,
-					unsigned int		height,
-					cairo_trapezoid_t	*traps,
-					int			num_traps)
-{
-    cairo_ps_surface_t *surface = abstract_dst;
-
-    return _cairo_surface_composite_trapezoids (op,
-						pattern,
-						surface->current_page,
-						antialias,
-						x_src,
-						y_src,
-						x_dst,
-						y_dst,
-						width,
-						height,
-						traps,
-						num_traps);
-}
-
-static cairo_int_status_t
 _cairo_ps_surface_copy_page (void *abstract_surface)
 {
     cairo_ps_surface_t *surface = abstract_surface;
@@ -426,50 +350,6 @@
 }
 
 static cairo_int_status_t
-_cairo_ps_surface_old_show_glyphs (cairo_scaled_font_t	*scaled_font,
-				   cairo_operator_t	 op,
-				   cairo_pattern_t	*pattern,
-				   void			*abstract_surface,
-				   int			 source_x,
-				   int			 source_y,
-				   int			 dest_x,
-				   int			 dest_y,
-				   unsigned int		 width,
-				   unsigned int		 height,
-				   const cairo_glyph_t	*glyphs,
-				   int			 num_glyphs)
-{
-    cairo_ps_surface_t *surface = abstract_surface;
-    cairo_font_subset_t *subset;
-    int i;
-
-    /* XXX: Need to fix this to work with a general cairo_scaled_font_t. */
-    if (! _cairo_scaled_font_is_ft (scaled_font))
-	return CAIRO_INT_STATUS_UNSUPPORTED;
-
-    /* Collect font subset info as we go. */
-    subset = _cairo_ps_surface_get_font (surface, scaled_font);
-    if (subset == NULL)
-	return CAIRO_STATUS_NO_MEMORY;
-
-    for (i = 0; i < num_glyphs; i++)
-	_cairo_font_subset_use_glyph (subset, glyphs[i].index);
-
-    return _cairo_surface_old_show_glyphs (scaled_font,
-					   op,
-					   pattern,
-					   surface->current_page,
-					   source_x,
-					   source_y,
-					   dest_x,
-					   dest_y,
-					   width,
-					   height,
-					   glyphs,
-					   num_glyphs);
-}
-
-static cairo_int_status_t
 _cairo_ps_surface_paint (void			*abstract_surface,
 			 cairo_operator_t	 op,
 			 cairo_pattern_t	*source)
@@ -569,15 +449,15 @@
     NULL, /* acquire_dest_image */
     NULL, /* release_dest_image */
     NULL, /* clone_similar */
-    _cairo_ps_surface_composite,
-    _cairo_ps_surface_fill_rectangles,
-    _cairo_ps_surface_composite_trapezoids,
+    NULL, /* composite */
+    NULL, /* fill_rectangles */
+    NULL, /* composite_trapezoids */
     _cairo_ps_surface_copy_page,
     _cairo_ps_surface_show_page,
     NULL, /* set_clip_region */
     _cairo_ps_surface_intersect_clip_path,
     _cairo_ps_surface_get_extents,
-    _cairo_ps_surface_old_show_glyphs,
+    NULL, /* old_show_glyphs */
     NULL, /* get_font_options */
     NULL, /* flush */
     NULL, /* mark_dirty_rectangle */



More information about the cairo-commit mailing list