Commit graph

8252 commits

Author SHA1 Message Date
Chris Wilson
c6d7d054ca test: Add radial-gradient-mask
Exercise using radial gradients as a mask.
2010-05-05 10:44:43 +01:00
Chris Wilson
5f878f9179 clip: Trivial compiler warning
cairo-clip.c: In function ‘_cairo_clip_path_reapply_clip_path_translate’:
cairo-clip.c:446: warning: suggest parentheses around assignment used as
truth value
2010-05-05 10:24:14 +01:00
Chris Wilson
840dad765f test/mask-glyphs: Check for memfault 2010-05-05 10:17:38 +01:00
Chris Wilson
ad541a1ec6 clip: Propagate memfault from translating clip region 2010-05-05 09:46:35 +01:00
Chris Wilson
4bc54643f5 image: Propagate failure from pixman_image_set_clip_region() 2010-05-05 09:46:35 +01:00
Chris Wilson
9ef33a1d8c test/bitmap-font: Destroy FcPattern 2010-05-05 09:46:34 +01:00
Chris Wilson
fba4cf1d94 recording: Mark an empty recording surface as clear. 2010-05-05 09:25:25 +01:00
Chris Wilson
e532980539 recording: Avoid refcycles by always copying the command array.
Short-term solution to avoid the refleaks and to make the test suite
happy. A more elegant solution would be to track the references and
avoid the substantial memory overhead of copying the recording surfaces.

Thanks to Benjamin Otte for pointing out the solution to avoiding
refcycles.
2010-05-05 09:23:59 +01:00
Chris Wilson
6a06e0ef7b test/subsurface-modify-parent: Free region.
Minor refleak.
2010-05-05 09:17:33 +01:00
Chris Wilson
4a46c71556 type3: Minor tweaks to remove a redundant check. 2010-05-04 18:53:50 +01:00
Chris Wilson
11531b90a2 ps: Force finish of the type3 glyph surfaces. 2010-05-04 18:53:50 +01:00
Chris Wilson
5155ebeaa2 pdf: Assert that no other error can occur for an invertible matrix. 2010-05-04 18:53:50 +01:00
Chris Wilson
d9259bd068 paginated: Mark as clear initially. 2010-05-04 18:53:50 +01:00
Chris Wilson
bc14e0e953 scaled-font: Convert to cairo_list_t
Convert the open-coded doubly-linked list of glyph pages for a font into
the common cairo_list_t.
2010-05-04 18:53:03 +01:00
Chris Wilson
627527693c ps: Remove the fill stroke command
This is not supported by PostScript, so eliminate it from the prologue.
2010-05-04 18:53:03 +01:00
Chris Wilson
4dd92ef2bc test: Add subsurface-pad
Round out the subsurface tests with PAD.
2010-05-04 18:53:03 +01:00
Chris Wilson
85e3cffde1 test: Add subsurface-modify-{child,parent}
Add tests to ensure that modifications to the subsurface via the
original surface are tracked by the subsurface, i.e. that any snapshots
are detached upon modification of the parent as well as modification of
itself and vice versa.
2010-05-04 18:53:03 +01:00
Chris Wilson
19ac81f50b scaled-font: Remove MRU cache upon detection of error. 2010-05-04 18:26:06 +01:00
Chris Wilson
6f2d4f5b2a image: Propagate failure from pixman_image_fill_boxes(). 2010-05-04 18:26:06 +01:00
Chris Wilson
ded7be0b9c test/user-font-rescale: Use after free and check for memfault. 2010-05-04 18:26:06 +01:00
Chris Wilson
b0052c5215 test/bitmap-font: Propagate memfault 2010-05-04 18:26:00 +01:00
Chris Wilson
9187c75327 test/bitmap-font: Check for memfault error 2010-05-04 13:28:37 +01:00
Chris Wilson
0fced92792 test/user-font-proxy: Check we install user data on the scaled font 2010-05-04 13:28:37 +01:00
Chris Wilson
38188961b9 image: Check for pixman image allocation failure during glyphs 2010-05-04 13:28:37 +01:00
Chris Wilson
4a181ebac4 pdf: Cleanup local reference to source on error paths. 2010-05-04 13:28:37 +01:00
Chris Wilson
ba48edcd86 ps: Always cleanup used font subsets. 2010-05-04 13:28:37 +01:00
Chris Wilson
9a0958be01 test: Cleanup after failed pthread_join(). 2010-05-04 13:28:36 +01:00
Chris Wilson
08b9984da9 image: Replace assert with error return
It is possible to encounter an allocation failure here since we may have
tweaked the clip since the last evaluation of the clip region.
2010-05-04 13:28:36 +01:00
Chris Wilson
2c68fcace4 test: Embed the list pointer into cairo_test_t
Reduce the amount of output printed by leak-detectors when a test
crashes.
2010-05-04 13:28:36 +01:00
Chris Wilson
7002b82472 xlib: Don't delete gradients in unbounded fixup code
The fix is ugly, but for now it works.
2010-05-04 13:53:02 +02:00
Chris Wilson
af26560f25 test: Improve memfault behaviour.
Various minor tweaks to convert asserts into error returns and to
improve error checking on intermediate surfaces.
2010-05-03 19:21:59 +01:00
Chris Wilson
c549203c8d scaled-font: Check for an error return when retrieving the implementation 2010-05-03 19:21:18 +01:00
Chris Wilson
c93e6f014d paginated: propagate malloc failures more cleanly. 2010-05-03 19:20:42 +01:00
Chris Wilson
8e9fd9c017 image: A few missing tests for malloc failure 2010-05-03 19:20:07 +01:00
Chris Wilson
87781ffbd9 ft: Convert an assert into an unlikely error return.
The assert depends upon good behaviour from fontconfig, which is no
guaranteed under memfault, so return an error instead.
2010-05-03 19:18:49 +01:00
Benjamin Otte
5672b7a18a fallback: get src_x/y variables right when compositing traps 2010-05-03 13:37:19 +02:00
Dave Yeo
c10a5a9fb0 os2: Fix get_extents() segfaulting.
bed2701e1c removed one line too much.
2010-05-03 10:20:51 +02:00
Benjamin Otte
9df81fe4d3 boilerplate: don't compile pdf test code when pdf is not tested
Avoids gcc warnings when libpoppler version isn't good enough.
2010-05-02 20:00:08 +02:00
Benjamin Otte
358f57c876 image: remove useless optimization
The optimization is done way smarter inside
_cairo_matrix_transform_bounding_box()
2010-04-30 23:35:48 +02:00
Benjamin Otte
94aa6d24b6 fallback: Create pixman image for correct rectangle
This was most prominently shown by the a1-image-sample test, but
multiple tests exposed the problem with the xlib-fallback code.
2010-04-30 23:35:48 +02:00
Carlos Garcia Campos
41fecf8e66 [configure] Bump poppler dependency to 0.13.3 2010-04-30 21:20:11 +02:00
Benjamin Otte
3294daf423 Create cleared surface instead of a scratch surface in clone_similar()
A cleared surface is needed when playing back a recording surface that
has semi-transparent operations.
As this only affects surface types where scratch surfaces aren't already
cleared (ie it affected xlib but not image), the effect was only visible
for those backends.
This should not cause any performance regressions as the other backends
set surface->clear = TRUE when creating the scratch surface, so the
clear operation is effectively a no-op.

Covered by the existing pdf-surface-source and svg-surface-source tests.
2010-04-30 20:19:08 +02:00
Carlos Garcia Campos
0aeb612d2f [test] Update pdf reference image for text-rotate 2010-04-30 20:00:52 +02:00
Carlos Garcia Campos
fe28444647 [test] Update pdf reference image for surface-pattern-scale-down 2010-04-30 20:00:52 +02:00
Carlos Garcia Campos
dba6f23318 [test] Update pdf reference image for leaky-dashed-rectangle 2010-04-30 20:00:52 +02:00
Carlos Garcia Campos
6b81187ac4 [test] Update pdf reference images for clip-operator 2010-04-30 20:00:52 +02:00
Chris Wilson
b485ae5b90 atomic: Add Andrea's copyright notice
Note Andrea's copyright for his contribution of platform agnostic
fallbacks and the implementation for MacOS/X.
2010-04-30 14:14:01 +01:00
Chris Wilson
4ee5119a34 test: Expand pthread-show-text to cover all surfaces.
In a similar fashion to pthread-same-source and pthread-similar, check
that the texting handling is thread-safe for all surface and font
backends.
2010-04-30 13:00:05 +01:00
Chris Wilson
c6dc8ad7dc Revert "paginated: Call surface finish explicitly on recording surface"
This reverts commit 5fc04bba9f.

Whilst this fixes the self-referential reference leak, it however
introduces use-after-finish into normal behaviour. Close, but not quite.
2010-04-30 12:39:59 +01:00
Chris Wilson
b972669c9a boilerplate: Fix use after free from 3ae5723
If we want to access the surface during the cleanup, we must hold our
own reference to it. Make it so for the forced finish of the recording
surface.
2010-04-30 12:39:59 +01:00