Commit graph

8275 commits

Author SHA1 Message Date
Chris Wilson
bf83bf00a7 test: Add subsurface-image-repeat
Test handling of source clipping with an image - principally to check
handling of mime types and zero-copy image snapshotting in the vector
surfaces and ensure that they work with subsurface patterns as well.
2010-05-06 10:53:48 +01:00
Chris Wilson
88986fdbef xlib: Remove reference counting for cairo_xlib_screen_t
The screen is owned by the cairo_xlib_display_t device, so we can
simplify and close the refleak by removing the surplus reference
counting.
2010-05-06 10:46:49 +01:00
Chris Wilson
632fabc77d xlib: Convert visual array to a cairo_list_t
It's simpler and more memory efficient.
2010-05-06 10:10:38 +01:00
Chris Wilson
20d75bdadc xlib: Remove screen->has_render
Use the info from the display instead.
2010-05-06 10:03:36 +01:00
Chris Wilson
9e0b716ecf xlib: Remove obsolete comment, there is no race anymore
The display lock is now held for the duration of the screen creation, so
there is no race. Remove the false comment.
2010-05-06 09:58:46 +01:00
Chris Wilson
62346c500a xlib: Ensure the global display mutex is initialized before use. 2010-05-06 09:37:02 +01:00
Chris Wilson
fb6caf08ae image: Propagate error instead of asserting.
Apparently we can get to this point without evaluating the clip surface,
so return the error status rather than assert.
2010-05-06 09:30:41 +01:00
Chris Wilson
5e95c62bbb clip: Propagate failure from retrieving the previous clip surface. 2010-05-06 09:10:55 +01:00
Chris Wilson
a6ee7aea8a test: Add xlib-expose-event.image16.ref.png 2010-05-05 19:04:13 +01:00
Chris Wilson
ded2dc8faa scaled-font: Pluck last glyph from the most recent page.
In converting to cairo_list_t, it helps to preserve the semantics of
appending the page to the end of the list where it is expected to be
plucked in the event of an allocation failure.
2010-05-05 18:07:29 +01:00
Adrian Johnson
fa937913e0 PS: Add missing 'q' when resetting clip path 2010-05-05 21:44:33 +09:30
Benjamin Otte
9c594d8b40 gl: Get rid of ctx variable
The code used renderer->ctx and ctx interchangably, that was confusing.
2010-05-05 12:30:01 +02:00
Benjamin Otte
a354f1f92a gl: Another case of proper device acquiring
This patch isn't strictly necessary, but it cleans up the code.
2010-05-05 12:30:01 +02:00
Benjamin Otte
36210ee514 gl: Get rid of another cast to cairo_gl_context_t 2010-05-05 12:30:01 +02:00
Benjamin Otte
58b03691d3 gl: Introduce _cairo_gl_device_has_glsl() function
The function takes a cairo_device_t argument as it can be called on an
unacquired device.

This is the first patch in a process to try to rid cairo-gl-surface.c of
casts from cairo_device_t to cairo_gl_context_t. As its members should
usually only be accessed when the device is locked, the only way the
cairo_gl_context_t should be acquired is using
_cairo_gl_context_acquire().
2010-05-05 12:30:01 +02:00
Benjamin Otte
5223b65423 gl: Get rid of cairo_gl_surface_glfinish() from public API
This is now done explicitly in the boilerplate code. It was not a useful
public API to begin with.
2010-05-05 12:30:01 +02:00
Benjamin Otte
e071fa2c4f gl: Remove unused member variable 2010-05-05 12:30:01 +02:00
Benjamin Otte
90c64f60d8 gl: Move device-specific code into cairo-gl-device.c 2010-05-05 12:30:01 +02:00
Benjamin Otte
0ff5a18fd5 gl: Make _gl_set_destination() take the context as an argument
Keeping with the API introduced for Xlib, functions that require an
acquired context take this context as the first argument.
2010-05-05 12:30:01 +02:00
Benjamin Otte
e8c5b6b1c2 Fix typo in docs 2010-05-05 12:30:01 +02:00
Benjamin Otte
53508e6e30 gl: Acquire the context before destroying it. 2010-05-05 12:30:01 +02:00
Benjamin Otte
c46aec4897 gl: acquire/release context during surface_finish() 2010-05-05 12:30:01 +02:00
Benjamin Otte
88801aabb3 gl: Acquire context when initing/destroying gl operands 2010-05-05 12:30:00 +02:00
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