Commit graph

1813 commits

Author SHA1 Message Date
Emmanuel Pacaud
e5ea8268b0 SVG: Reenable optimisation of CLEAR and SOURCE in paint when there's
no active clipping path.
2006-05-01 22:49:58 +02:00
Emmanuel Pacaud
55685d7173 SVG: Code cleanup. 2006-05-01 22:49:29 +02:00
Emmanuel Pacaud
926bb6480c SVG: Initial support of operators support via image fallbacks.
We need to add a public API that will let user select
a compatibility level regarding produced SVG files.

This patch also plugs a memleak.
2006-05-01 22:47:41 +02:00
Emmanuel Pacaud
061d508898 SVG: Sort of working implementation of a SVG backend with paginated surface
support.

        Unoptimized and with memory leaks.
2006-05-01 22:43:15 +02:00
Emmanuel Pacaud
59dcb95ce5 SVG: First pass for analyze-surface support 2006-05-01 22:41:12 +02:00
Emmanuel Pacaud
0625d4cd3f SVG: Ignore SVG test files. 2006-05-01 22:15:38 +02:00
Emmanuel Pacaud
d1dcbbb8c3 SVG: Update rgb24 reference files.
(cherry picked from 7173951535f4b95da37cbf3d51143deeec95e47a commit)
2006-05-01 22:13:18 +02:00
Emmanuel Pacaud
bdc1c1ac78 Copy content property when doing a snapshot of a meta surface. 2006-05-01 22:12:20 +02:00
Emmanuel Pacaud
6a33993b15 Merge branch 'origin' 2006-05-01 22:01:38 +02:00
Emmanuel Pacaud
b920dfd3df SVG: Reenable operator tests, and rgb24 surface are meta-surfaces. 2006-05-01 21:59:53 +02:00
Carl Worth
3aa5d76d23 Add missing file leaky-dash-ref.png 2006-04-29 14:28:21 -07:00
Henning Noren
516ac16de1 Fix PS Surface Memleak
Fixes leak of 16 bytes when calling _cairo_ps_surface_finish by never freeing
the closure allocated in _word_wrap_stream_create.
2006-04-28 07:04:56 -07:00
Carl Worth
9729fe6024 Add line-width-scale test to demonstrate cairo_set_line_width bug 2006-04-27 11:45:38 -07:00
Carl Worth
5821d88119 Correct documentation to say "user space", not "user-space" where appropriate. 2006-04-27 11:45:26 -07:00
Emmanuel Pacaud
5515191f84 Use CLEAR operator in mask.c in order to not trig image fallback
for polygon masking.
(cherry picked from 30b2d1c5df9d1c6b536838a6a3407fdfa7198e29 commit)
2006-04-27 06:50:37 -07:00
Emmanuel Pacaud
9bca27a1ad Optimisation of CLEAR operator in meta-surface.
This optimisation takes care to not replay what was done
before surface is cleared. We don't erase recorded commands
since we may have earlier snapshots of this surface.
(cherry picked from 926e2494ca2211e9117ab70fc427208d125e1bd5 commit)
2006-04-27 06:39:41 -07:00
Emmanuel Pacaud
a732058920 Implement paginated create_similar, moving similar images down to PS and PDF.
The new paginated create_similar simply forwards to target backend create_similar.

We maintain the fact that PS and PDF surfaces are returning image
surfaces for create_similar by moving that explicitly to their own
create_similar functions.

(This commit is the combination of the following original commits:

	6b69e8c012adb4f2fc2ee9c1579fed8214e8f510
	2589db92a4395f8e900dbc4eafc45982f0d985d3
)
2006-04-27 06:36:16 -07:00
Carl Worth
e1be80b020 paginated: Remove memory leak of analysis surface from _paint_page
Thanks to Henning Noren <henning.noren.402@student.lu.se> for pointing this out.
2006-04-27 06:02:46 -07:00
Carl Worth
09a51a4e03 Add reference to cairo_surface_set_user_data in docs. for cairo_image_surface_create_for_data 2006-04-27 05:44:57 -07:00
Carl Worth
08733a2228 Move 1.4 schedule up. Add more bugs from sunmoon1997
To hit the Firefox 3 schedule in early 2007 we'll need to have a 1.4 release
out much sooner. Let's shoot for October 2006 which gives 6 months between
1.2 and 1.4.

Also, sunmoon1997 has identified a couple more important issues to be fixed
before 1.2 releases.
2006-04-26 21:22:58 -07:00
Carl Worth
b10a0a9a21 Add a couple more items to the 1.2.0 ROADMAP 2006-04-26 16:43:59 -07:00
Carl Worth
c7a45ab49b Update ROADMAP with suggestions from discussion of 1.1.2 snapshot 2006-04-26 16:43:58 -07:00
Christian Biesinger
9ab4b81a09 Use a single LDADD variable instead of a per-test one
to avoid repeating the list of tests.
2006-04-27 00:51:01 +02:00
Carl Worth
7601a07ae9 Remove cairo.def from the generated tar file. It's not useful there. 2006-04-26 14:34:02 -07:00
Behdad Esfahbod
74ec21b2a7 WIN32: Define SHADEBLENDCAPS and SB_NONE if they are not defined. (from Tor Lillqvist)
(cherry picked from d3ff5228a2 commit)
2006-04-26 14:31:36 -07:00
Carl Worth
e0a2e1fd14 Add leaky-dash test case demonstrating bug #4863.
Test case for bug #4863:

	stroking problems with wide dashed lines
	https://bugs.freedesktop.org/show_bug.cgi?id=4863
2006-04-26 12:51:54 -07:00
Carl Worth
e4b3cb1e71 Remove deleted reference images from Makefile.am 2006-04-26 12:49:58 -07:00
Carl Worth
7110c168f7 Remove redeundant -rgb24-ref.png images.
In several cases the -rgb24 reference images were identical to the -ref images.
So we change the logic to find the latter if the former doesn't exist, and then
we remove the redundant images.
2006-04-26 12:36:22 -07:00
Zhe Su
fe8bf47afc Support fontconfig embeddedbitmap option/handle transformation issue as well. 2006-04-25 10:20:42 -07:00
Carl Worth
90b7a2d5fc Increment CAIRO_VERSION to 1.1.3 after making the 1.1.2 snapshot 2006-04-25 09:47:30 -07:00
Carl Worth
d5dd5e6ebc Remove from EXTRA_DIST reference images which don't exist 2006-04-25 09:12:30 -07:00
Carl Worth
e89de1030e Change release targets as appropriate for a snapshot, not a release.
The big change here is to change the upload directory to be the snapshots directory
rather than the releases directory. We also use make dist rather than make distcheck
since there are currently a few tests still failing.
2006-04-25 08:56:23 -07:00
Carl Worth
3d6cdc996f Add release vs. snapshot distinction to version increment instructions 2006-04-25 08:54:59 -07:00
Carl Worth
68c5382b6c Increment CAIRO_VERSION to 1.1.2 and libtool versioning to 6:0:4 2006-04-25 08:51:08 -07:00
Carl Worth
3002c6cc8b Add some notes for the 1.1.2 snapshot 2006-04-25 08:44:45 -07:00
Carl Worth
a0df6fa696 Update PS and PDF reference images for change in font options 2006-04-25 07:07:48 -07:00
Carl Worth
6237437f41 Merge branch 'behdad-colored-fails' into cairo 2006-04-25 07:02:41 -07:00
Behdad Esfahbod
f1c3754753 Use white on red for failures. 2006-04-25 09:58:48 -04:00
Behdad Esfahbod
9668b6592f Set background color to red for test failures printing on a terminal. 2006-04-25 09:03:26 -04:00
Carl Worth
22ab0e5f16 Fix default font options for PS and PDF backends.
The paginated surface layer was missing its get_font_options function.
It now defers to the target surface. The PDF backend already had a
get_font_options function, but the PS backend was also missing it.

This should fix the problem with 72DPI hinting seen in glyph paths in
PostScript output.

Thanks to Owen Taylor for identifying this problem and the correct
fix.
2006-04-25 05:44:08 -07:00
Behdad Esfahbod
6723547f00 Merge branch 'configure-backends' 2006-04-25 08:28:59 -04:00
Behdad Esfahbod
e912512c6d Better message when backends are disabled. 2006-04-25 08:26:35 -04:00
Behdad Esfahbod
05fc4ca323 Unified handling of --enable-backend options. 2006-04-25 07:30:16 -04:00
Keith Packard
8d635a3aa9 PDF: Execute entire path in user coordinates when stroking so that line params are interpreted correctly 2006-04-25 04:04:10 -07:00
Carl Worth
134c508bf0 PDF: Add SMask output and simplify analysis to support all OVER operations.
With this SMask support, the PDF backend is now able to handle a very
large subset of the things that are likely to be thrown at it in
common operation, (for example, when handling images and text from web
pages).
2006-04-25 03:45:37 -07:00
Carl Worth
c072119043 PDF: Remove unused backend functions.
Since the switch to using paginated, we have a guarantee that the following functions
will never be called. So we drop them now:

	_cairo_pdf_surface_composite
	_cairo_pdf_surface_fill_rectangles
	_cairo_pdf_surface_composite_trapezoids
	_cairo_pdf_surface_old_show_glyphs
2006-04-25 03:26:25 -07:00
Carl Worth
bef621e870 Augment tests to do better testing of paths/images with alpha.
Add a new cairo_test_paint_checkered function so that tests that draw
with alpha can easily put an easy-to-see checkered background in place
first.

Add new tests caps-joins-alpha and paint-source-alpha that do simple
tests of strokes and image painting with source pattern alpha.

Also, add the checkered background to paint-with-alpha for
consistency.
2006-04-25 01:56:51 -07:00
Carl Worth
a5afc59d0a Add PDF-specific reference image for scale-source-surface-paint
It only fails because the PDF ouput doesn't preserve the NEAREST filter attribute.
There might be a way to get something like this in the PDF, but it's not the point
of the test.
2006-04-24 16:16:19 -07:00
Carl Worth
32a7edc42d PDF: Fix surface pattern transformation and support for EXTEND_NONE.
There's a bunch of careful matrix transformation here needed to
resolve the differences between cairo and PDF pattern matrices,
(primarily due to the different location for the origin).

This fixes the several PDF test suite failures that recently appeared
when we switched from ARGB32 to RGB24 source surface patterns.
2006-04-24 16:11:21 -07:00
Carl Worth
a1bba71eb9 Trivial indentation fix 2006-04-24 14:51:31 -07:00