Commit graph

11998 commits

Author SHA1 Message Date
Anton Danilkin
ec2cf9ac35 Ignore build instead of builddir 2021-05-29 18:13:30 +02:00
Anton Danilkin
1e27ca7d45 Remove unused _cairo_hash_table_size 2021-05-29 18:04:45 +02:00
Anton Danilkin
c2bf6e8ae4 Fix remaining tests 2021-05-05 00:51:01 +02:00
Anton Danilkin
9e497a3cb8 Introduce CAIRO_BOILERPLATE_OPEN_NO_DAEMON and CAIRO_BOILERPLATE_DO_NOT_CRASH_ON_ANY2PPM_ERROR 2021-05-03 23:38:28 +02:00
Anton Danilkin
42128f1742 Fix reference images 2021-05-03 22:13:16 +02:00
Anton Danilkin
5b678d8185 Fix applying shifted operators 2021-05-03 16:33:05 +02:00
Anton Danilkin
c30a031a68 Fix painting of glyphs 2021-05-03 09:58:40 +02:00
Anton Danilkin
55b57b2c68 Fix operators in Chrome 2021-05-03 00:30:57 +02:00
Anton Danilkin
10552fa78f Use g instead of symbol for glyphs 2021-05-03 00:30:14 +02:00
Anton Danilkin
62628c8886 Migrate from cairo_output_stream_t to cairo_svg_stream_t 2021-05-02 21:38:02 +02:00
Anton Danilkin
56378ee69e Do not try to emulate the fill_stroke operations ourselves 2021-05-02 19:28:55 +02:00
Anton Danilkin
8f4668b4bf Disable support for SVG 2 operators 2021-05-01 23:40:02 +02:00
Anton Danilkin
bd487e64fc Add support for CAIRO_CONTENT_COLOR 2021-05-01 23:14:24 +02:00
Anton Danilkin
a3e01d9e8c Emit a transparent paint in "lerp_compositing_group"s to extends the bounds of the REMOVE_COLOR_AND_INVERT_ALPHA filter 2021-05-01 23:05:03 +02:00
afdw
cd0082338e Merge branch 'master' into 'svg-backend-work'
# Conflicts:
#   src/cairo-gstate.c
2021-05-01 14:40:52 +00:00
Uli Schlachter
8f6cfe4177 Merge branch 'ci-test-x11' into 'master'
CI: Check test results for cairo-xcb and cairo-x11

See merge request cairo/cairo!165
2021-04-30 12:12:22 +00:00
Emmanuele Bassi
4c4e6127f4 Merge branch 'jfkthame-master-patch-60864' into 'master'
Don't leave the shm field uninitialized when building without shm support.

See merge request cairo/cairo!170
2021-04-29 09:18:07 +00:00
Jonathan Kew
cb86c13b62 Don't leave the shm field uninitialized when building without shm support.
This can result in reading an uninitialized value in draw_image_boxes() in cairo-xlib-render-compositor.c.
2021-04-29 08:52:31 +00:00
Uli Schlachter
64e1fd70ec Merge branch 'ebassi/warnings-fixes' into 'master'
Avoid a bunch of compiler warnings

See merge request cairo/cairo!166
2021-04-27 16:30:44 +00:00
Uli Schlachter
47770fc2b7 Merge branch 'ebassi/deprecations' into 'master'
Use g_memdup2() with newer versions of GLib

See merge request cairo/cairo!167
2021-04-27 16:24:29 +00:00
Emmanuele Bassi
efab74f5a1 Drop volatile from the GType registration
The `volatile` is unnecessary, and newer versions of GLib and GCC will
complain if you use it.
2021-04-27 16:59:35 +01:00
Emmanuele Bassi
0f39b79575 Define _GNU_SOURCE in order to use memmem
The memmem() function is a GNU extension, which means we need to define
_GNU_SOURCE in order to avoid a compiler warning about a missing
declaration.
2021-04-27 16:59:35 +01:00
Emmanuele Bassi
0bbb9de806 Disable deprecation warnings from librsvg
This is a test utility, we don't really care about deprecations.
2021-04-27 16:54:22 +01:00
Emmanuele Bassi
b7d38e048f Use g_memdup2() with newer versions of GLib
The g_memdup() function has been deprecated, as it takes the size of the
memory area as an unsigned integer. The g_memdup2() replacement uses the
more appropriate size_t type, instead.
2021-04-27 16:54:22 +01:00
Emmanuele Bassi
966b4a4e5f Handle new Cairo formats in test-trace
We are missing RGB96F and RGBA128F.
2021-04-27 16:50:56 +01:00
Emmanuele Bassi
7027360c82 Handle new Cairo formats in the XML surface
We are missing RGB96F and RGBA128F.
2021-04-27 16:50:38 +01:00
Uli Schlachter
14385eeff3 Merge branch 'mac-tests' into 'master'
Run the test suite on MacOS

See merge request cairo/cairo!160
2021-04-26 16:06:23 +00:00
Uli Schlachter
816e7ac06f Merge branch 'fix-cairo-gstate-copy-transformed-pattern-comment' into 'master'
Replace an outdated (after f0e2cd44) comment with clarification in _cairo_gstate_copy_transformed_pattern

See merge request cairo/cairo!162
2021-04-26 16:04:23 +00:00
Anton Danilkin
8d02744136 Replace an outdated (after f0e2cd44) comment with clarification in _cairo_gstate_copy_transformed_pattern 2021-04-25 13:35:41 +02:00
Uli Schlachter
58b1929173 script: Also ignore {xcb,xlib}-surface-source
Signed-off-by: Uli Schlachter <psychon@znc.in>
2021-04-25 12:32:56 +02:00
Uli Schlachter
4d3dfb7bcb .gitlab-ci.yml: Ignore current X11 test failures
Signed-off-by: Uli Schlachter <psychon@znc.in>
2021-04-25 11:05:59 +02:00
Uli Schlachter
845c1f2a9a CI: Run tests with an X11 server
Running the test suite with an X11 server allows testing cairo-x11 and
cairo-xcb.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2021-04-25 10:07:54 +02:00
Uli Schlachter
f125a457ea Merge branch 'fix-cairo-operator-bounded' into 'master'
Make the _cairo_operator_bounded family of functions consistent

See merge request cairo/cairo!163
2021-04-25 07:26:19 +00:00
Uli Schlachter
3c00a849f6 Merge branch 'fix-cairo-status-is-error' into 'master'
Add missing parentheses to _cairo_status_is_error and _cairo_int_status_is_error

See merge request cairo/cairo!161
2021-04-25 07:20:26 +00:00
Anton Danilkin
d03b6c90a7 Make the _cairo_operator_bounded family of functions consistent 2021-04-24 14:57:47 +02:00
Anton Danilkin
f4a3236d14 Add missing parentheses to _cairo_status_is_error and _cairo_int_status_is_error 2021-04-24 14:50:30 +02:00
Anton Danilkin
898021ba39 Simplify _cairo_hash_table_size 2021-04-24 14:36:14 +02:00
afdw
0cc63f5d49 Merge branch 'master' into 'svg-backend-work'
# Conflicts:
#   src/cairo-malloc-private.h
#   src/cairo-svg-surface.c
2021-04-24 12:30:44 +00:00
Uli Schlachter
de2a71b230 Merge branch 'svg-ci' into 'master'
Enable SVG in CI

See merge request cairo/cairo!156
2021-04-23 19:40:46 +00:00
Uli Schlachter
2d2f73bc3c Run the test suite on MacOS
This adds the necessary commands to run the test suite on MacOS in CI
and to also ignore the current failures.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2021-04-22 16:14:37 +02:00
Heiko Lewin
ec2933b06e Merge branch 'wip/Jehan/subpixel-antialiasing' into 'master'
src: do not override explicitly requested grayscale antialiasing.

See merge request cairo/cairo!114
2021-04-20 12:35:17 +00:00
Tim-Philipp Müller
d4617e31be Merge branch 'no-fontconfig-on-windows' into 'master'
Don't build fontconfig on Windows

See merge request cairo/cairo!159
2021-04-20 10:33:20 +00:00
Matthias Clasen
f6a3f6d8ad Don't build fontconfig on Windows
mesons 'auto' is too eager to build things. Building
fontconfig as a subproject on Windows is not the right
thing, unless it was explictly requested.
2021-04-19 11:49:31 -04:00
Uli Schlachter
0392dd783c Ignore create-for-stream failure with svg
The create-for-stream test verifies that writing something to a file and
writing it to an in-memory surface produces the same output. The test
currently fails when the svg backend is tested with:

TEST: create_for_stream TARGET: pdf RESULT: PASS
svg: Stream based output differ from file output for output/create-for-stream.out.svg.
TEST: create_for_stream TARGET: svg RESULT: FAIL

I guess this is because svg uses unique IDs for surfaces, meaning that
drawing two times the same thing in the same process can produce
different outputs. However, this is just a guess and I didn't
investigate further.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2021-04-18 13:00:07 +02:00
Uli Schlachter
2f8b5bc7b2 Add hack to ignore a svg test crashes
This adds a special hack to the test suite to ignore the crashes for
self-copy and self-copy-overlap for the svg backend in CI.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2021-04-18 12:25:13 +02:00
Uli Schlachter
0c9dacbc43 svg: Reject raster sources
This hopefully fixes the raster-source test case crashing:

cairo-svg-surface.c:2269: _cairo_svg_surface_emit_pattern: Assertion `!"reached"' failed.

I cannot / did not test this change locally and rely on CI to tell me
whether this works.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2021-04-18 09:32:44 +02:00
Uli Schlachter
9ea171b132 Ignore current svg failures in CI
Signed-off-by: Uli Schlachter <psychon@znc.in>
2021-04-18 08:40:17 +02:00
Uli Schlachter
ca3423a701 Install gtk2-devel on CI
From config.log from CI:

configure:27855: $PKG_CONFIG --exists --print-errors "$librsvg_DEPENDENCY gdk-2.0"
Package gdk-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gdk-2.0.pc'
to the PKG_CONFIG_PATH environment variable
Package 'gdk-2.0', required by 'virtual:world', not found
configure:27858: $? = 1
Package 'gdk-2.0', required by 'virtual:world', not found
configure:27885: result: no
configure:27921: WARNING: SVG backend will not be tested since librsvg >= 2.35.0 is not available

According to Google, it seems like gtk2-devel is the right package to
get gdk-2.0.pc.

Thanks a lot to @tpm for explaining that I also have to change the TAG
variable.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2021-04-18 08:18:49 +02:00
Uli Schlachter
f8157ae751 Add config.log to build artefacts
This fail is not large, so doesn't "cost much", but it helps in figuring
out build problems in CI like "what exactly is missing for the SVG
backend?".

Signed-off-by: Uli Schlachter <psychon@znc.in>
2021-04-18 08:01:09 +02:00
Heiko Lewin
7de7d57592 Merge branch 'ci-make-test-succeeds' into 'master'
CI: Actually run cairo-test-suite

See merge request cairo/cairo!140
2021-04-17 10:01:17 +00:00