[cairo-commit] cairo/src cairo-paginated-surface.c, 1.1, 1.2 test-meta-surface.c, 1.2, 1.3

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


Committed by: cworth

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

Modified Files:
	cairo-paginated-surface.c test-meta-surface.c 
Log Message:

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

        * src/test-meta-surface.c:
        * src/cairo-paginated-surface.c: Don't implement create_similar
        for the test-meta or the paginated surface. This was slowing
        things down a _lot_ (about 11× for the mask test for example)
        without any improvement in output quality. We can revisit this
        again later if there's any output improvement to be had down the
        road.


Index: cairo-paginated-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-paginated-surface.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- cairo-paginated-surface.c	22 Dec 2005 00:46:44 -0000	1.1
+++ cairo-paginated-surface.c	22 Dec 2005 01:04:01 -0000	1.2
@@ -115,15 +115,6 @@
     return (cairo_surface_t*) &_cairo_surface_nil;
 }
 
-static cairo_surface_t *
-_cairo_paginated_surface_create_similar (void			*abstract_surface,
-					 cairo_content_t	 content,
-					 int			 width,
-					 int			 height)
-{
-    return _cairo_meta_surface_create (width, height);
-}
-
 static cairo_status_t
 _cairo_paginated_surface_finish (void *abstract_surface)
 {
@@ -307,7 +298,7 @@
 }
 
 const cairo_surface_backend_t cairo_paginated_surface_backend = {
-    _cairo_paginated_surface_create_similar,
+    NULL, /* create_similar */
     _cairo_paginated_surface_finish,
     _cairo_paginated_surface_acquire_source_image,
     _cairo_paginated_surface_release_source_image,

Index: test-meta-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/src/test-meta-surface.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- test-meta-surface.c	20 Dec 2005 18:30:11 -0000	1.2
+++ test-meta-surface.c	22 Dec 2005 01:04:02 -0000	1.3
@@ -101,18 +101,6 @@
     return (cairo_surface_t*) &_cairo_surface_nil;
 }
 
-static cairo_surface_t *
-_test_meta_surface_create_similar (void			*abstract_surface,
-				   cairo_content_t	 content,
-				   int			 width,
-				   int			 height)
-{
-    assert (CAIRO_CONTENT_VALID (content));
-
-    return _test_meta_surface_create (_cairo_format_from_content (content),
-				      width, height);
-}
-
 static cairo_status_t
 _test_meta_surface_finish (void *abstract_surface)
 {
@@ -307,7 +295,7 @@
 }
 
 const cairo_surface_backend_t test_meta_surface_backend = {
-    _test_meta_surface_create_similar,
+    NULL, /* create_similar */
     _test_meta_surface_finish,
     _test_meta_surface_acquire_source_image,
     _test_meta_surface_release_source_image,



More information about the cairo-commit mailing list