summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-10-17[test] Add radial-gradient-sourceChris Wilson5-0/+118
ranma42 found a bug in compositing with a radial gradient using the SOURCE operator with EXTEND_NONE, as exercised here.
2009-10-16[surface] Don't AND in the desired content.Chris Wilson13-62/+10
Gah, that was a horrible mistake. It was a flawed hack to create Pixmaps of the correct depth when cloning patterns for blitting to the xlib backend. However, it had the nasty side-effect of discarding alpha when targeting Window surfaces. The correct solution is to simply correct the Pixmap of the desired depth and render a matching pattern onto the surface - i.e. a reversal the current acquire -> clone. See the forthcoming revised xcb backend on how I should have done it originally.
2009-10-16[image] Clone the format for a similar surface with identical contentChris Wilson1-2/+9
Honour the incoming surface format when we are asked to create a similar surface with identical content. The goal of cairo_surface_create_similar() is to create an intermediate with similar characteristics to the original that can be used in place of the original and be quick to copy to the original. Matching the format for the same content, ensures that the blits between the two need only be a memcpy.
2009-10-16[fallback] Create intermediate surface with same content.Chris Wilson1-5/+7
The goal is to create a similar surface with an identical format to maximise performance in the subsequent blit, e.g. the xlib backend could make the similar surface with an identical depth and so use the core protocol, or the image surface could indeed make an identical copy so that pixman only has to do a fast memcpy. As there is no direct method to specify such a clone, we ask the backend for a similar surface of identical content, and trust that the semantics are clear enough for the intent to obvious.
2009-10-15Increment version to 1.9.5Carl Worth1-1/+1
Just after the 1.9.4 snapshot.
2009-10-15Add mising images to REFERENCE_IMAGES list.Carl Worth1-0/+8
Again, the kind of thing that only gets fixed at release time. But at least we have a nice test for this.
2009-10-15Mark in-fill-empty-trapezoid as an XFAIL test.Carl Worth2-2/+7
Otherwise, it was disrupting my attempts to release a snapshot, (since it doesn't respect CAIRO_TEST_TARGET=" " and not run like most of the tests do).
2009-10-15Update version to 1.9.4Carl Worth1-1/+1
In preparation for the 1.9.4 snapshot.
2009-10-15Remove stale references to non-existant reference images.Carl Worth1-7/+0
This is just one of those things that we don't get right until someone tries running "make distcheck".
2009-10-15NEWS: Update with correct data for 1.9.4 snapshotCarl Worth1-2/+1
2009-10-15[build] Check compiler flags using AC_TRY_LINK instead of AC_TRY_COMPILE.M Joonas Pihlaja1-11/+8
Turns out we were passing suncc warning suppression flags to gcc by mistake since -e<entry point> is actually a valid option for gcc. This caused the -erroff=E_ENUM_TYPE_MISMATCH_ARG and other -erroff options to be passed to the linker. In the normal case of a GNU ld linker this doesn't matter since it ignores bogus entry points, but the GNU gold linker replaces a bogus entry point with NULL. This patch makes the CAIRO_CC_TRY_FLAG() check stricter by testing that the flag doesn't interfere with linking executables.
2009-10-15[surface] Avoid double application of device offset when calling fill()Chris Wilson1-6/+35
_cairo_surface_fallback_paint() attempts to avoid a clipped operation if we can convert the paint into a fill of the clipmask. However by calling _cairo_surface_fill() we incur a double application of device offset to the source, triggering various failures. Company spotted this and managed to extract an excellent minimal test case, test/clip-device-offset. This commit fixes that failure.
2009-10-15[test] Add clip-device-offsetBenjamin Otte5-0/+82
Exercises a bug demonstrated by WebKit with clipping + device offsets.
2009-10-15[build] Link against pthread-stubsChris Wilson7-11/+22
Avoid pulling in the real pthread library if the application is single threaded and not using pthreads, by linking against pthread-stubs instead.
2009-10-15[atomic] Fallback to libatomic-ops-devChris Wilson6-20/+63
Use libatomic-ops-dev in preference to mutex-based atomics, if we do not have the builtin atomic intrinsics available.
2009-10-15[pattern] Compute extents for gradientsChris Wilson1-58/+126
As noted in the comments we could also compute the pattern extents for gradients with CAIRO_EXTEND_NONE under certain circumstances, i.e. radial gradients and device axis aligned linear gradients.
2009-10-02PDF: Fix regression caused by 1ae5a419Adrian Johnson1-4/+8
Bug 24240 acroread prints error message when printing
2009-10-02PDF: Fix regression caused by 1ae5a419Adrian Johnson1-1/+1
Bug 24240 first char missing when printing a PDF.
2009-09-30[boilerplate/xcb] Fix pixmap depthChris Wilson1-3/+16
All the error checking, finally pointed out that I was creating a pixmap with the wrong depth! Oops.
2009-09-30[xcb] Deferred error checking.Chris Wilson4-246/+521
XCB avoids the dreaded abort on XError mechanism by forcing the client to perform deferred error checking. So do so. This allows us to combine the fire-and-forget rendering model with accurate error checking, without killing the client or mixing our errors with theirs. XCB for the win!
2009-09-30[boilerplate/xcb] Check for connection errors during testChris Wilson2-54/+83
2009-09-30[xlib] Suppress warning that should never have been.Chris Wilson1-1/+1
2009-09-30Fix truetype subset crashAdrian Johnson1-0/+1
Bug 24213
2009-09-30[API] Make _cairo_meta_surface_replay() private againBenjamin Otte14-65/+40
Replaying a meta surface can be achieved by using it as a source for a cairo_paint() so exporting a separate API is unnecesary and confusing. So after consulting Chris and Carl, we decided to remove the function again.
2009-09-29[xlib] XRequest bread crumbingChris Wilson1-0/+57
Add bread crumbs in the form of NoOperations that can be parsed by xtrace and very useful when debugging protocol/server errors.
2009-09-29[tessellator] Invalid conversion of list head to edge.Chris Wilson1-0/+2
When scanning for collinear right edges, we need to check that we do not go beyond the end of the array.
2009-09-29[perf] Support parsing reports from stdinChris Wilson2-20/+31
2009-09-29[xlib] Set proper bpp when computing format from masksBenjamin Otte1-0/+1
Fixing omission in caa9eed4646e78a62ffb49d9c4f48c0b351c7a7f
2009-09-29[xlib] Handle 24bpp formats during ditheringBenjamin Otte1-0/+10
2009-09-29[image] Fix masks computation for BGRx formatBenjamin Otte1-3/+3
Patch originally by Mark Kettenis
2009-09-28PS: Use standard page size names for some common sizesAdrian Johnson1-4/+62
Some PS viewers like gv use the label in the %PageMedia DSC comment as the displayed page size. The page names and sizes were obtained from the list at: http://www.gnu.org/software/gv/manual/html_node/Paper-Keywords-and-paper-size-in-points.html
2009-09-25PS: Add DocumentMedia/PageMedia DSC commentsAdrian Johnson2-0/+89
Provide default DocumentMedia and PageMedia DSC comments if the user does not specify them using cairo_ps_surface_dsc_comment(). This is required so that PostScript viewers such as gv use the correct page size.
2009-09-25[xlib] Handle case in draw_image() where pixman format is not RGBBenjamin Otte1-6/+44
When an image cannot be expressed as masks, its data cannot be used in an XImage. In that case, we use pixman to copy the image to the desired format.
2009-09-25[image] Return cairo_bool_t from _pixman_format_to_masksBenjamin Otte2-12/+11
Return FALSE when the pixman format does not support ARGB masks. In particular, return FALSE for YUV formats.
2009-09-24Add EPS testAdrian Johnson4-0/+172
This test demonstrates a regression in the EPS output since 1.8.8. The ps-eps.ref.eps was created with 1.8.8.
2009-09-23[image] Do not trust user supplied data to be clearChris Wilson1-1/+1
Gah, more important than the whitespace was the reversal of is_clear...
2009-09-23[image] Tweak coding styleChris Wilson1-4/+5
Whitespace spam.
2009-09-23[image] Move setting of is_clear to _create_with_pixman_format()Benjamin Otte1-12/+6
Simplifies code and ensures other users of that function don't run into the same bug.
2009-09-23[image] Do assumption initial user data is cleared.Chris Wilson1-4/+22
Benjamin Otte pointed out the error of my ways that a clear on a cairo_image_surface_create_for_data() was not working. This is because I modified the image surface to skip clears when it knows the target data has been cleared. This flag must be reset when the user interacts with the surface, such as providing the initial surface data.
2009-09-22[test] Revamp surface-sourceChris Wilson24-8/+47
Include a translucent region in the source that exercises the xlib bug that I'm trying to fix. Hmm.
2009-09-22[test] Exercise push-group-color.Chris Wilson5-0/+144
Hunting for a known bug in the xlib backend where it invalidly converts an argb32 source to rgb24. However, this does not appear to be that bug, but still a useful exercise nevertheless.
2009-09-22[gl] Handle an absent visual.Chris Wilson2-3/+12
If we cannot find the correct visual for the fbconfig, return an error instead of crashing. The difference is subtle, granted.
2009-09-22win32-printing: correct the use of the CAIRO_HAS_WIN32_FONT #ifdefAdrian Johnson1-1/+1
it was wrapping code required for non windows fonts.
2009-09-22win32-printing: fix meta surface pattern regression caused by bed2701eAdrian Johnson1-0/+2
2009-09-22win32-printing: Allow GDI CTM with scale < 1 to be setAdrian Johnson2-19/+73
To better support creating EMF files with the win32-printing surface, allow a GDI CTM with scale < 1 to be used. http://lists.cairographics.org/archives/cairo/2009-September/018110.html
2009-09-22Make win32 fonts work in EMF files created by win32-printingAdrian Johnson1-0/+37
2009-09-22Fix compiler warnings in win32-surfaceAdrian Johnson1-3/+9
2009-09-22Fix compiler error on cygwinAdrian Johnson1-0/+1
2009-09-22Add WINVER defines to cairo-mutex-impl-privaye.hAdrian Johnson1-0/+9
The WINVER defines should always be defined before including windows.h
2009-09-22Use _WIN32 to check for win32 mutexAdrian Johnson1-1/+1
Commit 535bcaa1 moved pthread after win32 to fix mingw build problems. However this breaks cygwin builds. On cygwin HAVE_WINDOWS_H is defined but _WIN32 is not. This was causing windows.h to be included which defines _WIN32. As a result the win32 code in cairo-misc.c was being compiled but the win32 declaration in cairint.h was not included. Fix this by using _WIN32 to enable the win32 mutex functions since _WIN32 is defined by mingw, visual C++, and winegcc, but not cygwin. On cygwin, posix functions are preferred as it is a unix emulation environment.