summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-09-13[trace] Don't try and propagate a void result.M Joonas Pihlaja1-66/+70
The pattern return <function returning void>( ... ); is a gccism not supported by Sun Studio.
2009-09-13[trace] Avoid warnings from assigning a void pointer to a function pointer.M Joonas Pihlaja1-2/+2
The Sun Studio compiler complains a *lot* when assigning the result of dlsym to a function pointer. Cast the result to the proper type first.:w
2009-09-13[image] Add pixel masks for BGRA formatsChris Wilson1-1/+9
pixman introduced the BGRA pixel type not too long ago, and so we need to update our pixman_format_code_t to cairo_format_masks_t translator.
2009-09-13[trace] Stray trailing ';' in bswap macrosChris Wilson1-2/+2
2009-09-13[trace] Compile without lookup-symbolChris Wilson1-1/+5
And check compilation with --disable-symbol-lookup
2009-09-13[configure] --enable-symbol-lookupChris Wilson7-5/+34
There you go Joonas, I don't always ignore your suggestions! This is simple patch to allow the user to disable symbol loops in case the auto-detection fails on some obscure (perhaps OpenBSD) platform. Or in case the user really wants to trim a few bytes from a library only used during tracing!
2009-09-11[test] Typos in README from previous commitChris Wilson1-1/+1
2009-09-11[test] Add Debian packages for fontsChris Wilson1-1/+3
Mention which .deb provides the required fonts.
2009-09-11[xlib] Fix big-line.Chris Wilson3-246/+164
Project lines that exceed the 16.16 limits onto the XFixedLine, as we know that top/bottom must fit within the confines of the surface and so will be less than 16 bits. Sadly this is a run-on patch that also does: 1. Make FillTiled the default for new GCs. 2. Stores extend mode as opposed to repeat, and thereby cleaning up some inconsistent code. 3. Remove the special casing for unbounded trapezoids, as it is redundant with the polygon clipping. 4. Tidy the logic for deciding when to use the core protocol (_categorize_composite_operation)
2009-09-11[xlib] Discard clip if larger than glyph extentsChris Wilson3-0/+65
Implement cheap calculation of glyph extents to see whether we can discard the clip region. This is effective around 50% of the time for firefox (and makes the xtrace so much neater).
2009-09-11[test] Update big-line and remove XFAILChris Wilson9-12/+12
Now that we use polygon clipping, output geometry should no longer exceed the 2^16 limits imposed by pixman. For the image backend, we now use spans for stroking and for the xlib backend we have to double check the range on the output trapezoids. In short, cairo should pass this test.
2009-09-10[surface] Early return for (region IN white)Chris Wilson1-0/+7
Fill a region using IN and a white source is a frequent reduction of a complex clip (viz a path that covers the whole operation extents will be reduced to a single rectangle), and we can simply discard the fill (as it always has bounded semantics).
2009-09-10[clip] Simplify applying a box clipChris Wilson2-39/+48
If the clip path is a simple box, then for many operations it is entirely representation by the alteration of extents and so we can skip a few steps during reconstruction.
2009-09-10[xlib] Fix extraction of GC during XCloseDisplay()Chris Wilson1-1/+1
Jeff Muizelaar reported a bug from his firefox builds that was causing a double free during XCloseDisplay, and suggested it was related to c0e01d9cd. Reviewing the cleanup, suggested that the cause may just be a pair of missing parenthesis.
2009-09-09[util] And reuse the same name repository name.Chris Wilson1-2/+2
Completely confused by local caching of a broken cairo.modules by the jhbuild client. ARGH!
2009-09-09[util] And back to a unique repo name for cairo.modulesChris Wilson1-2/+2
Gah, further experiments into the unknown and the unclear.
2009-09-09[util] And restore the repository tag.Chris Wilson1-0/+2
jbhuild requires a local definition.
2009-09-09[util] Inherit the repository from xorg.modulesChris Wilson1-3/+1
Experiment with inheriting the repository from xorg.module, in order to avoid having two entries for the same server.
2009-09-09[test] Disable the antialias testing for the vector surfaces.Chris Wilson5-5/+5
Only the raster bckends obey the font anti-alias options.
2009-09-09[test] Compare a failure against the image outputChris Wilson1-0/+46
If a backend fails in exactly the same way as the image, then we can safely assume that the failure is systematic and not an error in the backend, so change the result to XFAIL.
2009-09-09[test] Typo in ft-show-glyphs-positioningChris Wilson1-1/+1
Note to self: remember to sleep more often.
2009-09-09[test] An oversized twin test case.Chris Wilson5-0/+100
A larger variant of the twin mixed antialiasing test.
2009-09-09[test] Variation of twin that intermixes antialiasingChris Wilson5-0/+100
Check that we are substituting the right glyph depth and changing masks appropriately.
2009-09-09[test] SUBPIXEL_ANTIALIAS varation of twinChris Wilson5-0/+74
Force argb32 glyphs.
2009-09-09[test] Variation of twin with ANTIALIAS_GRAYChris Wilson5-0/+74
Force generation of a8 glyphs.
2009-09-09[test] Add ANTIALIAS_NONE variation of twinChris Wilson5-0/+74
I'm off hunting bugs. By using twin with ANTIALIAS_NONE we can construct a1 glyph images independently of the native font system.
2009-09-09[test] Check for errors during ft-show-glyphs-positioningChris Wilson1-7/+39
Do not blindly assume that we managed to construct a valid scaled-font before attempting to dereference the FT_Face. Consider a machine with no fonts which is substituting twin...
2009-09-09[twin] Initialise all propertiesChris Wilson1-0/+2
Left a couple of uninitialised properties along the non-toy font construction path.
2009-09-09[configure] Typo in testChris Wilson1-1/+1
The have_dl clause was meant to have been removed from the requirements test for cairo-script-interpreter. Instead we left the test broken.
2009-09-08[spans] Correct offsets for trapezoidsChris Wilson1-2/+2
Pass on the destination offset from composite_trapezoids() to composite_polygon().
2009-09-08[build] Improve handling of missing test apparatusChris Wilson13-11/+52
Improve detection, reporting and disabling of test backends when we lack the required libraries and utilities.
2009-09-08[gl] Supply extents for acquire source imageChris Wilson1-1/+5
I have no idea how we survived for so long without supplying the source extents...
2009-09-06[xlib] Protect ourselves from liars that claim to have a 64k windowChris Wilson1-2/+25
Found using webkit, who attempt to paint an width X page height window. Please, please clip large windows to the visible area. Thanks.
2009-09-05[configure] Add option to disable trace.Chris Wilson7-4/+27
Some environments may be broken beyond our capabilities to detect, or maybe the user is just insane and doesn't want to build my nice shiny cairo-trace. Whatever, give them the option to choose: $ ./configure --disable-trace
2009-09-05[perf] Move the calibration to its own functionChris Wilson1-30/+41
Improve code clarity and whatnot.
2009-09-05[perf] Add a fast-and-sloppy mode to cairo-perf.M Joonas Pihlaja2-20/+42
A new -f option to cairo-perf reverts to a fast run mode for quick performance overviews. The number of milliseconds each iteration of a test is run for can be overriden using the new CAIRO_PERF_ITERATION_MS environment variable. The default remains 2000 ms/iter.
2009-09-05[boilerplate] Support wildcard ? in CAIRO_TEST_TARGET{,_EXCLUDE}.M Joonas Pihlaja1-4/+6
Useful for running tests only for a given content type.
2009-09-05[boilerplate] Support giving content in CAIRO_TEST_TARGET{,_EXCLUDE}.M Joonas Pihlaja1-4/+57
Sometimes it's convenient to run the regression or performance tests against a given target with a given content. Now we accept an optional content specifier as a suffix .<content> on a target name, where <content> is rgb or rgba.
2009-09-05[test] Reorder dash-infinite-loop to not hit a runaway allocation.M Joonas Pihlaja1-1/+1
This test is annoying enough as it is what with it wedging the test suite and all. There's no reason why it should DOS the running box as well by sitting in a loop allocating like mad.
2009-09-04[test] Add large-source-roi.ref.png to test/Makefile.amM Joonas Pihlaja1-0/+1
Oops.. forgot to add it to the build files too
2009-09-04[gl] compile fix.Chris Wilson1-1/+2
Compiled fine during testing -- only I forgot I hadn't enable the gl surface.
2009-09-04[xlib] Enable pad_reflect by defaultChris Wilson1-7/+12
If the XServer claims to support the required Render extension then send it the operations. However for the cases where we know it does not work, i.e. the current and previous generations (<=1.6) of Xorg servers, enable the buggy_pad_reflect fallbacks.
2009-09-04[test] Add unbounded variants of clip-{fill,stroke}Chris Wilson18-0/+223
Add a couple of tests to exercise a bug that Joonas spotted that I had introduced with the clip-reduction scheme - namely that I had incorrectly removed the clip on unbounded operations.
2009-09-04[fallback] Only eliminate the clip if the operation is boundedChris Wilson1-15/+42
For unbounded operations we still need to pass along the clip in order to correctly limit the extents of the operation.
2009-09-04[perf] Use milliseconds by default in cairo-perf-diff-filesChris Wilson1-5/+8
Necessary when comparing performance reports from different machines (or even at different CPU states).
2009-09-03[win32] Remove unused clone_similar()Chris Wilson2-57/+2
The win32 backend handles surface sources directly and never calls _cairo_pattern_acquire_surface() which is the only other possible user of clone_similar().
2009-09-03[mutex] Hook into pthread lastChris Wilson1-23/+24
Check for native mutex types before hooking into pthread, as this workarounds broken builds on mingw that confuse us by including the pthread header file.
2009-09-03[gl] Allocate small number of rectangles on the stackChris Wilson1-14/+29
FillRectangle is most frequently used to fill an entire imagee with the background colour, i.e. with just a single, or few, rectangle. Avoid heap allocation for this common case by allocating enough space for 4 rectangles (vertices+colors) on the stack.
2009-09-03[gl] Assert that the error is impossible.Chris Wilson1-2/+2
As we created the image, it should not need coercing into a suitable format and so we should be able to upload it without failure.
2009-09-03[gl] Remove reference to depth_stencil_texChris Wilson2-3/+0
We no longer use a depth-stencil, so remove the vestigial reference.