Commit graph

3575 commits

Author SHA1 Message Date
Behdad Esfahbod
f56582ef06 Put back __inline definition for MSC compilers, in both cairo and pixman
Apparently it's too much to expect people compiling on windows to fill
in sensible values for config.h... /sigh
2007-04-18 17:55:05 -04:00
Behdad Esfahbod
a54b6ed078 [pixman] Rename icint.h to pixmanint.h 2007-04-18 17:54:57 -04:00
Behdad Esfahbod
48121e97ac [cairoint.h] Define WARN_UNUSED_RESULT if undefined 2007-04-18 17:06:48 -04:00
Chris Wilson
a396e0b057 cairo-perf - add the missing newline.
Oops, missed out the newline for the fprintf in the previous commit.
2007-04-18 14:24:10 +01:00
Chris Wilson
383e9d5368 cairo-perf - Check that the surface is created.
Exit(1) if we fail to create the target surface.
2007-04-18 14:13:42 +01:00
Dave Yeo
7131f4e6ae [OS2] Fix #include "cairo-mutex-list-private.h" 2007-04-17 15:30:20 -04:00
Mathias Hasselmann
f7a2787685 Merge branch 'master' of git+ssh://hasselmm@git.freedesktop.org/git/cairo 2007-04-16 23:05:10 +02:00
Chris Wilson
cab4d41cae create-for-stream - free resources after test failure.
create-for-stream often fails whilst running under valgrind due to the
postscript output containing a CreationDate with seconds resolution,
hence the visibility of the resource leaks during failure.
2007-04-16 16:57:24 +01:00
Chris Wilson
9d435d5fbf Add suppression for leak from XauFileName.
The string is statically allocated by XauFileName() and so ignore the fact
that is not freed upon termination.
2007-04-16 15:44:28 +01:00
Chris Wilson
3a3fb0031d Update .gitignore
Add .*.sw? (vim swapfiles).
Add *~ (backup files).
Add *.gcno and *.gcda (gcov intermediates).
2007-04-16 15:08:54 +01:00
Kouhei Sutou
7ff95c7230 Support MinGW DLL compilation 2007-04-16 02:48:14 -04:00
Chris Wilson
ca9df759b4 Change of email address.
Update to my new email address and drop my old work one.
2007-04-14 15:28:29 +01:00
Carl Worth
96ee8d5ebe Update version to 1.4.5 after the 1.4.4 release 2007-04-13 17:47:25 -07:00
Carl Worth
ebba4a6d14 Increment version to 1.4.4 (and library versioning to 13:2:11) 2007-04-13 17:37:14 -07:00
Carl Worth
e21a58ce4c NEWS: Add notes for cairo 1.4.4 2007-04-13 17:36:31 -07:00
Carl Worth
e1a1f6ff25 AUTHORS: Update descriptions for Mathias Hasselmann and Chris Wilson
Both have contributed a tremendous amount of effort to cairo 1.4.4.
Well done!
2007-04-13 16:37:52 -07:00
Carl Worth
ef3e13337e cairo-perf-diff: Use median not minimum to report differences
Ideally, the minimum value would indicate the best possible performance,
but I've encountered situations where a bogus minimum value gets lodged
into the cached results for some reason, (and yet doesn't also get
discarded as an outlier). The downside of that situation is that running
more iterations never changes the result, so it's hard to fix the problem,
(resulting in cairo-perf-diff feeling just plain broken as more runs
change nothing).

So let's try using the median time instead.
2007-04-13 13:36:49 -07:00
Behdad Esfahbod
7ead3e64f1 [ROADMAP] Put back bug 10508 into 1.4.4 roadmap and mark it fixed
Yay!
2007-04-13 16:34:31 -04:00
Behdad Esfahbod
84c10a79ff [cairo-pattern] Slightly hackish fix for bug #10508
The so-attributed-to-X-server bug was that cairo maps the drawing
region to the pattern space, rounds the box, and uploads only that
part of the source surface to the X server.  Well, this only works for
NEAREST filter as any more sophisticated filter needs to sneak a peek
at the neighboring pixels around the edges too.

The right fix involves taking into account the filter used, and the
pattern matrix, but for most cases, a single pixel should be enough.
Not sure about scaling down...

Anyway, this is just a workaround to get 1.4.4 out of the door.  I'll
commit a proper fix soon.
2007-04-13 16:33:33 -04:00
Carl Worth
fcf49a5613 boilerplate: Cleanup conditional compilation ofcairo-quartz-boilerplate.c
It's much nicer to use automake to conditionally compile a file,
instead of always compiling it and conditionally having the compiler
see an empty file.
2007-04-13 12:02:11 -07:00
Carl Worth
cea107c980 Punt bug #10508 off of 1.4.4
It looks like this is an X server bug, and we don't have an
imminent fix. Meanwhile, the bug is avoidable by preferring
to use xlib surface sources for transformed rendering to xlib
instead of using image surface sources.
2007-04-13 11:29:09 -07:00
Behdad Esfahbod
4e3be54861 [cairo-pattern] Add a TODO item to code 2007-04-12 21:38:25 -04:00
Carl Worth
ec639449de Fix typo in loop control for computation of std. deviation
Thanks to Chris Wilson for pointing out this problem.
2007-04-12 18:16:52 -07:00
Carl Worth
537a795b3b Remove ft-text-vertical-layout-type1
This test can fail if the wrong font is loaded, but that's no
different than many other text tests---so it doesn't really
deserve special XFAIL treatment because of that.
2007-04-12 18:13:50 -07:00
Behdad Esfahbod
04164c996c [cairo-surface] Make sure cairo_surface_get_font_options() fully initializes
the font_options passed in.
2007-04-12 20:14:23 -04:00
Behdad Esfahbod
7224e1a6e6 [image] Set hint-metrics on in default font options 2007-04-12 18:49:38 -04:00
Behdad Esfahbod
57434e249a [xlib] Turn metrics-hinting on by default 2007-04-12 18:49:38 -04:00
Chris Wilson
8a4c108a4b Add a reference count to cairo_xlib_screen_info_t
Due to the interaction between multiple threads showing glyphs and
asynchronous CloseDisplays, it is possible for a font to maintain a
cairo_xlib_screen_info_t beyond the CloseDisplay. The simple solution
is to add a reference count in order to track the lifetime of the
cairo_xlib_screen_info_t correctly.
2007-04-12 23:31:37 +01:00
Carl Worth
50ef5bcf7b Revert cairo_public_warn addition to cairo.h
This new feature isn't appropriate for a minor cairo release,
(we're between 1.4.2 and 1.4.4 right now), but will make a
lot of sense during 1.5.

The code being reverted here was originally added with the
following commit:

	46eab95698

but this change reverts only the public-facing parts of it.
2007-04-12 13:46:03 -07:00
Chris Wilson
35bb2152c0 Hold the scaled_font->mutex whilst operating on the shared members.
Obey the locking rules whilst resetting the scaled_font after a
CloseDisplay.
2007-04-12 21:44:08 +01:00
Chris Wilson
97d897a747 cairo_xlib_close_display - drop the mutex whilst calling the hooks
In order to avoid recursive dead-locks where whilst one thread holds the
scaled font lock and is waiting on the XLockDisplay() another thread catches
the CloseDisplay and then tries to acquire the scaled font lock, we drop
the list mutex whilst processing the callbacks.
2007-04-12 21:43:47 +01:00
Carl Worth
13b0aa669f Rebuild doc/public/Headers.mk
Add a sort so that future update changes will be more legible.
2007-04-12 13:29:56 -07:00
Carl Worth
ae80d375f8 Rename cairo-mutex-list.h to cairo-mutex-list-private.h
Also add it (and cairo-mutex-private.h) to Makefile.am
where they should have been.
2007-04-12 13:22:36 -07:00
Carl Worth
29adf591b7 move show-glyphs-many to the DISABLED_TESTS list
And add a detailed comment explaining the reasons for disabling each
test in the list.
2007-04-12 12:47:27 -07:00
Chris Wilson
c5b2f9d5c2 cairo_xlib_screen_info_t - always perform an exact match
This ensures that only one cairo_xlib_screen_info_t holds the
close_display_hooks, an assumption used later.
2007-04-12 12:34:53 -07:00
Chris Wilson
8c9f0f607b cairo-xlib-screen - avoid dereferencing a NULL screen.
Do not initialize font options when setting up the
cairo_xlib_screen_info_t corresponding to the display itself and not
associated with any screen. This avoids a potential NULL dereferences.

(Fixes https://bugs.freedesktop.org/show_bug.cgi?id=10517)
2007-04-12 12:34:53 -07:00
Behdad Esfahbod
dc1de86680 [ROADMAP] Add cairo_object_t 2007-04-12 15:06:37 -04:00
Behdad Esfahbod
12b962d648 [ROADMAP] Mark bug #5777 as fixed 2007-04-12 14:56:36 -04:00
Behdad Esfahbod
e391d3eaee [test] Disable text-glyph-range that was crashing
Disabled tests are defined in DISABLED_TESTS.  This has the benefit
that they will still be buildable and be shipped.  Just not run by
default.
2007-04-12 14:44:32 -04:00
Behdad Esfahbod
d3c7942fb2 [pixman] Mark some small functions that are called per-pixel inline
These uses were introduced in the previous commit.
2007-04-12 14:44:32 -04:00
David Reveman
e3b3d22999 [pixman] Fix fbcompose.c that was broken for some composite operations (#5777) 2007-04-12 14:44:32 -04:00
Vladimir Vukicevic
c8d2d1e876 add licenses to test files 2007-04-12 10:51:17 -07:00
Michael Emmel
e240048a14 Merge branch 'master' of ssh+git://git.cairographics.org/git/cairo 2007-04-11 21:43:15 -07:00
Michael Emmel
29a1fe12cf Fixed compile error from missing directfb.h include 2007-04-11 21:42:57 -07:00
Kristian Høgsberg
977a8982ab Add missing copyright notice. 2007-04-11 23:49:01 -04:00
Behdad Esfahbod
9193b29645 [ROADMAP] Mark done items 2007-04-11 23:30:31 -04:00
Chris Wilson
284edb8648 Do not raise an error if we fail to locate 'find' or 'xargs'
Whilst not being able to delete all of the test output is messy it is
however not fatal, so do not abort configuration simply because we
cannot find either program.
2007-04-12 03:01:31 +01:00
Chris Wilson
a8974223dc Check for find and xargs during configure
Replace hard-coded find, xargs and rm with the paths determined during
configure. This also gives us an opportunity to detect missing programs
and inform the developer.
2007-04-12 02:31:03 +01:00
Behdad Esfahbod
632ec8088c [test] Add copyright headers for my tests 2007-04-11 20:18:11 -04:00
Chris Wilson
82397a6314 Avoid using GNU find extensions.
Replace the complex single find with a series of simple but POSIX correct
equivalents.
2007-04-12 00:55:04 +01:00