mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-03 18:40:18 +01:00
The patch removes the create_surface function pointer from the surface vtable and moves much of that code into a couple of helper functions. The composite, compsite_trapezoids, and show_glyphs backend functions are updated to take a cairo_pattern_t instead of a surface as the source. Change these functions to not create a surface for the pattern and just pass the pattern down to the backend functions. New function to translate a set of trapezoids. Break out the code to adjust and restore surface transformation and repeat settings into _cairo_pattern_prepare_surface and _cairo_pattern_restore_surface. Split cairo_pattern_create_for_surface into an init function and a create function. Utility functions to create a surface from a pattern. Update these backends to work with the new pattern API. Glitz work by David Reveman. Update these to pass through the new set of args. Update this reference image as we now render it correctly. |
||
|---|---|---|
| .. | ||
| .cvsignore | ||
| buffer-diff.c | ||
| buffer-diff.h | ||
| buffer_diff.c | ||
| buffer_diff.h | ||
| cairo-test.c | ||
| cairo-test.h | ||
| cairo_test.c | ||
| cairo_test.h | ||
| clip-twice-ref.png | ||
| clip-twice.c | ||
| clip_twice-ref.png | ||
| clip_twice.c | ||
| coverage-ref.png | ||
| coverage.c | ||
| fill-rule-ref.png | ||
| fill-rule.c | ||
| fill_rule-ref.png | ||
| fill_rule.c | ||
| imagediff.c | ||
| leaky-polygon-ref.png | ||
| leaky-polygon.c | ||
| leaky_polygon-ref.png | ||
| leaky_polygon.c | ||
| line-width-ref.png | ||
| line-width.c | ||
| line_width-ref.png | ||
| line_width.c | ||
| Makefile.am | ||
| move-to-show-surface-ref.png | ||
| move-to-show-surface.c | ||
| move_to_show_surface-ref.png | ||
| move_to_show_surface.c | ||
| read-png.c | ||
| read-png.h | ||
| read_png.c | ||
| read_png.h | ||
| README | ||
| romedalen.png | ||
| text-cache-crash.c | ||
| text-rotate.c | ||
| text_cache_crash.c | ||
| text_rotate.c | ||
| write-png.c | ||
| write-png.h | ||
| write_png.c | ||
| write_png.h | ||
| xmalloc.c | ||
| xmalloc.h | ||
Regression test suite for cairo. Using this test should be as simple as running: make check assuming that the cairo distribution in the directory above has been configured and built. The test suite here goes through some effort to run against the locally compiled library rather than any installed version. The test suite needs to be run before any code is committed and before any release. Here are the rules governing the use of the suite: Before committing ----------------- All tests should return a result of PASS or XFAIL. The XFAIL results indicate known bugs. The final message should be one of the following: All XX tests behaved as expected (YY expected failures) All XX tests passed If any tests have a status of FAIL, then the new code has caused a regression error which should be fixed before the code is committed. When a new bug is found ----------------------- A new test case should be added by imitating the style of an existing test. This means adding the following files: new_bug.c new_bug-ref.png Where new_bug.c is a minimal program to demonstrate the bug, following the style of existing tests. The new_bug-ref.png image should contain the desired result of new_bug.c if the bug were fixed. Makefile.am should be edited, adding new_bug.c to both the TESTS and XFAIL_TESTS lists. When a new feature is added --------------------------- It's important for the regression suite to keep pace with development of the library. So a new test should be added for each new feature. The work involved is similar the work described above for new bugs. The only distinction is that the test is expected to pass so it should not be added to the XFAIL_TESTS list. When a bug is fixed ------------------- The fix should be verified by running the test suite which should result in an "unexpected pass" for the test of interest. Rejoice as appropriate, then remove the relevant file name from the XFAIL_TESTS variable in Makefile.am. Before releasing ---------------- All tests should return a result of PASS meaning all known bugs are fixed, resulting in the happy message: All XX tests passed