Commit graph

3883 commits

Author SHA1 Message Date
Søren Sandmann
12cc32b674 [pixman] Initial port to standalone pixman library. 2007-06-21 22:21:11 -07:00
Chris Wilson
9109946a1a [cairo-directfb] Correct minor typo.
Correct the reference to _cairo_directfb_surface_is_similar.
2007-06-21 15:40:23 +01:00
Nis Martensen
1e76aa66b2 Update INSTALL about status of backends 2007-06-19 11:48:43 -07:00
Carl Worth
02f753c23a Fix cairo-perf-diff to compile cairo-perf explicitly 2007-06-18 18:24:09 -07:00
Vladimir Vukicevic
2477e57de5 [perf] Add pixman_region_init_rects and use in extract_region
Avoid O(N*N) loop in traps_extract_region by letting us hand pixman
an array of rects all at once.
2007-06-18 14:02:41 -07:00
Chris Wilson
285b702ef6 [cairo-xlib-display] Hide XErrors during processing of the work queue.
It is possible for the resources that we defer freeing to be already
destroyed and trigger an XError whilst processing the work queue. For
example, the application renders to a Window and then destroys the
Drawable before proceeding with more rendering. This will trigger an
invalid Picture from RenderFreePicture whilst attempting to free the
resources.

By ignoring the possibility that the application could allocate a fresh
resource with the same ID, we can simply hide the XErrors...

Fixes: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=243811
2007-06-15 21:16:49 +01:00
Chris Wilson
7016614dd9 [cairo-xlib-surface] Check for errors before installing a NOOP error handler.
Call XSync before ignoring errors from XGetImage to avoid hiding
unassociated errors. Similarly, call XSync before reinstalling the old
error handler to ensure no errors creep out of the ignored section.
2007-06-15 21:00:50 +01:00
Ryan Lortie
0c5d28a4e5 [xlib] Create source xrender Picture with IncludeInferiors
When an xlib surface is used as the source of a draw operation this
will cause the contents of child windows to be included in the source
data.  The semantics of drawing to xlib surfaces are unchanged (ie:
draws are still clipped by child windows overlapping the destination
window).
2007-06-13 18:59:22 -04:00
Brian Ewins
817d4b0c9a [atsui] Document ATSUI
Add cairo_atsui_font_face_create_for_atsu_font_id
and ATSUI to the documentation. Don't enable it yet,
since this is still unsupported.
2007-06-13 01:27:37 +01:00
Brian Ewins
fd1edaa5d3 [quartz] remove unused code
clean up warnings about unused code: removing 
_cairo_quartz_cairo_path_to_quartz_path and the functions
it calls.
2007-06-13 01:27:36 +01:00
Brian Ewins
d7a0816ec3 [quartz] move glyph array declarations
Move declarations causing a warning. A separate patch from
the other warning cleanups because it moves where the allocation
happens.
2007-06-13 01:27:36 +01:00
Brian Ewins
bf39b28b77 commit 75be87b4093aaa7f477d587d5a68308cade1b29c
[quartz] move glyph array declarations

    Move declarations causing a warning. A separate patch from
    the other warning cleanups because it moves where the allocation
    happens.
2007-06-13 01:27:36 +01:00
Brian Ewins
2034d1dbd5 [quartz] pass quartz_stroke_t not CGContextRef
Fix a typo where an incompatible pointer was being passed.
2007-06-13 01:27:36 +01:00
Behdad Esfahbod
54bbe44b08 [TODO] Add link to Adrian's finer-grain fallback thread 2007-06-11 17:51:37 -04:00
Vladimir Vukicevic
ef3c64fd13 [misc] Blow away last remaining $Id$ directives in sources 2007-06-11 09:27:11 -07:00
Behdad Esfahbod
853f23e18c [test] Use check_PROGRAMS instead of custom made SUPPORT_PROGS
It better handles $(EXEEXT) and is exactly made for this purpose.
2007-06-11 02:42:04 -04:00
Behdad Esfahbod
1d86c7fa88 [perf] Link to librt if available
This is needed on Solaris, but also works on Linux.
2007-06-09 13:48:32 -04:00
Carl Worth
85d045f267 Update version to 1.4.9 after the 1.4.8 release. 2007-06-08 16:08:44 -07:00
Carl Worth
fea4f344c4 Update version to 1.4.8 (and libtool info to 13:4:11) 2007-06-08 15:49:12 -07:00
Carl Worth
0b19ff1d3f Add include of X11/Xlib.h to cairo-xlib-xrender.h
This makes this header file self-sufficient. Thanks to
Sam Sirlin <samuel.w.sirlin@jpl.nasa.gov> for pointing
this out.
2007-06-08 15:36:05 -07:00
Brian Ewins
8223c976d5 [NEWS] add note about quartz fixes
We've got 11 less failures in the quartz tests this time around,
worth a mention.
2007-06-08 01:56:10 +01:00
Vladimir Vukicevic
00063a65f7 [quartz] fix DO_IMAGE
The implementation of DO_IMAGE leaks memory via a referenced surface,
and wasn't applied for strokes and glyphs. This patch corrects those
issues.
2007-06-08 01:46:27 +01:00
Brian Ewins
39e6a0090f [quartz] fall back on extended gradients
A temporary fix for mozilla bug 379321, use an image fallback for
gradients that use EXTEND_REPEAT or EXTEND_REFLECT.
2007-06-08 01:46:27 +01:00
Brian Ewins
7c1afdcd59 [quartz] fixes the offsets in the font-matrix test
Apply the font matrix offset to text on the quartz surface, if necessary.
2007-06-08 01:46:26 +01:00
Brian Ewins
55f1dbd0fb [quartz] ensure that line widths are scaled.
cairo-gstate applies the ctm to the coordinates used in paths,
but not to the line width. In quartz this ends up drawing unscaled
lines. This is a minimal fix - it undoes the scaling applied to the
points and then draws the path scaled correctly.
2007-06-08 01:46:25 +01:00
Brian Ewins
5a9de1b5c9 [atsui] remove unused code
Remove CGAffineTransformMakeWithCairoFontScale.
2007-06-08 01:46:25 +01:00
Brian Ewins
807c5ab613 [atsui] clean up warnings
Refactor code to get rid of compiler warnings.
2007-06-08 01:46:24 +01:00
Brian Ewins
b210b09e2d [quartz] implement CAIRO_EXTEND_REFLECT
Implement extend-reflect by tiling a larger 2x2 grid of reflected
images.
2007-06-08 01:46:24 +01:00
Brian Ewins
fa5dd548b0 [quartz] implement CAIRO_EXTEND_NONE
Implement extend-none for surface patterns, by using a single
DrawImage where possible. There is some code duplication in this
patch, to make it easier to edit this patch series without conflicts.
A patch to remove duplicate code will be required later..
2007-06-08 01:46:23 +01:00
Brian Ewins
147288864c [quartz] Refactor code to create a CGImageRef from a pattern
In order to implement CAIRO_EXTEND_NONE we will need to create
a CGImageRef without also creating a CGPattern. Separate the two
pieces of code.
2007-06-08 01:46:23 +01:00
Carl Worth
a5ee983e1c Update release notes for 1.4.8 2007-06-07 15:03:43 -07:00
Carl Worth
e19c49269d Remove stale reference to cairo-xlib-test.h 2007-06-07 12:19:46 -07:00
Carl Worth
5ded4479d6 Fix return value of cairo_surface_write_to_png for unsupported formats
For some reason this was returning CAIRO_STATUS_NULL_POINTER.
Now fixed to return CAIRO_STATUS_INVALID_FORMAT.
2007-06-07 10:45:40 -07:00
Carl Worth
ec63a78394 Add CAIRO_INTERNAL_FORMAT_RGB16_565 and prefer it over deprecated CAIRO_FORMAT_RGB16_565
Also clarify the documentation for cairo_internal_format_t
2007-06-07 10:45:40 -07:00
Behdad Esfahbod
b6ee6c531c [NEWS] Add par about Chris 'ickle' Wilson's error-handling improvements work 2007-06-07 12:24:21 -04:00
Chris Wilson
2399f923d5 [cairo-bentley-ottmann] Malloc reduction.
Attempt to allocate the edges during tessellate_polygon() from the stack,
if the polygon size is sufficiently small and amalgamate the separate
allocations for the list of events and their sorted index into a single
block.
2007-06-06 08:35:50 +01:00
Chris Wilson
ecf6f7f514 [cairo-scaled-font] Skip the mask composition onto the surface on error.
If we fail to composite the glyph onto the mask, skip compositing the
mask onto the surface.
2007-06-06 08:35:38 +01:00
Chris Wilson
2e60029392 [cairo-ft-font] Markup error paths with _cairo_error().
Behdad Esfahbod noted that in ff5af0f540 I had introduce new error
paths without the appropriate _cairo_error(). So review cairo-ft-font
to ensure that _cairo_error() is called at the start of every error path,
as close to the originating error as possible.
2007-06-05 12:23:03 +01:00
Behdad Esfahbod
a5e12cd9f2 [ROADMAP] Add link for a8mask patch 2007-05-31 19:21:30 -04:00
Chris Wilson
ff5af0f540 [cairo-ft-font] Propagate error rather than asserting.
FT_Set_Char_Size can fail due to an out-of-memory condition, so
propagate the error status instead of asserting that it never fails.
2007-05-30 15:57:29 +01:00
Chris Wilson
de4dd4263c [cairo] Propagate surface->status on cairo_t creation.
Set the cairo_t status to be the surface->status when the context is
created, and special case the NO_MEMORY status in order to avoid a
redundant allocation.
2007-05-30 14:11:04 +01:00
Chris Wilson
9f4efa8a3a [cairo-ps-surface] Check status of glyph_lookup.
Check for failure of _cairo_scaled_glyph_lookup() before preceeding to
access the glyph and propagate the failure up the callstack as far as
possible.
2007-05-30 13:51:24 +01:00
Chris Wilson
8010d46de4 [cairo-gstate] Check scaled font status.
After using the public API to access the scaled font, which only sets
the status field in the font, check the scaled font status. This will
then correctly propagate errors during glyph loading to the context.
2007-05-30 08:47:14 +01:00
Chris Wilson
faf986bb25 [cairo-gstate] Check status on existing fonts.
Add an initial guard in _cairo_gstate_ensure_scaled_font() and
_cairo_gstate_ensure_font_face() to check that there is no prior
error status on the objects.
2007-05-30 08:46:32 +01:00
Vladimir Vukicevic
ac4b20082d [misc] make _cairo_image_surface_nil_invalid static const 2007-05-29 20:50:02 -07:00
Vladimir Vukicevic
0b34e958f1 [test] add XFAIL test surface-pattern-big-scale down
Add test for image downscaling with large images severely limiting
the destination coordinate space.  See the test for more information.
2007-05-29 17:14:41 -07:00
Kouhei Sutou
0898411d0a [doc] Minor documentation fixes 2007-05-28 17:05:40 -04:00
Luo jinghua
4da50dfa02 [cairo-xlib-surface]: flush work queue before sending glyphs to X server.
After introducing a work queue for deferred destruction of X resource
my firefox crashes over and over again because XRenderFreeGlyphs is trying
to free a non-exist glyph (already freed). The problematic call sequence is
something like below:
  XRenderAddGlyphs (20990204, 20069)
  XRenderAddGlyphs (20990204, 20069)
  XRenderFreeGlyphs (20990204, 20069)
  XRenderFreeGlyphs (20990204, 20069)
You can see the two add/free glyphs is interlaced. And obviously, we'll crash
at the last one. To fix this bug, we must be ensure here's no pending work
to free the glyph that we want to sent.
2007-05-27 17:09:49 +08:00
Brian Ewins
69bf823db1 [atsui] use ATSGlyphGetScreenMetrics to measure glyphs.
I don't know how I managed to get glyph measurement so badly wrong
before, but tracing paths was not necessary, and 6x slower. The fix
switches to using ATSGlyphGetScreenMetrics for all metrics, and remove 
the  old measuring code.
2007-05-26 00:49:30 +01:00
Chris Wilson
5b2b008048 [cairo-scaled-font-subsets] Shortcut empty subset.
If the font_subset if empty, avoid allocating zero bytes and iterating
over the empty hash table.
2007-05-25 12:39:37 +01:00