Commit graph

9838 commits

Author SHA1 Message Date
Chris Wilson
8e827e2cbb test: Record the failure of recent freetype libraries for type1 vertical layout 2011-09-15 17:02:12 +01:00
Chris Wilson
36dc0971ea test: refresh clip-operator ref.png 2011-09-15 16:59:33 +01:00
Chris Wilson
af6ee4e82e image: Invert recording matrix before replay
Hmm, still not quite right but an improvement.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15 16:57:52 +01:00
Chris Wilson
9bf21c74ae check: Make the newly added privates pass make check
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15 15:55:52 +01:00
Chris Wilson
d4c59d6a8c build: Another missing private.h 2011-09-15 15:50:29 +01:00
Chris Wilson
ca95e37412 build: Add missing cairo-surface-backend-private.h to sources 2011-09-15 15:35:14 +01:00
Chris Wilson
e6e6723871 test: Fix reference image for unbounded operator
Comparing against the baseline reference highlights the error in the
previous ref.png.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15 15:29:15 +01:00
Chris Wilson
f2a49e9329 script: Tag the similar surface rather than snapshot
As we discard the snapshot immediately upon drawing to it, it serves no
purpose.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15 15:29:15 +01:00
Chris Wilson
1b2709d8c0 composite: Reduce an unaligned clip
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15 15:29:15 +01:00
Chris Wilson
c0016e6ac9 test: Mark some more raster-only tests
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15 15:29:15 +01:00
Uli Schlachter
a349564e3c Revert "xcb: Error on 0x0 source surfaces"
This reverts commit 8f8149a207.
2011-09-15 16:21:42 +02:00
Uli Schlachter
c00e4c6671 Tee: compile fix for recent compositor API
Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-09-15 16:21:41 +02:00
Chris Wilson
088d483043 ps: Check earlier for a supported mask
Fixes crash in fill-and-stroke-alpha.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15 14:51:11 +01:00
Chris Wilson
13bd9592d8 ps: Fix return value for mask_supported and ps2
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15 14:28:53 +01:00
Chris Wilson
5f8ee79b40 test: Write the individual test logs to output/
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15 14:21:20 +01:00
Chris Wilson
768d39f034 test: Move all the reference images to their own directory
With over two thousand references images now, it is starting to make the
test directory look cluttered!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15 14:05:10 +01:00
Chris Wilson
1eaab086f3 ps: Set transparency for stencil_masks
Fixes crash in a8-mask.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15 13:53:15 +01:00
Adrian Johnson
47e16d0e56 subsetting: Support unicode fontnames
Most fonts use Window platform specific encoded font names since they
allow unicode names.

- Make _cairo_truetype_read_font_name() read the Windows platform
  names first. If this fails, fallback to reading he the Mac platform
  MacRoman encoded name.

- Use the PDF method of encoding non ASCII PS font names. Poppler will
  correctly extract the unicode name.

- Make PDF embed the font family name as AsciiHex if the name is not ASCII.
2011-09-15 22:05:22 +09:30
Chris Wilson
1e67fb4490 test: Complete set of baseline reference images
test-base basically implements rendering ala cairo-1.0 and so serves as
a useful baseline for comparing enhancements and to regression test the
core libraries.
2011-09-15 13:10:25 +01:00
Chris Wilson
f1ea9dd836 test: Use the trapezoid reference image for random-clip
Oh dear it looks like we have a bug in image's polygon clipping.
2011-09-15 11:08:04 +01:00
Chris Wilson
ffbf6158be perf: Add an a1-pixel variant
Just to measure the overhead and differences when switching between
antialiasing paths.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-15 10:13:40 +01:00
Chris Wilson
9ab9d635cd test: Add ref image for random-clip
After applying geometric clip intersection, this is the acceptable
result.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-14 23:08:19 +01:00
Chris Wilson
8f9691f2b7 test: Fix ref images for a1-clip-*
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-14 23:06:31 +01:00
Chris Wilson
472e4515de image: fix compilation of spans with LERP 2011-09-14 20:21:08 +01:00
Chris Wilson
872e1c87b3 skia: fix compilation 2011-09-14 20:21:03 +01:00
Chris Wilson
cf71821a33 mono: Amalgamate adjacent spans
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-14 19:22:24 +01:00
Chris Wilson
db41096b38 perf/micro: Add the PS tiger as a measure for the antialias hints
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-14 19:22:24 +01:00
Chris Wilson
9f605b0c84 test: Add the PS tiger
The classic tiger's head; a simple example of a reasonably complex shape
consisting of multiple layers.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-14 19:10:22 +01:00
Chris Wilson
8a80bbf78d image: Adapt to updated pixman lerp operators
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-14 19:10:22 +01:00
Uli Schlachter
e3131242b2 xlib-xcb: Make this compile again
Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-09-14 15:50:19 +02:00
Uli Schlachter
af11d26752 xcb: Remove some dead code
surface->use_pixmap always had the value 0. This code is taken from cairo-xlib.
However, in cairo-xlib use_pixmap is set to 20 if XGetImage() fails.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-09-14 15:21:37 +02:00
Uli Schlachter
cd69c8ef68 cairo_clip_path_t: Remove extents
Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-09-14 15:21:37 +02:00
Chris Wilson
7cf7ee5e29 traps: Skip compositing an empty bounded regions
Fixes the cairo-xlib crash with tighten-bounds. (I thought I had fixed
it earlier, but I was obviously wrong.)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-14 12:45:59 +01:00
Adrian Johnson
dc2ed6dca2 Refresh some pdf/ps ref images 2011-09-13 22:29:56 +09:30
Chris Wilson
3e655f0819 traps: Send unaligned boxes as trapezoids
According to the little fishies this performs significantly better.
As a bonus, it did not handle overlapping boxes correctly...

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-13 12:31:14 +01:00
Chris Wilson
05a73434fc perf/stats: Avoid overflow when summing time-squared
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-13 12:30:58 +01:00
Adrian Johnson
8218f5278e ps: turn off debug 2011-09-13 18:52:50 +09:30
Chris Wilson
4f2c7b8cf8 mono-scan-converter: Decrement height as we skip straight edges
Fixes paint-clip-fill-mono.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-12 15:49:13 +01:00
Chris Wilson
a6a48e0559 test: Update ref images
First pass after the recent turmoil in clip and antialias handling.
2011-09-12 15:44:47 +01:00
Chris Wilson
0f26f75eda perf/micro: Add measurement of setting the pixel directly using pixman
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-12 15:44:46 +01:00
Adrian Johnson
7b6586a738 scaled-subsets: ensure different glyphs with same utf8 mapping are not merged together
If a glyph maps to a latin char that is already assigned in the latin
subset, put the glyph in a non latin subset.
2011-09-12 22:04:06 +09:30
Adrian Johnson
497258a4cf ft: fix warning 2011-09-12 22:01:09 +09:30
Adrian Johnson
b0d9b4ce53 pdf: add status check 2011-09-12 21:53:59 +09:30
Chris Wilson
65a954d5ba test-surfaces: compilation fixes
Update to the last minute changes in the traps compositor API.

And so it begins.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-12 11:39:59 +01:00
Chris Wilson
af9fbd176b Introduce a new compositor architecture
Having spent the last dev cycle looking at how we could specialize the
compositors for various backends, we once again look for the
commonalities in order to reduce the duplication. In part this is
motivated by the idea that spans is a good interface for both the
existent GL backend and pixman, and so they deserve a dedicated
compositor. xcb/xlib target an identical rendering system and so they
should be using the same compositor, and it should be possible to run
that same compositor locally against pixman to generate reference tests.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>

P.S. This brings massive upheaval (read breakage) I've tried delaying in
order to fix as many things as possible but now this one patch does far,
far, far too much. Apologies in advance for breaking your favourite
backend, but trust me in that the end result will be much better. :)
2011-09-12 08:29:48 +01:00
Adrian Johnson
0540bf384a ps: improve formatting of fallback image comment 2011-09-11 00:45:09 +09:30
Adrian Johnson
2d887d99c7 ps: use reusable stream for mesh pattern data
File data used by a shading pattern must reusable since the pattern
may read the file multiple times. As currentfile is not reusable, use
the /ReusableStreamDecode to make it reusable.
2011-09-11 00:45:09 +09:30
Chris Wilson
d8ac76bcec perf/Makefile.am: Add missing '\' line continuation
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-09 19:43:48 +01:00
Paulo Zanoni
ee15e030d8 cairo-test-runner: don't leak argv
If CAIRO_TESTS is set, argv will be replaced by a xmaloc'ed variable. We
need to free it.

This can be easily detected by running:
CAIRO_TESTS=user-font make check-valgrind TARGETS=image

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-09 18:44:18 +01:00
Paulo Zanoni
572479ec20 test/README: add missing "S"
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-09-09 18:43:18 +01:00