Introduce the canvaspainting baseline test
This is the second iteration, with only C++ test cases this time. The
first attempt that had both a .qps parser, adapted from qtbase's
painting baseline test, and also C++ cases, has been deemed
unnecessarily complex and error prone.
The test set here is partly the Gallery example's pages ported and split
up to fit 800x800, a few ported .qps scripts from qtbase (with
modifications), and some new cases focusing on things known to be
problematic.
New test cases are added in canvaspainting_cpptests, it only needs
adding a new slot. The tests are ran on all supported 3D APIs on the
system, depending on the Qt build (QT_CONFIG(vulkan, opengl, etc.)) and
some runtime conditions (QVulkanInstance fails -> Vulkan is skipped).
The results are sent to Lancelot server as usual for a baseline test.
Set the QT_LANCELOT_SERVER env.var. before running.
To work locally, disable the USE_SERVER define to get the results saved
to .png files instead.
The following problems are currently known in the generated images.
Some of these need engine fixes, while some need to be investigated
first. (outside the scope of this patch)
- testSomeText has some non-deterministic behavior when it comes to
the generated image, since it triggers the fuzzy match warning
and always updates the baseline usually on every run. This may
be as expected, but we should try to find out what exactly in the
text rendering in that scene leads to different pixels in the
runs.
- testPathCaching, testPathWinding, and testStraightLinesInPath are
broken due to using a cached paths.
- testSomeText shows that drawing text with underline, strikeout, or
overline enabled does not work. (there is no underline etc.)
- testTransforms2 looks incomplete/broken with Vulkan and D3D12. This
is also visible in the Gallery example.
- no way to do color emojis
Task-number: QTBUG-143895
Change-Id: Ibd5c256263b1aa62ec978dddbf18808f44a0e927
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>